[pmwiki-users] external links and overwriting default targets
Henrik
henrik.bechmann at sympatico.ca
Wed Mar 26 13:57:58 CDT 2008
Clemens,
I just have my authors put %newwin% in front of all external links:
%newwin%[[http://somewebsite.com|click here]]
That causes the link to open in a new window.
- Henrik
Patrick R. Michaud wrote:
> 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
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>
>
--
Henrik Bechmann
www.bechmann.ca
Webmaster, www.dufferinpark.ca
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20080326/8b3b121e/attachment.html
More information about the pmwiki-users
mailing list