[pmwiki-users] Changing the Page Action on Page Load
Patrick R. Michaud
pmichaud at pobox.com
Wed Sep 1 08:21:51 CDT 2010
On Wed, Sep 01, 2010 at 07:03:48AM -0400, Bruce & Ann Reidenbach wrote:
> Is there a way to create a default page action when a page link
> is clicked?
If it's just a small number of fixed pages, you could change the
default action via a per-page configuration file. For example,
creating local/XYZ.MyPage.php with
if ($action == 'view') $action = 'myaction';
would automatically change the action from 'view' to 'myaction'
whenever XYZ.MyPage is accessed.
AFAIK there's not a built-in markup to do this, although it wouldn't
be too difficult to create a recipe for it.
More information about the pmwiki-users