Content last modified Monday 6 March 2017
hop to #bottom
Categories:
Author:
Current version:
0.2
About It:
Get it:
Rate it:
  • Helpful?
  • 0 Yes
  • 1 No
Flag it:
Contact Reason [ ? ]

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:
12 Mar 2006
Article modified:
27 Sep 2006

Comments/questions? Leave a message in the form.

Your comment will NOT be submitted until you click the 'Submit' button on the next pageload.

Commented (1)

This plugin has a broken download link, but does anyone have a copy of this plugin?

Subscribe to this article's comments RSS feed. [ ? ]   View Recent Comments across the site.

You know you want to visit the Archives.

Browse

Categories


Articles

There are also tag clouds, 'cause those are fun.
Published with Textpattern