From: aphid <me...@ap...> - 2002-10-03 21:24:29
|
On Tuesday, October 1, 2002, at 12:39 AM, Reini Urban wrote: > aphid schrieb: >> hey, you commented on my wiki that you'd add something for extlinks >> so it would be possible to make them pop up in new windows.. >> i was wondering if this had gone in and where i should look for it >> when it does? i did a multi-file search to try to hunt down where it >> renders the a href tags for links and couldn't find it. > > sorry, currently I'm very busy. > > I know I did it on my private wiki, so it's not online yet. > you need <a target"_new" href=""> in LinkUnknownWikiWord() > > I added: > if ($request->getArg('frame')) > $link->setAttr('target', '_top'); > > Similarly you can do that for yours, > or override this function in your theme. > > $link->setAttr('target', '_new'); > I've tried this in theme.php and if it did anything, I'm not sure what. What I'm trying to do is have links that go away from the wiki (which I believe are called NamedWiki) to open in "_new".. maybe my calling them external links confused the situation. Cheers A |