Links in new window

February 2014 Joomla Template
Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Tue Mar 22, 2016 8:41 am
Reply with quote
Report this post
Hello
How to set links open in new window globally for the template? I have put in my article a mindmap that contains links so I can not do this manually!

another question, it is written above News module 'updated on...', how to remove this in a particular article?

Thanks in advance!! :) :)
User avatar
Fresh Boarder

GK User
Wed Mar 23, 2016 10:24 am
Reply with quote
Report this post
??????????
User avatar
Fresh Boarder

teitbite
Sat Mar 26, 2016 6:22 pm
Reply with quote
Report this post
Hi

I'm not sure why You need it, but adding this code to /layout/blocks/head.php will make every link open in new browser tab.

Code: Select all
<script type="text/javascript">(function($) {$(document).ready(function() {
$('a').each(function(){ $(this).attr('target','_blank') });
});})(jQuery)</script>


You can use this method: https://www.gavick.com/documentation/jo ... omla-pages

with a code like:

Code: Select all
.pageclasssuffixname .gkUpdates { display: none; }
User avatar
Moderator

GK User
Tue Mar 29, 2016 1:44 pm
Reply with quote
Report this post
Hi, thank you.
When I add this code all the links open new window even the menu :D
But my mindmap open in the same window, I think this issue is not related to the template!
User avatar
Fresh Boarder

teitbite
Mon Apr 04, 2016 10:43 am
Reply with quote
Report this post
Hi

My script is changing all links to open in new window. I thought this is what You've been asking for. Please tell me exactly which links You need to do this and I'll limit my script to this links only.
User avatar
Moderator


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.