Changes between Initial Version and Version 1 of collective.portlet.ngcollection


Ignore:
Timestamp:
Mar 21, 2013 8:51:33 AM (12 years ago)
Author:
naomin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • collective.portlet.ngcollection

    v1 v1  
     1Extends plone collection portlet in order to allow assigning different views for each newly created portlet through its Edit form 
     2 
     3 
     4= Project Description = 
     5 
     6==Introduction== 
     7 
     8This package provides portlet which extends plone collection portlet in order to allow assigning different views for each newly created portlet through its edit form. 
     9 
     10T hav many collection portlets displaying different information in different places. Plone portlets provide us with portletRenderer directive which in general is really usefull, but it's not an option because it overrides portlet renderer globally thus allowing to have only one template at a time. 
     11 
     12Thus to avoid having some odd conditions in your collection portlet's template NGCollection extends standard plone collection portlet with a template field where you can select template to use from available templates. 
     13 
     14Apart from the 'template' field NGCollection portlet also adds 'show_more_label' field. This field is here to override default collection's portlet 'More...' link text with some custom one entered by user. 
     15 
     16Portlet Templates 
     17In order to register new alternative templates for your portlet this package provides portletTemplates directive: 
     18 
     19{{{ 
     20<configure 
     21    xmlns="http://namespaces.zope.org/zope" 
     22    xmlns:plone="http://namespaces.plone.org/plone"> 
     23 
     24  <include package="collective.portlet.ngcollection" file="meta.zcml" /> 
     25 
     26  <plone:portletTemplates 
     27      interface="path.to.some.portlet.assignment.Interface" 
     28      directory="alternative_templates" 
     29      /> 
     30 
     31</configure> 
     32}}} 
     33}}} 
     34