[pmwiki-users] if action = whatever ... doesn't work?

Patrick R. Michaud pmichaud at pobox.com
Sun Aug 13 08:40:46 CDT 2006

On Sun, Aug 13, 2006 at 09:32:07AM -0400, Pico wrote:
> Tegan Dowling wrote:
> > I can't figure out whether the conditional (:if action browse:) and (:if 
> > ! action edit:) are failing to work properly, or if (more likely) I'm 
> > failing to understand and use the markup correctly.

As Pico mentions, there's no "action" conditional.

> Use the action page variable and an equal condition, like this:
> (:if equal {$Action} "browse":}
> (:if !equal {$Action} "browse":}
> (:if equal {$Action} "edit":}
> (:if !equal {$Action} "edit":}

This is correct.


More information about the pmwiki-users mailing list