[pmwiki-users] Getting a random page name inside a cookbook recipe
Maxim
maxim at smspower.org
Tue Oct 20 10:29:49 CDT 2009
Within a cookbook recipe I want to select a page at random from a
particular group. The solution I came up with is:
$pagename = trim(strip_tags(MarkupToHTML('', '(:pagelist fmt=#simple
list=normal group=Sprites order=random count=1:)')));
This has the advantage of not needing any dedicated pagelist format.
However, I'm a little worried that it's doing more than is necessary.
Is there a nicer way?
Maxim
More information about the pmwiki-users
mailing list