On Mon, Jul 21, 2008 at 02:54:53PM +0200, St�phane Heckel wrote:
> Looking for a way to implement an automatic random trail that would look 
> like
> 
> << Title of random page X | Groupname | Title of random page Y >>
> X & Y are 2 pages, selected from "Groupname"
> Each time you refresh the page, X & Y would change, ...
> Is there any cookbook I could look at ?

It can be done very simply with a pagelist template:

  [[#randomtrail]]
  (:template first:)
  << {=$Title} | {$$group} |
  (:template last:)
  {=$Title} >>
  [[#randomtrailend]]

  (:pagelist group=Groupname order=random fmt=#randomtrail:)

Of course, the advantage of this approach is that it works
with any pagelist, including trails, categories, etc.  :-)

Pm

_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to