Changes between Version 39 and Version 40 of quintagroup.dropdownmenu


Ignore:
Timestamp:
Jun 5, 2013 3:14:05 PM (11 years ago)
Author:
naomin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • quintagroup.dropdownmenu

    v39 v40  
    7676Starting from Plone 3 portal actions introduced CMF Action Category containers, it opened opportunity to build nested actions trees. Though CMF Action Category does not behave as a regular action, it has different set of properties. We introduced convention in quintagroup.dropdownmenu that requires to have a specially named Action for each Actions Category. The id of each such action must be build using the rule: 
    7777 
    78 {{{action_id = prefix + category_id + suffix}}} 
     78{{{ 
     79action_id = prefix + category_id + suffix 
     80}}} 
    7981where: 
    8082 
    81 category_id:    is id of correspondent CMF Action Category 
     83category_id: id of correspondent CMF Action Category 
    8284prefix: defined in DropDownMenu configlet, default value '' 
    8385suffix: defined in DropDownMenu configlet, default value '_sub' 
    8486So, the actions structure can look like: 
    8587 
    86 {{{+ portal_tabs 
     88 
     89{{{ 
     90+ portal_tabs 
    8791|- home 
    8892|- blog_sub 
    8993|-+ blog 
    9094| |-- 2009 
    91 | |-- 2010}}} 
     95| |-- 2010 
     96}}} 
     97 
    9298By default the root of dropdown menu is 'portal_tabs' category. 
    9399