[SOLVED] Content Type: Redirecting Link with _blank target

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
mesaredo
Forum Members
Forum Members
Posts: 27
Joined: Mon Jul 27, 2009 1:23 pm

[SOLVED] Content Type: Redirecting Link with _blank target

Post 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?
Last edited by mesaredo on Thu Mar 15, 2012 3:37 pm, edited 1 time in total.
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: Content Type: Redirecting Link with _blank target

Post by Wishbone »

What does the output HTML say (view source) for this link? Do you see the target="_blank" ?
mesaredo
Forum Members
Forum Members
Posts: 27
Joined: Mon Jul 27, 2009 1:23 pm

Re: Content Type: Redirecting Link with _blank target

Post by mesaredo »

Not, only the link appear...
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: Content Type: Redirecting Link with _blank target

Post 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>
staartmees
Power Poster
Power Poster
Posts: 1049
Joined: Wed Mar 19, 2008 4:54 pm

Re: Content Type: Redirecting Link with _blank target

Post by staartmees »

it's a known bug in the simple_navigation.tpl; use cssmenu.tpl instead.
mesaredo
Forum Members
Forum Members
Posts: 27
Joined: Mon Jul 27, 2009 1:23 pm

Re: Content Type: Redirecting Link with _blank target

Post 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.
mesaredo
Forum Members
Forum Members
Posts: 27
Joined: Mon Jul 27, 2009 1:23 pm

Re: Content Type: Redirecting Link with _blank target

Post 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.
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: Content Type: Redirecting Link with _blank target

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

Re: Content Type: Redirecting Link with _blank target

Post 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...
mesaredo
Forum Members
Forum Members
Posts: 27
Joined: Mon Jul 27, 2009 1:23 pm

Re: Content Type: Redirecting Link with _blank target

Post 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 ::)
mesaredo
Forum Members
Forum Members
Posts: 27
Joined: Mon Jul 27, 2009 1:23 pm

Re: Content Type: Redirecting Link with _blank target

Post 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
mesaredo
Forum Members
Forum Members
Posts: 27
Joined: Mon Jul 27, 2009 1:23 pm

Re: Content Type: Redirecting Link with _blank target

Post 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.
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: Content Type: Redirecting Link with _blank target

Post 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.
mesaredo
Forum Members
Forum Members
Posts: 27
Joined: Mon Jul 27, 2009 1:23 pm

Re: Content Type: Redirecting Link with _blank target

Post 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.
mesaredo
Forum Members
Forum Members
Posts: 27
Joined: Mon Jul 27, 2009 1:23 pm

Re: Content Type: Redirecting Link with _blank target

Post by mesaredo »

Solved.

Thank a lot for the support.
Locked

Return to “CMSMS Core”