I saw the external link marker on the Squeak SmallWiki
prototype; I
saw that they're css based in wikipedia - does the prototype
implement them the same way, and if yes, what do I have to alter to
use them in my own wiki?
I checked this site, but I don't understand what you mean with the
external link marker?
Well, as far as I understand, external links (those created with
*link>http://target/*) are known to the structure as being external.
So, I'd like to alter the class on external links - like
http://box1.squeakfoundation.org:7777/
*Seaside>http://www.seaside.st/* expands to
<a class="external" target="_blank"
href="http://www.seaside.st/">Seaside</a>.
The question is, where is the right place in the code to do that? Or
is it a preference I have not yet found?
Ahh, I see the point.
If you want the target to be _blank for all the external links you
could add the following method:
VisitorRendererHtml>>acceptLinkExternal: aLink
stream attributeAt: 'target' put: '_blank'.
super acceptLinkExternal: aLink.
If you want this attribute to be set just for a few external links
either use HTML in these cases or add a property to LinkExternal and
update the classes WikiParser, WikiScanner, VisitorRendererWiki and
VisitorRendererHtml accordingly.
Cheers,
Lukas
--
Lukas Renggli