Page 1 of 1

[SOLVED] Content Type: Redirecting Link with _blank target

Posted: Tue Mar 13, 2012 9:00 pm
by mesaredo
I try one external page link with Content Type: Redirecting Link. In Options I select _blank target, but the link open in the same window.

Any idea?

Re: Content Type: Redirecting Link with _blank target

Posted: Tue Mar 13, 2012 10:51 pm
by Wishbone
What does the output HTML say (view source) for this link? Do you see the target="_blank" ?

Re: Content Type: Redirecting Link with _blank target

Posted: Tue Mar 13, 2012 11:12 pm
by mesaredo
Not, only the link appear...

Re: Content Type: Redirecting Link with _blank target

Posted: Wed Mar 14, 2012 1:04 am
by Wishbone
Did you modify your menu template?

Check for something like:
<li><a href="{$node->url}" class="currentpage"{if $node->target ne ""} target="{$node->target}"{/if}> {$node->menutext} </a>

Re: Content Type: Redirecting Link with _blank target

Posted: Wed Mar 14, 2012 6:31 am
by staartmees
it's a known bug in the simple_navigation.tpl; use cssmenu.tpl instead.

Re: Content Type: Redirecting Link with _blank target

Posted: Wed Mar 14, 2012 12:56 pm
by mesaredo
staartmees wrote:it's a known bug in the simple_navigation.tpl; use cssmenu.tpl instead.
I made a clean cms install and try with templates that use the cssmenu.tpl and _blank taget don't work. Link open in the same page.

Re: Content Type: Redirecting Link with _blank target

Posted: Wed Mar 14, 2012 1:00 pm
by mesaredo
Wishbone wrote:Did you modify your menu template?

Check for something like:
<li><a href="{$node->url}" class="currentpage"{if $node->target ne ""} target="{$node->target}"{/if}> {$node->menutext} </a>
Wishbone: Can you paste the complete code from one modified menu template? I dont' know exactly where put this line code.

Re: Content Type: Redirecting Link with _blank target

Posted: Wed Mar 14, 2012 3:34 pm
by Wishbone
I grabbed it from one of the default templates... Where ever you have an <a href= statement, put:

{if $node->target ne ""} target="{$node->target}"{/if}

before you put the closing >

Re: Content Type: Redirecting Link with _blank target

Posted: Wed Mar 14, 2012 8:45 pm
by Dr.CSS
There are 2 menu templates that will let you use the _blank they have accessible_ on the front of them, try using one of them...

Re: Content Type: Redirecting Link with _blank target

Posted: Thu Mar 15, 2012 1:28 pm
by mesaredo
Dr.CSS wrote:There are 2 menu templates that will let you use the _blank they have accessible_ on the front of them, try using one of them...
Hi Doc. I try with booth, but nothing changes. I test one site with all pages with the same template using accessible_ menu templates ... I'm going crazy ::)

Re: Content Type: Redirecting Link with _blank target

Posted: Thu Mar 15, 2012 1:30 pm
by mesaredo
Wishbone wrote:I grabbed it from one of the default templates... Where ever you have an <a href= statement, put:

{if $node->target ne ""} target="{$node->target}"{/if}

before you put the closing >
Thanks Wishbone. I try this but nothing changes. :o

Re: Content Type: Redirecting Link with _blank target

Posted: Thu Mar 15, 2012 2:11 pm
by mesaredo
I install one testing site. You can see it

http://www.powerbrand.cl/pruebas/

Inside the Testing Menu section I create some pages with one template using accessible_simple_navigation.

If someone like to investigate inside, you can access with "admin" user and pass.

Re: Content Type: Redirecting Link with _blank target

Posted: Thu Mar 15, 2012 3:01 pm
by Wishbone
At first glance, it seems like a bug.. First of all, the cssmenu_ulshadow.tpl menu template checks for 'target', but doesn't use it... I cloned this template, and placed {$target} inside of the <a ...>, but it still doesn't seem to work.

It's not a good idea to put the username and password of a test install on an open forum... Anyone can upload something with the file manager, or put malicious code in a UDT and run it and take over/destroy your entire site.. Not just your test install.

Re: Content Type: Redirecting Link with _blank target

Posted: Thu Mar 15, 2012 3:07 pm
by mesaredo
Wishbone wrote:At first glance, it seems like a bug.. First of all, the cssmenu_ulshadow.tpl menu template checks for 'target', but doesn't use it... I cloned this template, and placed {$target} inside of the <a ...>, but it still doesn't seem to work.

It's not a good idea to put the username and password of a test install on an open forum... Anyone can upload something with the file manager, or put malicious code in a UDT and run it and take over/destroy your entire site.. Not just your test install.
You are right. I change the user and pass.

Re: Content Type: Redirecting Link with _blank target

Posted: Thu Mar 15, 2012 3:24 pm
by mesaredo
Solved.

Thank a lot for the support.