Intechnic
Users Developers
Home / Forums / In-Portal CMS / New Features & Improvement Suggestions / links opening in a new window. / Topic Posts

In-Portal Forum

This is a place for users of In-Portal to ask questions, discuss various topics, and interact with other members of the In-Portal Community. Please report bugs through the Bugs Team (not the Forum). If you are interested in contributing or joining one of the many Teams for In-Portal, please check out the Contribute section of the website.
 

In-Portal Forum

links opening in a new window. (6)


Posted: 01/21/2005 4:29:52 AM

Reply Quoted  


Is it possible to let links open in a new window?

What needs to be customized?

Theo
http://www.san-diego.cc


[Edited By Thpl on 01/21/05 4:35:56 AM]

Posted: 01/21/2005 8:06:44 AM

Reply Quoted  


Would be nice to have an answer. I also need the links opened in a new window, but it seems this would have to be changed in many different places adding a "target=_blank" to the HREF. Is there an easier way? Thanks for a reply.

Posted: 01/21/2005 11:30:36 AM

Reply Quoted  


Hello,

Well, the main reason why we haven't put it as a setting in Admin - there are a lot templates which can work in different way from each our. For example in one place you want links to open in a new window when in another you don't. That's why we decided that you can simply change the Item template yourself and set it the way you like.

General Link element template is "default/inlink/link_element.tpl" and there you need to add a target="_blank" to the following code:

<a href="<inp:link _field="redirect" />" target="_blank"><inp:link _field="name" /></a>

. For your reference - "default/inlink/detail.tpl" template is a link "details" template.

Thank you.

[Edited By Dmitry on 01/21/05 11:31:12 AM]

Posted: 07/25/2005 2:05:19 PM

Reply Quoted  


Dmitry wrote:01/21/2005 11:30:36 AM
Hello,

Well, the main reason why we haven't put it as a setting in Admin - there are a lot templates which can work in different way from each our. For example in one place you want links to open in a new window when in another you don't. That's why we decided that you can simply change the Item template yourself and set it the way you like.

General Link element template is "default/inlink/link_element.tpl" and there you need to add a target="_blank" to the following code:

<a href="<inp:link _field="redirect" />" target="_blank"><inp:link _field="name" /></a>

. For your reference - "default/inlink/detail.tpl" template is a link "details" template.

Thank you.

[Edited By Dmitry on 01/21/05 11:31:12 AM]




Hi, I've made the changes in "default/inlink/link_element.tpl" as described above but the links doesn't open a new window... why?? :scared:

Thank you!

Maria

Posted: 07/25/2005 2:14:08 PM

Reply Quoted  


Dmitry wrote:01/21/2005 11:30:36 AM
Hello,

Well, the main reason why we haven't put it as a setting in Admin - there are a lot templates which can work in different way from each our. For example in one place you want links to open in a new window when in another you don't. That's why we decided that you can simply change the Item template yourself and set it the way you like.

General Link element template is "default/inlink/link_element.tpl" and there you need to add a target="_blank" to the following code:

<a href="<inp:link _field="redirect" />" target="_blank"><inp:link _field="name" /></a>

. For your reference - "default/inlink/detail.tpl" template is a link "details" template.

Thank you.

[Edited By Dmitry on 01/21/05 11:31:12 AM]




Hi, I've made the changes in "default/inlink/link_element.tpl" as described above but the links doesn't open a new window... why?? :scared:

Thank you!

Maria

Posted: 07/26/2005 10:12:40 AM

Reply Quoted  


Linda wrote:07/25/2005 2:14:08 PM
Dmitry wrote:01/21/2005 11:30:36 AM
Hello,

Well, the main reason why we haven't put it as a setting in Admin - there are a lot templates which can work in different way from each our. For example in one place you want links to open in a new window when in another you don't. That's why we decided that you can simply change the Item template yourself and set it the way you like.

General Link element template is "default/inlink/link_element.tpl" and there you need to add a target="_blank" to the following code:

<a href="<inp:link _field="redirect" />" target="_blank"><inp:link _field="name" /></a>

. For your reference - "default/inlink/detail.tpl" template is a link "details" template.

Thank you.

[Edited By Dmitry on 01/21/05 11:31:12 AM]




Hi, I've made the changes in "default/inlink/link_element.tpl" as described above but the links doesn't open a new window... why?? :scared:

Thank you!

Maria


Hello Maria,

Is there anywhere we can see your In-portal installation in order to troubleshoot the problem?

Thanks.