[pmwiki-users] How to Selflink an Action?

Patrick R. Michaud pmichaud at pobox.com
Tue Apr 17 07:59:49 CDT 2007


On Tue, Apr 17, 2007 at 08:32:22AM -0400, Ben Wilson wrote:
> PmWiki has '.selflink' as an indicator to the Skin that the link is
> the current page. However, is there a way to mimic this .selflink
> behavior when in a specific action (e.g. Main.HomePage?action=edit).
> Perhaps  like '.selflinkaction'?

Option 1:  Write links as

    %class={$Action}% [[Main.HomePage?action=edit]]

and then style using

    span.edit a.selflink { ... }


Option 2:  Provide a separate pub/css/$action.css file for each action:

    $HTMLHeaderFmt[] = "<link rel='stylesheet' type='text/css'
      href='\$PubDirUrl/css/$action.css' />";

Inside of the pub/css/edit.css stylesheet, use

    a.selflink { ... }


There are probably lots of other approaches... hope this inspires
a few ideas.

Pm



More information about the pmwiki-users mailing list