Diem plugins syndication

dmDynamicMenuPlugin

Adds a Dynamic menu widget to the "Add" menu

dmDynamicMenuPlugin adds a dynamic menu widget to the "Add" menu.
Widget appears in "Navigation" section.
Work with widget is almost same as work with built-in Menu widget.

Dynamic menu will "unfold" your menu according to your page structure.
For example we have such kind nested structure of a pages:

home  
 page-1  
   page-1-1  
   page-1-2  
   page-1-3  
 page-2  
   page-2-1  
   page-2-2  
... etc  

All pages have a same layout.
Dynamic menu widget is dropped at the left sidebar and has items:

page-1  
page-2  
page-3  

When we navigate to the 'page-1', widget dymically will be changed.
Menu of page-1 page has menu items of first level and unfolded second level
items, that are subpages of the current page-1:

page-1  
  page-1-1  
  page-1-2  
  page-1-3  
page-2  
page-3  

For more information see documentation tab.

Installation

  • In a console, from your project root dir, run:
git clone git://github.com/cuhuak/dmDynamicMenuPlugin.git plugins/dmDynamicMenuPlugin  
  • In config/ProjectConfiguration.class.php, add dmDynamicMenuPlugin to the list of enabled plugins:
class ProjectConfiguration extends dmProjectConfiguration
{  
  public function setup()  
  {  
    parent::setup();  
 
    $this->enablePlugins(array(  
      // your enabled plugins  
      'dmDynamicMenuPlugin'  
    ));  
  • In a console, from your project root dir, run:
php symfony dm:setup  

Open the "Add" menu on the tool bar. Find the navigation/Dynamic Menu widget, drag&drop it in a zone.

Open the PAGES panel and drag and drop pages in the blank space of the dialog.

Customize each menu item if needed.
Customization of the Dynamic Menu widget is same. Only Depth option behaviour is changed.

Depth option consist of such options:

  • "-1" infinite unfolding
  • "-" no unfolding
  • "1..9" max unfolding level

More information about cutomization menu widget you'll find in the documentation.

    Add a comment

    dmDynamicMenuPlugin, created on June 1, 2010 by cuhuak, used by 140 projects

    Fork Diem on GitHub