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

Scott Connard connard at dsg-inc.com
Sun Aug 13 09:12:36 CDT 2006

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.


The Cookbook (http://www.pmwiki.org/wiki/Cookbook/ 
ConditionalMarkupSamples#action) is partially correct where it lists:

Definition: $Conditions['action'] = '\$GLOBALS["action"]==\$condparm';

If you add that line to your local/config.php file, the syntax you  
expect will work.

Scott Connard.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20060813/8cce534d/attachment.html 

More information about the pmwiki-users mailing list