[pmwiki-users] Anchor links and CSS

Sandy sandy at onebit.ca
Sun Jan 20 12:01:25 CST 2008


Sandy wrote:
> Patrick R. Michaud wrote:
>> On Sun, Jan 20, 2008 at 11:53:50AM -0500, Sandy wrote:
> 
>>> Is there a way I can give the anchors a class and hide them? Or do I 
>>> have to set the CSS for each of A.urllink, A.wikilink and A.selflink?
>> Yes, you can give anchors a class... try:
>>
>>   Markup('[[#','<[[','/(?>\\[\\[#([A-Za-z][-.:\\w]*))\\]\\]/e',
>>     "Keep(TrackAnchors('$1') ? '' : \"<a name='$1' id='$1' class='anchor'></a>\", 'L')");
>>
>> Then you can do something like:
>>
>>     A.anchor:hover { border:none; }
>>
>> Pm
> 
> Works great!
> 
> Thanks!
> 
> Sandy

Next question, so I can flesh out the manual a bit.

What other classes of links are there?

So far I've found:

.wikilink
A link to a page within the wiki

.urllink
A link to a page outside the wiki

.selflink
A link to the current page

Thanks!

Sandy





More information about the pmwiki-users mailing list