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

_______________________________________________
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to