[pmwiki-users] How to add a class to an anchor/link and an accesskey

DaveG pmwiki at solidgone.com
Sun Apr 5 18:12:26 CDT 2009


DaveG wrote:
> This is a two part question.
> 1] How to apply a class to a link?
> 2] How to also provide an accesskey to that link.
This:
   $WikiStyleApply['a'] = 'a';


with:
   %apply=a class="my-class" accesskey="$[ak_edit]"%[[url | label]]%%

works, but it applies the class and accesskey to ALL links on the page, 
not just the one that it's been applied to.



  ~ ~ Dave



More information about the pmwiki-users mailing list