17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 3898 Views |
-
Redirect Page -> New window

29 August 2008 at 9:27am Last edited: 29 August 2008 4:29pm
Is there a way with SilverStripe to add a redirect page that will open in a new window? I know there is a redirect page, but that will redirect the current window.
*edit*
Thank you simon_w!
added this to my navigation template =)
<% if is_a(RedirectorPage) %> target="_blank" <% end_if %> -
Re: Redirect Page -> New window

27 September 2008 at 1:39am Last edited: 27 September 2008 1:40am
I'm trying to do this exact same thing, but not having any luck. I'm not sure where exactly to put the if statement. I added it to my Navigation.ss template, but it's not working properly. Instead of my menu item behaving like it has the target=_blank property, it's displaying target=_blank in the menu.
-
Re: Redirect Page -> New window

27 September 2008 at 10:48am
You need to put the if statement inside the <a> tag. Something like this: <a href="url" if statement>title</a>
| 3898 Views | ||
|
Page:
1
|
Go to Top |



