[pmwiki-users] Adding a class to specific links

DaveG pmwiki at solidgone.com
Mon Oct 26 13:51:06 CDT 2009



kirpi at kirpi.it wrote:
> I was trying to add SnapShots[1] to some of my pages. While giving
> http://www.snap.com/ automatic control over the whole pages results in
> a mess, I think that enabling SnapShots on specific links (example
> wikipedia links) might be fine. I'm just testing it.
> 
> In order to trigger SnapShots on specific links, a "snap_shots" class
> should be added to the link, something like
> <a class="snap_shots" href="http://www.example.com">www.example.com</a>[2]
> 
> Is there any way to have such a class added per-link?
Drom an earlier response to when I asked this question a while back:

Add this to config.php:
$WikiStyleApply['a'] = 'a';

Once you've done that, you should be able to use the following to get
what you want:

%apply=a class='confirm-delete'%[[Main.HomePage|Delete Test]]


  ~ ~ Dave



More information about the pmwiki-users mailing list