I thing CPS 3.4 is work the same. I didn't create my own portlets, i just use custom portlets and combine with zpt. This is the flexible way to put navigation rather create the new one (because its no need to restart the zope). The tricky is when you crate the page template for the navigation to use the standard on how to create portlets. This is my zpt sample to create navigation on left column in http://www.ict4pr.org

<span tal:define="items root/www/sections/pepp/menu/telecenter/getMenu;">
   <ul class="cpsskinsMenu">
        <span tal:repeat="item items">
<li><a tal:define="isi item/getDataModel" tal:attributes="href isi/Relation"><span tal:replace="item/Title">Link Title</span>
       </a></li>
        </span>
   </ul>
</span>

The key is to use <ul class="cpsskinsMenu"> so it will integrate to the cpsskins theme. The explanation of the sample above; getMenu is python script to filter the content, this is just one line of code

return context.objectValues(['CPS Proxy Document'])

the content items is Links content type which its link to documents or sections in the web site and i use that information to build navigation, so i can add and remove the navigation link with easy way just put/remove from the section. The sample above may not to good, i guess there is better way to do this but this is what i can manage so far.

Best,
Adi
IT SPECIALIST
www.ict4pr.org

Joachim Schmitz wrote:
Hi Adi,

thank you for the detailed explanation. I did already steps 1. - 8. The
main problems I have is to find the navigation portlets, did you create
your own portlets, or did you use the standard navigation-portlet and
what display mode of the navigation portlet did you use ? By the way I
am working with CPS 3.4.


Adi Setyono schrieb:
CPSSkins is the most advanced theme engine i ever seen. You can create
multi page layout in one theme, and each sections can use deferent page
layout. Like website that i developed at http://www.ict4pr.org its use
cps 3.3.8
To create new page layout:
1. Login with user that has authorize to modify the global theme, for me
it is admin user when create the cps instance.
2. Go to Manage Portlets then click Theme Editor. Make sure you select
the right theme.
3. Click + sign next to current page layout to create new page layout.
Now you see new tab with number as the title. In my case the number is
"1338408100", this is the page id.
4. Click Layout mode to change the page layout.
5. Set the columns to 3 then set the width of each column, for example
Left 180px, center 100%, Right 180px. Press enter each time after you
fill this number.
6. Add a new templete in each column. For me i put Portal Box Group
Templet in Left and right column. In the center i  put main content
templete. You can experiment with other templete to match your need.
7. Click the pencil icon in the page layout tab to open pop up menu,
then select edit. Check  mark the Default page then click Modify to save
the change.
8. Now exit from theme editor then go to Manage Portlets again. Select
the page that you have just created. Make sure you are in the sections
view (it show in the left top, in your case it should show mycps/
sections/) then add the portlete in the right and the left column.

Thats all. I hope this give you a clue how to create new page layout in
your theme. Please read the CPSSkins documentation for more
comprehensive overview. With CPSSkins theme you can customize your theme
like as you wish.

Cheers,

Adi
IT SPECIALIST
www.ict4pr.org


Joachim Schmitz wrote:
I have this structure in sections

home (document)
document1
document2
...
Section News
Workspace Calendar for Sections


the public view should look like this:

left column |  center column         | right colum

home        | the current document   | latest News
document1   | or news or event       | next events
document2

the left and right column should always be the same.
The www.mysite.de redirects to mycps/sections

Could someone point me to an example theme, which displays this layout ?









_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel

Reply via email to