Re: [pmwiki-users] apply class to link

2007-04-13 Thread Hans
Friday, April 13, 2007, 3:47:09 AM, Henrik wrote: How do I apply a class to a link? I'd like to do %class=something%[[Some Page Link]], and have it render as a class=something... Instead it generates span class=somethinga href=... You can't do that at present I believe (and I could be

Re: [pmwiki-users] apply class to link

2007-04-13 Thread Henrik
Thanks Hans. I suppose the logical way to do this (to be consistent with PmWiki approaches) would be %apply=link wikistyle%[[SomeLink]]... - Henrik Hans wrote: Friday, April 13, 2007, 3:47:09 AM, Henrik wrote: How do I apply a class to a link? You can't do that at present I

Re: [pmwiki-users] apply class to link

2007-04-13 Thread Patrick R. Michaud
On Fri, Apr 13, 2007 at 08:19:38AM -0400, Henrik wrote: Thanks Hans. I suppose the logical way to do this (to be consistent with PmWiki approaches) would be %apply=link wikistyle%[[SomeLink]]... Yes. I think this can be added with (untested): $WikiStyleApply['link'] = 'a'; Out of

Re: [pmwiki-users] apply class to link

2007-04-13 Thread Patrick R. Michaud
On Fri, Apr 13, 2007 at 10:10:05AM -0400, Henrik wrote: Given a.native:hover { background-color:transparent; } Out of curiosity, why is %wikistyle%[[SomeLink]] insufficient? Style rules like background-color don't inherit. One can always do: span.native a:hover {

Re: [pmwiki-users] apply class to link

2007-04-13 Thread Henrik
Patrick, One can always do: span.native a:hover { background-color:transparent; } Good point. I'll see what I can do about the doubled class= attributes. Combining multiple class= and style= attributes is just a major pain in terms of PHP code, unfortunately. I wouldn't say it's

[pmwiki-users] apply class to link

2007-04-12 Thread Henrik
How do I apply a class to a link? I'd like to do %class=something%[[Some Page Link]], and have it render as a class=something... Instead it generates span class=somethinga href=... Thanks, - Henrik -- Henrik Bechmann www.bechmann.ca Webmaster, www.dufferinpark.ca