Mario Menezes a écrit :

>> Why not use a custom portlet that will display the rendering of the
>> section
>> instead ?
> 
> this is exactly what I want but I don't know how to do it!
> 
> could you give me some hints?
> 
> I've been playing with several portlets to do this without success; I
> didn't any
> modification in the portlets (code) beside what is presented in theme
> management
> interface, that is, I only changed options in portlets.

The custom portlet takes an arbitrary render method (a python script or a page
template that you put in a skin layer such as portal_skins/custom for instance).

Beware to go in the section you want to change before adding the portlet with
the porlet editor (portlets are placeful).

Put your new portlet in the same slot as the one which is currently used to
render the section contents and choose to override the parent portlet.

Adjust the guard of the portlet to display you new portlet only for the section
view and not for the document inside. Takes the portlet that renders section
content as an example for your guard.

You could also add a new text widget / string field to the section layout /
schemas and use that field to render a custom HTML view for each section.

> for example, the Document portlet in CPS Default theme has an option
> 'Render the container'; I thought this could help me but I wasn't able
> to get what I wanted.

I do not know about the document portlet: I guess you'll to read the source to
understand what this option is suppose to do.

-- 
Olivier

_______________________________________________
cps-users mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/cps-users

Reply via email to