Latesnews + opening article in the same window what about new window?

Hi there
Thanks for your great modules.
I am using Latesnews + on joomla 2.5 right now.
Everything works fine but I want to open every article in a new (tab)window in browser.
It has open every article in the same window right now
Please help me about if you don't mind.
Thanks again,
9 years 2 weeks ago #1 by joomi

Please Log in or Create an account to join the conversation.

  • Posted by TemplatePlazza (5310) Offline
Hi open this file with your favorite php editor :
modulesm/mod_latestnewsplusdate/tmpl/default.php

find this code at line 45 :
    <a class='lndtitle' href="<?php echo $item->link; ?>"><?php echo $item->text; ?></a>

change to
    <a class='lndtitle' target="_blank" href="<?php echo $item->link; ?>"><?php echo $item->text; ?></a>


and then find this code at line 153
<a href="<?php echo $item->link; ?>" class="latestnews">
change to
<a href="<?php echo $item->link; ?>" target="_blank"  class="latestnews">
9 years 2 weeks ago #2 by TemplatePlazza

Please Log in or Create an account to join the conversation.

Well done.
You know what?
You are awesome
Thanks for your help.
You made made my day.
Oceans of thanks.
9 years 2 weeks ago #3 by joomi

Please Log in or Create an account to join the conversation.

  • Posted by TemplatePlazza (5310) Offline
No problem at all. Glad we could help :)
If you don't mind please leave us a rate in the JED
It will help us much ;)
9 years 2 weeks ago #4 by TemplatePlazza

Please Log in or Create an account to join the conversation.

Sure.
Thanks again.
9 years 2 weeks ago #5 by joomi

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum