Olivier Grisel wrote:
> Jean-Marc Orliaguet wrote:
>
>> the current implementation in CPSPortlets (Navigation Portlet) already
>> takes a 'root_uid' parameter ('sections', 'workspaces', etc.).
>
>
> Yes but I would like to display a 'forest' with several roots
> (corresponding to several portal_trees). Thus this field should be
> changed to a "CPS String List Field" named 'root_uids' for instance.
>
>> If I get it right you want to select the root from a dropdown menu and
>> let the portlet display the tree under the selected root? then basically
>> you need to replace the String widget which is currently used to select
>> the root uid ('root_uid') with another widget that let you choose a
>> string from a list (a vocabulary for instance).
>
>
> Not exactly: I would like to choose a list of strings (the roots) out
> of all the possible roots registered in the portal_trees tool (that
> could be done with a MethodVocabulary). Furthermore, I want to be able
> to chose their display order as well and the MultiSelect Widget can't
> handle that AFAIK ...
>
> One could still use a Lines widget (just like the one you use to
> select the action categories of an action portlet). But its not as
> user-friendly as a MultiSelect Widget that pre-feeds the widget with
> the relevant options.
>
> Best,
>
> Olivier
OK, what I can do - to begin with the infrastructure - is to replace
'root_uid' (String) with 'root_uids' (String List) and use a line widget
in the UI to begin with (as in the action portlet)
then getNavigationItems.py will go through all the root uids one by one.
and the portlet will display several trees simultaneously.
this is needed by the way for the default theme (I noticed it yesterday)
that shows a link to both sections and workspaces at the same time.
can you then design a widget that does the multiselection? if none
already exists?
Best
/JM
_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel