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
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users