mbJrollerMenuPlugin

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to the Plugins Home

Stats

Plugin Information Installation
mbJrollerMenuPlugin
Plugin image
1
user
Sign-in
to change
your status

mbJrollerMenuPlugin

Build a menu from a YAML file with a defined structure. Requires sfAdminThemejRollerPlugin which gets all the styles and the Javascripts features.

Installation

  • Install from repositories:

    svn export http://svn.symfony-project.com/plugins/mbJrollerMenuPlugin
    
  • Or install with symfony

    ./symfony plugin:install mbJrollerMenuPlugin
    
  • Enable in the ProjectConfiguration Object. Add this to setup method

    $this->enablePlugins('mbJrollerMenuPlugin');

Use

  • Generate the menu (in yml or array):

    menu1:
      title: Start here
      icon: menu.png #this is found in web/images
      submenu: # a submenu for menu1
        menu1.1:
          title: go to google
          url: http://www.google.com
          ui-icon: ui-icon-home               # a class from jroller themes icons
        menu1.2:
          title: go to yahoo
          description: another search engine
          url: http://www.yahoo.com
          target: blank
          icon:  some-icon-name               # we recomend ui-icon
    menu2:
      title: some actions
      submenu:
        menu2.1:
          title: Create an object
          credentials: [some, credentials]
          url: module/actions
        menu2.2:
          title: another menu
          url: module/actions
          condition: aCondition           #It must be implemented in myUser Class
  • Display the menu (in a template):

    <?php use_helper('JrollerMenu') ?>
    <?php echo jroller_menu_from_yml('yml_file.yml', 'menu_name', 'orientation') ?>