April 20, 2007
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.
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:
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.
22 queries taking 0.0168 seconds, 22 records returned.
Powered by Minx 1.1.6c-pink.