[solved]Menu-item with external link not using target=_blank

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
janvl
Power Poster
Power Poster
Posts: 980
Joined: Wed Aug 13, 2008 10:57 am

[solved]Menu-item with external link not using target=_blank

Post 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
Last edited by janvl on Sun Jan 29, 2012 12:24 pm, edited 1 time in total.
klenkes
Power Poster
Power Poster
Posts: 307
Joined: Mon Sep 08, 2008 9:43 am

Re: Menu-item with external link not using target=_blank

Post 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.
janvl
Power Poster
Power Poster
Posts: 980
Joined: Wed Aug 13, 2008 10:57 am

Re: Menu-item with external link not using target=_blank

Post 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
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Menu-item with external link not using target=_blank

Post 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...
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
janvl
Power Poster
Power Poster
Posts: 980
Joined: Wed Aug 13, 2008 10:57 am

Re: [solved]Menu-item with external link not using target=_b

Post 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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: [solved]Menu-item with external link not using target=_b

Post by Dr.CSS »

Did you try...

accessible_simple_navigation.tpl
janvl
Power Poster
Power Poster
Posts: 980
Joined: Wed Aug 13, 2008 10:57 am

Re: [solved]Menu-item with external link not using target=_b

Post by janvl »

Not yet, but I will now.

Kind regards,
Jan
Post Reply

Return to “CMSMS Core”