Content last modified Tuesday 24 August 2021
hop to #bottom
Categories:
Author:
Current version:
0.2
About It:
Get it:
Rate it:
  • Helpful?
  • 0 Yes
  • 1 No
Flag it:

If you'd like to provide updated information and do not have access to directly edit, please contact the site admin; thanks!

simple_random_text

Using this little plugin you can add small random anywhere. Quite useful for e.g. assigning random classes.

Simply place

<txp:simple_random_text items="item1,item2,item3" />

on any page or form.
The items parameter contains the items to randomly choose from.
The optional delimiter parameter lets you choose a different delimiter. The default delimite is ”,”.

Example:

<div class="menu<txp:simple_random_text items="1|2|3" delimiter="|" />" id="menu">...</div>

might be rendered as

<div class="menu2" id="menu">...</div>
Article Request Count:
Keywords/tags:
Initially released:
2006-03-13
Posted here:
13 Mar 2006

You know you want to visit the Archives.
Published with Textpattern