[pmwiki-users] Applying styling to links
DaveG
pmwiki at solidgone.com
Sun Apr 25 14:52:45 CDT 2010
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
More information about the pmwiki-users
mailing list