Hello,

To have full control of navigation portlets take a look at:

1. From ZMI go to portal_layouts->navigation_portlet, every widget has "Hidden 
if (TALES)" property that controls when it's shown. Here you can define new 
widgets to filter the contents of the portlet, e.g. if you want to filter by 
content type, by author, or whatever you can imagine, etc.

2. The page template 'widget_portlet_navigation' before retrieving the items to 
show, decides which parameters will be given to the scripts 
"getFolderItems.py", "getBreadcrumbsItems.py" or "getNavigationItems.py" which 
depends on the display mode. If you create new widgets you have to care that 
the value is passed to the script. There are some display modes that use 
default parameters.
The parameter root_uids is a list of strings that are identifiers of trees. So 
there's no tree_root but root_uids.

3. The scripts "get*Items.py" (see above) get the tree with CPSNavigation and 
after, they filter every node that doesn't satisfies the rules.

On the other hand, If you want to show documents in a navigation portlet that 
is based on "getNavigationItems" script e.g. "navigation_tree": >From ZMI go to 
portal_trees, create a new tree which can be a copy of sections tree or 
workspaces tree. Now go to the properties of the new tree and in the property 
"Portal Types" add the content type identifiers e.g. "News Item".
Then go to the "Tree" tab and click "Rebuild Tree", your navigation portlets 
will show this kind of documents too.

Regards.

where can I find documentation about the different display modes of the 
navigation portlet. I get totally confused when editing the 
navigation-portlet, since it displays a different form depending on the 
selected display mode. For example, if I select "Vertical breadcrumb 
menu" I can input "relative depth" an "end depth", and "Display hidden 
folders", but not "show documents", when I look at the pt 
widget_portlet_navigation in
<tal:block condition="python: display == 'vertical_breadcrumbs_menu'">
folderitems is defined as
  python: context.getFolderItems(context_obj=context, 
show_docs=show_docs, display_hidden_folders=display_hidden_folders);

so "show_docs" is used there.

I also don't find any reference to the tree_root in the pt.


-- 
Mit freundlichen Grüßen                                Joachim Schmitz
......................................................................
AixtraWare eK ..Joachim Schmitz ..www.aixtraware.de ..t: +49-2464-8851
Hüsgenstr. 33a .....d-52457 Aldenhoven .............f: +49-2464-905163


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

Reply via email to