Content last modified Monday 6 March 2017
hop to #bottom
Categories:
Author:
Current version:
1.3.1
About It:
Get it:
Rate it:
  • Helpful?
  • 7 Yes
  • 0 No
Flag it:

If you'd like to provide updated information and do not have access to directly edit, please contact the site admin; thanks!

adi_menu

Once installed and activated, you’ll get:

  • a new tab under Presentation, to set up the hierarchy
  • two new tags:
    • <txp:adi_menu /> to output the section menu markup
    • <txp:adi_menu_breadcrumb /> to output a breadcrumb trail

See the help supplied with the plugin, or have a look online.

Aims:

  • ability to create a section hierarchy
  • a CSS class assigned to sections that had children
  • the active section to always be rendered as a link
  • output lean markup
  • the ability to clone a parent section as a subsection
  • section sorting
  • no conflict with other plugins

Basic menu markup:

By assigning parents to sections in the adi_menu admin tab, a section hierarchy can be created.

For example:

  • A
  • B
    • B1
    • B2
  • C
    • C1
  • D

will be rendered as:

<ul id="mainmenu" class="section_list">
   <li>Home</li>
   <li>A</li>
   <li class="menuparent">B
      <ul>
         <li>B1</li>
         <li>B2</li>
      </ul>
   </li>
   <li class="menuparent">C
      <ul>
         <li>C1</li>
      </ul>
   </li>
   <li>D</li>
</ul>

Note that:

  • by default adi_menu will output a link to the ‘default’ section, which again by default is named “Home’ (this behaviour can be modified using adi_menu tag attributes)
  • for clarity, I’ve omitted the link markup.

Other features include:

  • ability to include articles within the menu
  • separate sub-menus
  • speaking blocks
Article Request Count:
Keywords/tags:
Initially released:
15 jul 2008
Posted here:
15 Jul 2008
Article modified:
15 Oct 2012

If there is a comment form at the Information URL, you may want to leave your comments/questions there or at the Forum thread for quicker feedback. Otherwise, comment away:

Your comment will NOT be submitted until you click the 'Submit' button on the next pageload.

Subscribe to this article's comments RSS feed. [ ? ]   View Recent Comments across the site.

You know you want to visit the Archives.

Browse

Categories


Articles

There are also tag clouds, 'cause those are fun.
Published with Textpattern