In order to apply a style to an anchor element, we can do this:
$WikiStyleApply['a'] = 'a';
And then use like this:
%apply=a abc%[[Test/Test | Test]]%%
Which produces:
<a href="http://localhost:4000/pmwiki/pmwiki.php/Test/Test"
class="abc">Test</a>
However, if we have this markup, with two links, each having a different
class specification:
%apply=a abc%[[Test/Test | Test]]%% %apply=a def%[[Test/Test | Test]]%%
The second class ('def') is applied to both links.
<a href="http://localhost:4000/pmwiki/pmwiki.php/Test/Test"
class="def">Test</a> <a
href="http://localhost:4000/pmwiki/pmwiki.php/Test/Test"
class="def">Test</a>
Is there a way to ensure each link gets the correct class?
~ ~ Dave
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users