Page 1 of 1

Links block: links open in new window

Posted: 16. December 2009 17:13
by ReconMarine
Your Portal Version: 1.0.0RC3
Your phpBB Type: Standard phpBB3
MODs installed: Yes
Your knowledge: Basic Knowledge

What have you done before the problem was there?
nothing new

What have you already tryed to solve the problem?
ask the question here

Description and Message
The links block, when you click a link the link opens in the parent window.

I want the link to open in a new window.

Can I overcome this by using tags in the ACP where you load links? Or do you have to edit code to fix this?

Semper Fi

Re: Links block: links open in new window

Posted: 16. December 2009 21:13
by Marc
Open styles/*yourstyle*/template/portal/block/links.html

Find:

Code: Select all

<a href="{link.URL}" title="{link.TEXT}">{link.TEXT}</a>
Replace with:

Code: Select all

<a href="{link.URL}" title="{link.TEXT}" target="_blank">{link.TEXT}</a>
By the way, after this the block will not be XHTML valid anymore.

Re: Links block: links open in new window

Posted: 17. December 2009 07:42
by ReconMarine
Ok I am lost on the "valid" issue, please explain.

What issues will that create?

Thanks

Re: Links block: links open in new window

Posted: 17. December 2009 12:30
by Mike
Maybe this can help you ;)

Re: Links block: links open in new window

Posted: 18. December 2009 13:24
by ReconMarine
Mike wrote:Maybe this can help you ;)
Mike I understand the "ideal" behind the validation issue, but my issue was.....I want my window to remain on MY page when I click a link I have created for someone elses page. My site isn't based on a consumer, or retail environment....so I think my question revolved around "Do I care if it validates or not?"

Semper Fi

Re: Links block: links open in new window

Posted: 18. December 2009 17:28
by Mike
I dont think so.
If it helps, my page isnt valid at all too... ;)