Jump to content

[SOLVED] LINKLIST module target _blank


Recommended Posts

Hello all.

Just a little change that i made to the LINKLIST module so that links to external websites open in a new tab rather than taking over from the customer viewing your website. Not sure how I found it but just some good luck. Perhaps someone will correct me if its wrong (but it worked for me).

Goto modules > ps_linklist > views > templateshook

In "linkblock-column.tpl"; Change line 30 to           {if !empty($link.target)} target="_blank" {/if}

In "linkblock.tpl"; Change line 30 to          {if !empty($link.target)} target="_blank" {/if}

Don't forget to keep backups of these files in case something goes wrong.
All the best.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...