external links don't open in a new window

Hi all,
after update to 5.1 external links don't open in a new window.
I can't find a solution for it.


How can i set, that external links open a new window?

Comments

  1. Removed target attribute

    The target attribute was removed from WackoWiki. The target attribute is deprecated. It was dropped due to accessibility reasons.

    old link

    <a class="outerlink" title="externer Verweis (in neuem Fenster)" target="_blank" href="http://wackowiki.sf.net">


    Its up to the user how to deal with the provided links. You can use for instance the Firefox Add-On TabMixPlus to do that for you.

  2. Kommentar 327

    OK
    I had overlooked the discussion on the attribute "_blank".
    I think it is a pity that this feature is eliminated. I liked it.

    in the future would it be OK, if that can be set with a command in the config?

  3. Re HTML5 target attribute

    I would really like to see the use of the target attribute implemented. Unskilled users currently don't know how to get back to a Wiki page they were using. Having the target attribute available would make it easy to navigate via browser tabs.

    Is there any way to achieve the effect within WackoWiki?

  4. Reimplement the target attribute

    The target attribute can be set in the wacko.all.php in the lang/ folder. We can provide a an additional option in the admin panel and user settings to set and change the default setting.

    We can provide a {target} pattern in the link() function e.g.
    class/wacko.php

    if ($this->config['link_target'])
    {
    	$target = '_blank';
    }
    else
    {
    	$target = '';
    }
    
    // [..]
    $res		= str_replace('{target}',	$target,		$res);


    lang/wacko.all.php
    'tpl.outerlink'	=> '<a href="{url}" target="{target}" title="{title}" class="{class}">{icon}{text}</a>',
      'tpl.interwiki'	=> '<a href="{url}" target="{target}" title="{title}" class="{class}">{icon}{text}</a>',
      'tpl.email'		=> '<a href="{url}" target="{target}" title="{title}" class="{class}">{icon}{text}</a>',
      'tpl.jabber'		=> '<a href="{url}" target="{target}" title="{title}" class="{class}">{icon}{text}</a>',
      'tpl.file'		=> '<a href="{url}" target="{target}" title="{title}" class="{class}">{icon}{text}</a>',
      'tpl.lan'		=> '<a href="{url}" target="{target}" title="{title}" class="{class}">{icon}{text}</a>',


    lang/wacko.all.php (without option)
    diff --git a/wacko/lang/wacko.all.php b/wacko/lang/wacko.all.php
    --- a/wacko/lang/wacko.all.php
    +++ b/wacko/lang/wacko.all.php
    @@ -26,14 +26,14 @@
         'tpl.pwrootpage'    => '<span class="missingpage">{icon}{page}</span>',
         'tpl.pwdescrpage'    => '<span class="missingpage">{text}</span>',
         'tpl.anchor'        => '<a href="{url}">{text}</a>',
    -    'tpl.outerlink'        => '<a href="{url}" title="{title}" class="{class}">{icon}{text}</a>',
    -    'tpl.interwiki'        => '<a href="{url}" title="{title}" class="{class}">{icon}{text}</a>',
    -    'tpl.email'            => '<a href="{url}" title="{title}" class="{class}">{icon}{text}</a>',
    -    'tpl.jabber'        => '<a href="{url}" title="{title}" class="{class}">{icon}{text}</a>',
    -    'tpl.file'            => '<a href="{url}" title="{title}" class="{class}">{icon}{text}</a>',
    +    'tpl.outerlink'        => '<a href="{url}" target="_blank" title="{title}" class="{class}">{icon}{text}</a>',
    +    'tpl.interwiki'        => '<a href="{url}" target="_blank" title="{title}" class="{class}">{icon}{text}</a>',
    +    'tpl.email'            => '<a href="{url}" target="_blank" title="{title}" class="{class}">{icon}{text}</a>',
    +    'tpl.jabber'        => '<a href="{url}" target="_blank" title="{title}" class="{class}">{icon}{text}</a>',
    +    'tpl.file'            => '<a href="{url}" target="_blank" title="{title}" class="{class}">{icon}{text}</a>',
         'tpl.localfile'        => '<a href="{url}" title="{title}" class="{class}">{icon}{text}</a>',
         'tpl.wlocalfile'    => '<span class="missingpage" title="{title}">{text}</span>',
    -    'tpl.lan'            => '<a href="{url}" title="{title}" class="{class}">{icon}{text}</a>',
    +    'tpl.lan'            => '<a href="{url}" target="_blank" title="{title}" class="{class}">{icon}{text}</a>',
     
         //icons
         'childicon'        => '!/',


    Every time you provide an option, you’re asking the user to make a decision.


    DONE -> see change set, implemented only the global option.

    • WikiAdmin
    • edited