[pmwiki-users] (:redirect:) with conditional markup/ GroupHeader
Patrick R. Michaud
pmichaud at pobox.com
Wed Nov 23 16:37:54 CST 2005
On Wed, Nov 23, 2005 at 01:38:40PM +0100, sven saurwein wrote:
> hi list.
>
> (1) redirect + conditional markup
> (:redirect:) seems to ignore any conditional markup.
> so
> (:if authid:) (:redirect group.page:)
> vs.
> (:if !authid:) (:redirect group.page:)
> both redirect.
> Am I getting something wrong here?
No, the (:redirect:) markup has traditionally been somewhat "special"
in that its existence overrides everything else that might be
in the markup. A page containing (:redirect:) doesn't have any
of its other markup processed at all--it just jumps directly to
the redirected page.
So, this is why (:redirect:) isn't working in conditionals, or
in group headers/footers.
However, with PmWiki 2's model of handling directives I don't see
why it couldn't be adjusted to work from inside (:include:) and
(:if:) conditionals. I'll see about adding it in the 2.1.beta
series...
Pm
More information about the pmwiki-users
mailing list