[pmwiki-users] external links and overwriting default targets
Patrick R. Michaud
pmichaud at pobox.com
Wed Mar 26 12:46:23 CDT 2008
On Wed, Mar 26, 2008 at 04:12:46PM +0100, Clemens Gruber wrote:
> In farmconfig a default blank target is defined
>
> # open external links in new window
> $UrlLinkFmt = "<a class='external' href='\$LinkUrl' rel='nofollow'
> target='_blank'>\$LinkText</a>";
>
>
> Now I like to switch the target on some links, but this doesn't work:
>
> %target=_self% [[http://www.engadget.com]].
>
>
> There is still a "wrong" target specification in the html output:
>
> <a class="external" href="http://www.engadget.com" rel="nofollow"
> target="_blank">http://www.engadget.com</a>
>
>
> What can I do?
Not a whole lot, unfortunately. Wikistyles aren't smart enough
to replace an existing target= value (coming from $UrlLinkFmt)
with a custom one.
Pm
More information about the pmwiki-users
mailing list