[pmwiki-users] redirecting from admin pages

bram bram at brambring.nl
Sat Dec 31 09:42:27 CST 2005


Patrick R. Michaud wrote:

>On Sat, Dec 31, 2005 at 11:59:26AM +0100, bram wrote:
>  
>
>>(:if name SideBar:)
>>(:redirect Main.StartPagina:)
>>(:if:)
>>
>>works fine
>>
>>but I use Site.SideBar in most groups so I would like to:
>>
>>(:if name SideBar:)
>>(:redirect {$Group}.StartPagina:)
>>(:if:)
>>
>>however this doesn't work.
>>    
>>
>
>Try:
>
>    (:redirect StartPagina:)
>  
>

Stupid ( I )

>
>Note that at the moment the (:if:) lines aren't actually
>doing anything here -- redirect statements are processed before
>any other markup, and only for the main page being viewed.
>This may change in the near future, but that's how things are
>now.
>
>Pm
>  
>
Right,

My redirect-if-included trick works due to the fact that redirects in 
included pages are not processed.

The if avoids that the redirect statement is visible, I probably could 
have used a (:if false:) but the syntax used shows what the purpose is.


bram


bram




More information about the pmwiki-users mailing list