Adds variables available in the Category List Item field of templates.
| General Plugin info | |
|---|---|
| Author: | Frank Truscott |
| Current Version: | 1.0 |
| Download: | NP_CatListVars.zip |
| Forum Thread: | here |
Requires Nucleus CMS version 3.40 or higher
Install it and add the variables to your template as desired
The variables described below are only available in the Category List Item field of your templates and can be used to enhance the category lists on your site.
//None//
An example of a Category List Item field using these extra variables:
In CSS file:
.currentcat_no a {
font-weight:normal;
}
.currentcat_yes a {
font-weight:bold;
}
In Category List Item field of the template used to display your categorylist:
<li class="currentcat_<%catiscurrent%>"><a href="<%catlink%>" title="<%catname%>"><%catname%> [<%numitems%>]</a></li>
Results as HTML:
<li class="currentcat_no"><a href="http://domain.tld/cars/" title="Cars">Cars [20]</a></li> <li class="currentcat_yes"><a href="http://domain.tld/downloads/" title="Downloads">Downloads [13]</a></li> <li class="currentcat_no"><a href="http://domain.tld/general/" title="General">General [51]</a></li> <li class="currentcat_no"><a href="http://domain.tld/sports/" title="Sports">Sports [37]</a></li> <li class="currentcat_no"><a href="http://domain.tld/todo/" title="To Do">To Do [3]</a></li>
To viewer it looks like: