Topic: [Snippet] RandomTV  (Read 3265 times)

Pages: [1]   Go Down

#1: 16-Mar-2006, 11:00 PM

Emeritus

aNoble
Posts: 680

WWW
I thought this might come in handy for someone. It's a snippet that grabs just one option at random from a multi-select TV like checkboxes or a listbox. I used it for header images in a site where I wanted people to be able to select one image or mulitpile images that would display randomly. The snippet should work with any sort of output widget assigned to it.

Code: (Example usage)
[[RandomTV?tv_name=MyTVName]]

* RandomTV.snippet.txt (1.86 KB - downloaded 411 times.)

#2: 19-May-2006, 02:45 AM

Administrator

zi
MODx Special Forces /
Posts: 3,555

May Peace Be On You

WWW
Ugh! this got buried!

bumping it... and Thanks Adam Smiley .. very nice snippet!

regards,

zi
edit: added to repo.
« Last Edit: 19-May-2006, 02:49 AM by zi »

#3: 27-Jun-2006, 02:06 AM


ChuckTrukk
Posts: 851

WWW
Adam or zi,

Could you provide an example of how I may use this to get the random header or such?

Thanks,
Chuck
Chuck the Trukk
ProWebscape.com :: Nashville-WebDesign.com
- - - - - - - -
What are TV's? Here's some info below.
http://modxcms.com/forums/index.php/topic,21081.msg159009.html#msg1590091
http://modxcms.com/forums/index.php/topic,14957.msg97008.html#msg97008
Pages: [1]   Go Up
0 Members and 1 Guest are viewing this topic.