[CPS-users] Re: Help - document as Index.html

Georges Racinet gracinet at nuxeo.com
Tue Jul 11 18:12:26 CEST 2006


On Jul 11, 2006, at 5:10 PM, Marco wrote:

>> You can use a Document Portlet for this (in the portlets editor).   
>> You'll
>> have to set a guard in the same vein as this python: published ==
>> 'folder_view'
>
> That is really interesting for me, too. Would you please explain  
> that "guard"
> thing a bit further!

It's a condition that must be fulfilled in order for the portlet to  
be rendered.
It comes on top of the acquisition/override engine.
You can change it through the editor (top-right link in the edit popup).

Without the above example of guard, the portlet would be rendered on  
all views
that are related to the current section (edit form, local roles form,  
folder contents....)
The portlet that renders the current section's title in a bare CPS  
3.4 works exactly in the same way.

The namespace for the TALES expression is defined in CPSPortlets/Guard/

> Is possible to display previews of files as default view for the  
> file document
> type, that way?

No, because portlets are attached to folders. But you could very well  
alter the layouts of the File document type
to obtain what you want.

---------
Georges Racinet                        Nuxeo SAS
gracinet at nuxeo.com                http://nuxeo.com
Tel: +33 (0) 1 40 33 71 73




More information about the cps-users mailing list

This list archive provided by Nuxeo, the leaders of open source ECM. Check out the Nuxeo 5 open source, standards-based ECM project.