Ryan Varick <[email protected]> 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:)

_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to