[pmwiki-users] random title
    Patrick R. Michaud 
    pmichaud at pobox.com
       
    Sun Jul  8 09:14:26 CDT 2007
    
    
  
On Sun, Jul 08, 2007 at 09:29:52AM +0200, Nicole Weber wrote:
> I added a random page link to my wiki´s navigation bar:
> (:pagelist group=main order=random count=1 fmt=#include list=normal:)
> 
> One of the annoyances though is that it that unless the random page it
> selects has a custom title markup, the title is just "Random Page"  
> which is a problem as a few shorter articles depend on and can be confusing  
> without their proper title.
> 
> Any possible solutions?
It seems like a redirect would be better than an include here.
Perhaps something like...
    (:pagelist group=Main order=random count=1 fmt=#redirect list=normal wrap=inline:)
    [[#redirect]]
    (:redirect {=$FullName}:)
    [[#redirectend]]
This gets close, except it puts the "Redirected from ..." line at the
top of the page.  One could suppress that also by setting in local/config.php:
    $PageRedirectFmt = '';
Pm
    
    
More information about the pmwiki-users
mailing list