Web Pro Manager

Web Pro Manager CMS

User Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

templating_the_front-end [2011/05/07 15:18]
thewebpro [Special tags]
templating_the_front-end [2011/05/07 15:31] (current)
thewebpro [Special tags]
Line 69: Line 69:
 ''[#compPageNav#]''\\  ''[#compPageNav#]''\\ 
 This tag is replaced by a linked list of pages in the section (navigation) that you specify with optional parameters for display control.  This tag works well for a main navigation that changes infrequently.  It requires one parameter **NAVID** which specifies the section from which to pull the pages for the navigation (ex: ''[#compPageNav _NAVID=3#]'').  Two other parameters can be used, **FILE** and **FILE-ACTIVE**, to specify the template files for the individual navigation items (ex: ''[#compPageNav_FILE=nav/hdrnavitem.html_FILE-ACTIVE=nav/hdrnavitemactive.html#]'') where the file specified points to a file in the “tmpl/comp” folder. This tag is replaced by a linked list of pages in the section (navigation) that you specify with optional parameters for display control.  This tag works well for a main navigation that changes infrequently.  It requires one parameter **NAVID** which specifies the section from which to pull the pages for the navigation (ex: ''[#compPageNav _NAVID=3#]'').  Two other parameters can be used, **FILE** and **FILE-ACTIVE**, to specify the template files for the individual navigation items (ex: ''[#compPageNav_FILE=nav/hdrnavitem.html_FILE-ACTIVE=nav/hdrnavitemactive.html#]'') where the file specified points to a file in the “tmpl/comp” folder.
 +
 +''[#compLangNav #]''\\ 
 +This tag is replaced, if more than one language is present, by a separate mini-template file of your choosing to display a clickable list of links of available languages on the site (ex: __English__  |  __French__  |  __German__).  It takes one parameter, **FILE**, which is used to specify the mini-template file in the “tmpl/comp” folder you want to show when multiple languages are present (ex: ''[#compLangNav_FILE=nav/navLang.html#]'').
 +
 +''[#langChange #]''\\ 
 +This tag is replaced by a list of languages present in your WPM settings.  It can be used by itself in your template, or be called by the tag ''[#compLangNav #]''  to allow for its display only when more than one language is present.  This tag takes one parameter, **FORMAT**, with possible values of **slim**, **standard**, or **full** (ex: ''[#langChange_FORMAT=slim#]'').
 +
  
 \\ \\  \\ \\