NB Cycle - Documentation
Installation
Copy the pi.nb_cycle.php file in your /plugins folder.
Usage
{exp:nb_cycle parse="inward" values="whisky|tango|foxtrot"}
{variable}<br />
{/exp:nb_cycle}
will output:
whisky tango foxtrot
Parameters
parse="inward" REQUIRED if you are using other plugins within the NB cycle tag pair. Example:
{exp:nb_cycle values="blog|products|catalog" parse="inward"}
{exp:weblogs:entries weblog="{variable}"}
{title}<br />
{/exp:weblog:entries}
{/exp:nb_cycle}
values="whisky|tango|foxtrot" The values to cycle through, separated by a pipe. Values can be anything: id numbers, weblog names, titles, etc. For pass variables containing a pipe (eg. 1|2, together), separate the variables with a comma ",". eg. values="1,2|3"
Single variable tag
{variable} This tag will be replaced by the current cycle value set in values=""
Mini cycle
Another set of variables can be looped within the {exp:nb_cycle} tag pair.
Usage
{exp:nb_cycle parse="inward" values="whisky|tango|foxtrot"}
<h2>{variable}</h2>
<ul>
{mini_cycle values="blog|products|catalog"}
<li>{mini_cycle_variable}</li>li>
{/mini_cycle}
</ul>
{/exp:nb_cycle}
would output
<h2>whisky</h2>
<ul>
<li>blog</li>
<li>products</li>
<li>catalog</li>
</ul>
<h2>tango</h2>
<ul>
<li>blog</li>
<li>products</li>
<li>catalog</li>
</ul>
<h2>foxtrot</h2>
<ul>
<li>blog</li>
<li>products</li>
<li>catalog</li>
</ul>
Single variable tag
{mini_cycle_variable} This tag will be replaced by the current cycle value set in values=""
