My favorites | Sign in
Logo
             
Search
for
Updated Apr 23, 2009 by pkollitsch
GhoAlternation  
return alternating (or random) values

gho_alternation

Description

gho_alternation returns alternating values given by an attribute each time it is called.

Download

current version is v2009.1 updated on April 23, 2009

Attributes

Examples

<div class="entry<txp:gho_alternation returns="this,that,something,else" />">

Returns the first time the plugin is called class="entrythis", the second time class="entrythat", the third time class="entrysomething" and so forth.

<div class="entry<txp:gho_alternation returns="this,,something" />">

It is possible to define "empty" return values. Just put an extra comma at the end of the list or anywhere inside the list and the last item will be empty. The example aboveReturns the first time the plugin is called class="entrythis", the second time class="entry" (no value between the commata) and the third time class="entrysomething".

Requirements

History

2009-04-23 v2009.1

2007-07-21 v.2008.1

2007-06-22 v.2007.1

2006-05-26 v.2006.1

2005-08-16 v.4.0

2005-08-14 v.1.0

2005-05-04 v.0.1

Hosted by Google Code