Link -> target=_blank does not work

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.
Locked
flushell

Link -> target=_blank does not work

Post 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?
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: Link -> target=_blank does not work

Post 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  ;D

Do you have a link maybe?

Regards,
D
flushell

Re: Link -> target=_blank does not work

Post 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 !
Last edited by flushell on Wed Apr 11, 2007 4:34 pm, edited 1 time in total.
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: Link -> target=_blank does not work

Post 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
flushell

Re: Link -> target=_blank does not work

Post by flushell »

You were right. I added the code in red in my menu template and the problem was solved. Thanx
Locked

Return to “CMSMS Core”