[pmwiki-users] automatically changing the front page content?

Patrick R. Michaud pmichaud at pobox.com
Mon Aug 20 10:48:38 CDT 2007


On Mon, Aug 20, 2007 at 11:29:43AM -0400, Shi Sherebrin wrote:
> If you're instead looking to rotate existing content, you might be able
> to name your 'content block' pages in such a way that you could then
> include each block of content based on a random number..
> 
> I just looked up "of the day" and found this recipe which may also be of
> use:
> 
> http://www.pmwiki.org/wiki/Cookbook/RandomQuote

Note that it's also possible to include a page selected at random:

    (:pagelist order=random count=1 fmt=#include:)

Or, to grab a random page from a list/trail:

    (:pagelist list=RandomList order=random count=1 fmt=#include:)

Pm



More information about the pmwiki-users mailing list