source: products/quintagroup.dropdownmenu/trunk/README.txt @ 3347

Last change on this file since 3347 was 3347, checked in by chervol, 12 years ago

pep fixes, portal_tabs cache condition added, extended readme

  • Property svn:eol-style set to native
File size: 2.1 KB
RevLine 
[1154]1Introduction
[3275]2------------
[1154]3
[2782]4This package allows to build dropdown menu through the web with portal_actions.
[2786]5Submenus are built from a tree of nested Category Actions and Actions.
[3347]6
[2782]7The other strategy used to populate submenus is Plone default NavigationStrategy,
8the one used in navigation portlet. 
[1154]9
[2782]10This project is successor of qPloneDropDownMenu.
[1157]11
[2782]12Building you dropdown menu with portal_actions
[3275]13==============================================
[1158]14
[2782]15Starting from Plone 3 portal actions introduced CMF Action Category
[2786]16containers, it opened opportunity to build nested actions trees. Though CMF Action
[2782]17Category does not behave as a regular action, it has different set of properties.
[2786]18We introduced convention in quintagroup.dropdownmenu that requires to have
[2782]19a specially named Action for each Actions Category. The id of each such action
[2849]20must be build using the rule::
[2782]21 
[2849]22  action_id = prefix + category_id + suffix
[2782]23   
24where:
25 
[2849]26:category_id: is id of correspondent CMF Action Category   
27:prefix: defined in DropDownMenu configlet, default value ''
28:suffix: defined in DropDownMenu configlet, default value '_sub'
[1158]29
[2849]30So, the actions structure can look like::
[1158]31
[2849]32  + portal_tabs
33  |- home
34  |- blog_sub
35  |-+ blog
36  | |-- 2009
37  | |-- 2010
[2782]38     
39By default the root of dropdown menu is 'portal_tabs' category.
[3347]40
41Menu caching
42============
43
44If the menu built with Navigation strategy is entirely public it can be cached for
45all users. If Authenticaded users should see some non public items the menu can be
46cached for anonymous only.
47
48Caching in case of involving the portal_actions strategy is effective only in case
49if all the action are public and have no extra conditions. In case some conditions
50are applied per action switch off caching.
51
[2782]52 
53Compatibility
[3275]54=============
[1157]55
[2849]56* **Plone 4** sample CSS file based on Sunburst theme provided
57* **Plone 3.0-3.3** the default CSS file has to be overridden
[1157]58
[1173]59Installation
[3275]60============
[1157]61
[3275]62* add http://good-py.appspot.com/release/plone.app.registry/1.0b2 to versions in your buildout
[3093]63* add quintagroup.dropdownmenu to eggs in your buildout
[3275]64* install Plone DropDown Menu in Plone via Site Setup -> Add-ons
65
[3347]66Find more details on the topic inside docs/INSTALL.txt
67
Note: See TracBrowser for help on using the repository browser.