BoltWire is a FREE content management system written in PHP.

Its innovative architecture combined with best-in-class forms processing makes it ideal for creating complex, interactive, web applications fast...





Extensions > Plugins > Quote

Here's an easy way to create a random quotes feature. Try it out, here:

My first quote!

Here's how you make it work. Set up a page called main.quotes with a list of quotes in info var format:

1: My first quote!
2: Here's another interesting quote
3: The best quote yet...

Now to generate a random quote just use the info function, like this:

[(info random page=main.quotes)]

Note that you can also pull in more than one random quote using [(info random page=extend.plugins.quote count=2)] and you can use fmt or template parameters to modify your output, making this feature quite powerful. It does require BoltWire 4.24.