Ticket #560 (new enhancement)

Opened 14 years ago

Last modified 14 years ago

Replace support of "default / current folder skin" in CPSBoxes with CPSPortlets

Reported by: ebarroca Owned by: trac
Priority: P2 Milestone: unspecified
Component: CPSPortlets Version: unspecified
Severity: normal Keywords:


The last point needed to replace the current box system with CPSPortlet is the possibility to manage the Main Content slot with CPSSkins. Idea : create a portlet that display the main content.

Change History

comment:1 Changed 14 years ago by jmorliaguet

This is what the 'Main Content Templet' does already by "manually" inserting a define-slot="main" inside the page. All traditional templates (login_form, etc.) use it for displaying content.

Portlets are rendered elements, so creating a Main Content Portlet portlet is not trivial although it is being investigated for the Zope3 version of CPSSkins. Obtaining the content <... fill-slot="main"...> should be enough, but that requires some hacking in Zope Page Templates.

comment:2 Changed 14 years ago by ebarroca

Well, the problem with Main Content Templet is that we still need boxes to manage folder's display for example. What other option exists to get rid of boxes, including for managing folders' display (in fact, I just like to replace Current / Default skin for folders) ?

comment:3 Changed 14 years ago by jmorliaguet


folder display will be managed through the Document Portlet in a 'folder contents' mode. (most of the code can be reused from existing CPSDefault macros)

then you'll only need to add a standard 'Main slot' in the center of the page and put a "Document Portlet" in 'folder contents' mode in it (for ex. in workspaces).

the only reason to keep the Main Content Templet will be to display ZPT forms.


comment:4 Changed 14 years ago by jmorliaguet

or the Navigation Portlet could be extended too. It already has such display modes as 'folder contents' and 'subfolder contents' .

Note: See TracTickets for help on using tickets.