[pmwiki-users] Include page action?

Tamara Temple tamouse.lists at tamaratemple.com
Tue Dec 6 23:28:04 CST 2011

Ryan Varick <rvarick at gmail.com> wrote:
> Is is possible to use the (:include:) directive for specific page actions? For
> example, is there any way to (:include:) the ?action=edit or ?action=source
> variants of a page? Instead of reloading the page for these actions, I simply
> want to show a previously-hidden, pre-populated DIV.

SHould be:

(:if equal "{$Action}" "edit":)(:include xyz:)(:ifend:)

For a little prettier syntax, per
http://www.pmwiki.org/wiki/Cookbook/ConditionalMarkupSamples :

Add the following to local/config.php:

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

Then, on your page, the following markup should work:

(:if action edit:)(:include xyz:)(:ifend:)

More information about the pmwiki-users mailing list