Difference between revisions of "Override:Blog Titles Linkable Article Titles Not"

From Joomla! Documentation

(add category)
Line 17: Line 17:
[[Category:Tips and tricks]]
[[Category:Tips and tricks]]
[[Category:Tips and tricks 1.5]]
[[Category:Tips and tricks 1.5]]
[[Category: Overrides]]

Latest revision as of 00:19, 12 June 2009

If you would like to have the titles in your blogs linkable, but them not to be linkable in the article view you need to make a layout override.

Copy components\com_content\views\article\tmpl\default.php to the html folder of your template.

Open the file.

Change lines 17-18

<a href="<?php echo $this->article->readmore_link; ?>" class="contentpagetitle<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
 <?php echo $this->escape($this->article->title); ?></a>


  <?php echo $this->escape($this->article->title); ?>