How i can make Joomla 2.5 article open in new page

i use joomla 2.5.14 ,i set an menu in blog layout ,
now i want all the articles in this blog once be clicked ,opened in new windows.
what should i can do ?
thanks

how i can make article open in new page

how i can make article open in new page

In your Blog_item.php

<?php if ($params->get(‘show_title’)) : ?>
<h2>
<?php if ($params->get(‘link_titles’) && $params->get(‘access-view’)) : ?>
<a href=”<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid)); ?>”>
<?php echo $this->escape($this->item->title); ?></a>
<?php else : ?>
<?php echo $this->escape($this->item->title); ?>
<?php endif; ?>
</h2>
<?php endif; ?>

 

And then add target="_blank" to your Link.

 

Be Sociable, Share!

Leave a comment