[pmwiki-users] How to Selflink an Action?

Ben Wilson dausha at gmail.com
Thu Apr 19 12:55:07 CDT 2007


I suppose the problem is that when I am in edit mode, the ?action=edit
link is not .selflink. I can handle the CSS afterward, but the
selflink does not work.

On 4/17/07, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> 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
>


-- 
Ben Wilson
"Words are the only thing which will last forever" Churchill



More information about the pmwiki-users mailing list