April 20, 2007


Random Quote Display

Minx makes it simple to add this nifty little feature.  Every time someone visits your webpage or hits the refresh button, a different quote will be displayed.

Here's how to do it:

1.  Create a "quote" file.  I used notepad, but anything that will save a text (.txt) file will do.  Put whatever you want in there, for example...

When the animals rise up in revolt, dogs and cats have special plans for Mr. Bob Barker.

I am not a crook. -- Richard Nixon

Nice doggie. -- George of the Jungle

The key here is that each quote is ended with a Return (or Enter, depending on your keyboard).  Other than that, no blank lines between sentences, etc.

2.  Create a new template.  Let's call it Sayings.  Click on the template link (under Manage, over on the editing sidebar), and at the bottom of that page click the "New" button.

Fill out the form.

Type: Data 
Name: Sayings
Content:  in this block just cut and paste your quotes from the text file you did in step 1.


3.  Now go into your Sidebar template, pick out where you want your quotes to appear, and paste the following:

<h2>Uncommon Sense</h2>
[quote:random data.sayings]

Save and that's it!  You can change the heading between the "h2" tags to say whatever you want, and Minx will do the rest.

I've done this example here on Quickstart, so you can see how it works.  Psst, over there, on the sidebar.

Posted by: RocketJones at 04:48 PM under Content | No Comments | Add Comment
Post contains 248 words, total size 2 kb.

Comments are disabled. Post is locked.
5kb generated in CPU 0.02, elapsed 0.0327 seconds.
22 queries taking 0.0234 seconds, 22 records returned.
Powered by Minx 1.1.6c-pink.