Override:Blog Titles Linkable Article Titles Not
From Joomla! Documentation
(Difference between revisions)
(add category) |
|||
| (One intermediate revision by one user not shown) | |||
| Line 6: | Line 6: | ||
Change lines 17-18 | Change lines 17-18 | ||
| − | <a href="<?php echo $this->article->readmore_link; ?>" | + | <a href="<?php echo $this->article->readmore_link; ?>" class="contentpagetitle<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>"> |
| − | 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); ?></a> | ||
| Line 18: | 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 01: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>
To
<?php echo $this->escape($this->article->title); ?>