<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Clemens,<br>
<br>
I just have my authors put %newwin% in front of all external links:<br>
<br>
%newwin%[[<a class="moz-txt-link-freetext" href="http://somewebsite.com">http://somewebsite.com</a>|click here]]<br>
<br>
That causes the link to open in a new window.<br>
<br>
- Henrik<br>
<br>
Patrick R. Michaud wrote:
<blockquote cite="mid:20080326174623.GF23964@host.pmichaud.com"
 type="cite">
  <pre wrap="">On Wed, Mar 26, 2008 at 04:12:46PM +0100, Clemens Gruber wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">In farmconfig a default blank target is defined

    # open external links in new window
    $UrlLinkFmt = "&lt;a class='external' href='\$LinkUrl' rel='nofollow'
target='_blank'&gt;\$LinkText&lt;/a&gt;";


Now I like to switch the target on some links, but this doesn't work:

    %target=_self% [[<a class="moz-txt-link-freetext" href="http://www.engadget.com">http://www.engadget.com</a>]].


There is still a "wrong" target specification in the html output:

    &lt;a class="external" href=<a class="moz-txt-link-rfc2396E" href="http://www.engadget.com">"http://www.engadget.com"</a> rel="nofollow"
target="_blank"&gt;<a class="moz-txt-link-freetext" href="http://www.engadget.com">http://www.engadget.com</a>&lt;/a&gt;


What can I do?
    </pre>
  </blockquote>
  <pre wrap=""><!---->
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
<a class="moz-txt-link-abbreviated" href="mailto:pmwiki-users@pmichaud.com">pmwiki-users@pmichaud.com</a>
<a class="moz-txt-link-freetext" href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users">http://www.pmichaud.com/mailman/listinfo/pmwiki-users</a>

  </pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 

Henrik Bechmann
<a class="moz-txt-link-abbreviated" href="http://www.bechmann.ca">www.bechmann.ca</a>
Webmaster, <a class="moz-txt-link-abbreviated" href="http://www.dufferinpark.ca">www.dufferinpark.ca</a></pre>
</body>
</html>