Kreatore.it

Sviluppo applicativi Lamp

Textpattern plugin and theme

mck_navigation_menu

mck_navigation_menu

This plugin allows to create a custom navigation menu like a original plugin cbs_navigation_menu.
You can choose which sections you want to display in which order and style the current section differently.
You can now specify category in a specified section ad article id to link directly

Instead of interanl page you can specify full URL’s (starting with http://, ftp://, mailto: or any other prefix) and they will be linked “as is”.

You can also specify access keys and id for each menu entry.

Usage

After installing & activating the plugin, you can call the function directly from page o form.

This function create a custom navigation menu. Ex: <txp:mck_navigation_menu sections="a,b,c" titles="A,B,C" art_id=",b,c" categories="a,," />

Attributes required
  • sections: Comma-separated list of section names or full URL’s you want to link in your navigation menu, in order, with no spaces before and after commas.
    For the homepage, specify default as section name.Each entry is interpreted as a Textpattern section, unless it contains a ‘:’ character like in any full URL or ‘#’ charter like in anchor link. ()=>’‘
  • titles: Comma-separated list of titles you want to display for each section of the sections attribute above, with no spaces before and after commas.
    You must have the same number of commas as in the sections and titles attributes ()=>’‘
Attributes
  • art_id: Comma-separated list of article ids, in order, related to a his section,with no spaces. Leave empty if you don’t wont link anytingh.
    You must have the same number of commas as in the sections and titles attributes ()=>’‘
  • categories: Comma-separated list of categories, in order, related to a his section,with no spaces. Leave empty if you don’t wont link anytingh.
    You must have the same number of commas as in the sections and titles attributes ()=>’‘
  • wraptag: HTML tag to be used as the wraptag, without brackets. ()=>’‘
  • break: HTML tag to be used for line breaks, without brackets. ()=>‘br’
  • class: Css class for the wraptag ()=>‘menu’
  • activeclass: CSS class attribute to apply to links pointing to the current section, if any. ()=>‘active’
  • activenolink: When set to true, the current section will not be linked, but wrapped with a span tag instead. The class of the activeclass attribute and the id of the ids attribute, if specified, will be applied to this span tag. ()=>‘false’
  • accesskeys: Comma-separated list of keyboard access keys to associate with each section link of the sections attribute above, with no spaces before and after commas. If you don’t want to specify an access key for a section, leave it empty, but you must have the same number of commas as in the sections and titles attributes ()=>’‘
  • ids: Comma-separated list of XHTML id attributes to apply to each menu item, with no spaces before and after commas.
    You must have the same number of commas as in the sections and titles attributes ()=>’‘

Changelog

  • [1.1.2] Add wrapid attribute
  • [1.1.1] Rewrite help text and set default value for class and activeclass
  • [1.1] Added an anchor link parser
  • [1.0] First release with art_id and categories value.Christophe Beyls has write this plugin.

Download

Download Compressed Download Uncompressed

Support

Find mck_navigation_menu support on Textpattern forum

Altri Plugin

© 2011 Kreatore.it :: Sito web realizzato da Marco Casalegno

TXP | Admin | Home | Back to Top

Tutte le informazioni e le immagini sono rilasciate sotto licenza secondo la Creative Commons License 2.0.