Page 1 of 1
Link -> target=_blank does not work
Posted: Wed Apr 11, 2007 2:14 pm
by flushell
I am using 1.0.5
When I add a link to the menu (with pages) and I select that the target should be _blank (so it should open a NEW page when you click on it) it does not work. In stead of that it opens in the same window.
Is that a bug or a feature? Or am I doing something wrong?
Re: Link -> target=_blank does not work
Posted: Wed Apr 11, 2007 2:24 pm
by Dee
It looks like you're doing something wrong, although there's not much to do wrong here

Pages of content type "Link" with "Target" set to '_blank' work fine over here (1.0.5, the link to Themes on
this page is such a link - site is under construction).
In modern browsers it may open in the same window, but in a new tab though
Do you have a link maybe?
Regards,
D
Re: Link -> target=_blank does not work
Posted: Wed Apr 11, 2007 4:31 pm
by flushell
Strange, doe not work here. Your site is working however... nice new tab...
Link: http://www.movirenco.nl The link to forum
What can go wrong... I REALLY have the Taget box on _blank !
Re: Link -> target=_blank does not work
Posted: Wed Apr 11, 2007 4:38 pm
by Dee
The target is not included in the link:
Code: Select all
<li id="a79" class="child"><a id="a79" href="http://www.movirenco.nl/forum">Forum</a>
So it seems to be a problem in your menu template.
Make sure it does something like this for Link type content (from the default simple-navigation template):
url}"{if $node->accesskey != ''} accesskey="{$node->accesskey}"{/if}{if $node->tabindex != ''} tabindex="{$node->tabindex}"{/if}{if $node->titleattribute != ''} title="{$node->titleattribute}"{/if}
{if $node->target != ''} target="{$node->target}"{/if}>{$node->hierarchy}: {$node->menutext}
Regards,
D
Re: Link -> target=_blank does not work
Posted: Wed Apr 11, 2007 5:46 pm
by flushell
You were right. I added the code in red in my menu template and the problem was solved. Thanx