[pmwiki-users] Link to random page/article
    Petko Yotov 
    5ko at 5ko.fr
       
    Thu Nov 28 04:18:42 PST 2019
    
    
  
You can use a custom pagelist template that redirects to the random 
page:
   (:pagelist fmt=#redirect count=1 order=random list=normal:)
   [@
   [[#redirect]]
   (:redirect {=$FullName} quiet=1:)
   [[#redirectend]]
   @]
See $EnableRedirectQuiet if you want to remove the link "Redirected from 
Main.RandomPage".
Alternatively, you can place a pagelist with random links in the 
sidebar:
   %sidehead% Random pages
   (:pagelist fmt=#title list=normal order=random count=3:)
Petko
-- 
If you upgrade :  http://www.pmwiki.org/Upgrades
On 28/11/2019 13:00, Robert Riebisch wrote:
> how can I mimic Wikipedia's 
> https://en.wikipedia.org/wiki/Special:Random
> in PmWiki?
> 
> What I tried:
> 1) Added to Side.SiteBar:
> 	* [[Main/RandomPage|Zufällige Seite]]
> 2) Created Main.RandomPage:
> 	(:pagelist order=random count=1 fmt=#include list=normal:)
> 
> It works, but not like on Wikipedia, because it doesn't redirect the
> browser to the random page. Therefore the pages's title is always
> RandomPage and can't edit the random page directly.
> 
> I would like to have such a feature to make users aware of other 
> content
> and encourage updating possibly outdated articles.
    
    
More information about the pmwiki-users
mailing list