Page 1 of 1
[solved]Menu-item with external link not using target=_blank
Posted: Sat Jan 28, 2012 11:22 pm
by janvl
Hi,
I have a new site with 1.10.3.
Using Left simple navigation.
http://www.vds-pflanzen.at
One of the menu-items (webshop) is a link to an external URL.
I have given in the URL and in Options
gave "_blank " for target.
Then it opens in the same window.
When I look in the sourcecode with the browser there is no target="_blank"
Is this a known problem?
And is there a patch?
Kind regards,
Jan
Re: Menu-item with external link not using target=_blank
Posted: Sun Jan 29, 2012 9:53 am
by klenkes
As I see it the template "Left simple navigation" uses the menutemplate simple_navigation and it doesn't account for a target attribute.
Code: Select all
{if $node->target}target="{$node->target}" {/if}
...is missing from the template.
Perhaps the template is just that "simple"
Either insert it yourself or use another menutemplate like cssmenu.tpl or accessible_cssmenu.tpl.
Re: Menu-item with external link not using target=_blank
Posted: Sun Jan 29, 2012 12:24 pm
by janvl
Thank you,
I inserted the line and now it works like it should.
Shouldn't this be in the standard template? For if you enter a menu-item you can choose in options for the "target".
I will make a note to the devteam.
Kind regards,
Jan
Re: Menu-item with external link not using target=_blank
Posted: Sun Jan 29, 2012 12:41 pm
by Rolf
janvl wrote:Shouldn't this be in the standard template? For if you enter a menu-item you can choose in options for the "target".
isnt there an explanation regarding the availability of this option... I thought I added this myself...
Re: [solved]Menu-item with external link not using target=_b
Posted: Sun Jan 29, 2012 2:01 pm
by janvl
Right, it is there (in german)
"Diese Option kann durch den MenüManager verwendet werden, um anzuzeigen, ob der Link in einem neuen Fenster geöffnet werden soll (target). Bitte prüfen Sie, ob die von Ihnen verwendeten MenüManager-Templates diesen Parameter verwenden."
But on a 1920px wide screen it is not exactly "visible".
I still think, it should be in the templates that are default in CMSMS, especially because it is so simple, just this one line.
Kind regards,
Jan
Re: [solved]Menu-item with external link not using target=_b
Posted: Tue Jan 31, 2012 7:17 pm
by Dr.CSS
Did you try...
accessible_simple_navigation.tpl
Re: [solved]Menu-item with external link not using target=_b
Posted: Tue Jan 31, 2012 7:53 pm
by janvl
Not yet, but I will now.
Kind regards,
Jan