[pmwiki-users] Random page generator?

StefCT stefct4 at gmail.com
Sun Oct 25 16:30:34 CDT 2015


Hi Don,

On 10/25/2015 10:14 PM, Donald Z. Osborn wrote:
> Greeetings, Is there a way to generate (call up and open) random pages in
> the same way MediaWiki does?

How about

(:pagelist group=PmWiki order=random count=1 fmt=#redirectto list=normal:)

(:if false:)
[[#redirectto]]
(:redirect {=$FullName}:)
[[#redirecttoend]]
(:ifend:)

I've tested it successfully, see
http://www.pmwiki.org/wiki/Test/RedirectRandomPage

One small flaw: the line "(redirected from Test.RedirectRandomPage)" on
top of the page.

Kind regards,

Stef




More information about the pmwiki-users mailing list