OK, so I have attempted to create a (:pageaction :) markup element, but I can&#39;t make it work.  I&#39;m enough of a noob to not understand what the problem is.  I know that PageAction is being called because I stuck some debug strings in there and they were being displayed on the page.  It just appears that setting the action to text is not working properly.<br>

<br>Here&#39;s the code I wrote:<br><br>&lt;?php if (!defined(&#39;PmWiki&#39;)) exit();<br><br># --------------------------------------------------------------------------------------------------<br># Page Action markup<br>

# --------------------------------------------------------------------------------------------------<br>#<br># When a page is opened, apply the action specified by the (:pageaction myaction:) markup<br><br>$RecipeInfo[&#39;PageAction&#39;][&#39;Version&#39;] = &#39;2010-09-01&#39;;<br>

<br># Catch all text between (:pageaction and :) and call PageAction<br><br>Markup (&#39;PageAction&#39;, &#39;directives&#39;, &#39;/\\(:pageaction\\s+(.+?)\\s*:\\)/ei&#39;, &quot;PageAction (&#39;$1&#39;)&quot;);<br><br>

# Change the page action when the page is opened<br><br>function PageAction ($text) {<br>  global $action;<br>  if ($action == &#39;browse&#39;) $action = $text;<br>}<br><br>?&gt;<br><br>