Sep

17

In this article, let’s see in Joomla, how to link an article excerpt title to full article, which is the same as the “Read more…” link.

If you know how to use template file to override the core Joomla functions, in your template folder: create a new folder called ‘html’.
In that folder you create a folder called ‘com_content’.
And in that folder you create the folders called “category”, “homepage”, “section”

Then locate the following files

Copy the files to your template’s html folders

Open these files.
Nearly at the bottom of these files you should be seeing something like:

<a href="<?php echo $this->item->readmore_link; ?>" class="readon<?php echo $this->item->params->get('pageclass_sfx'); ?>">
     <?php if ($this->item->readmore_register) :
          echo JText::_('Register to read more...');
     elseif ($readmore = $this->item->params->get('readmore')) :
          echo $readmore;
     else :
          echo JText::sprintf('Read more...');
     endif; ?></a>

Change the line

echo JText::sprintf('Read more...');

into


echo JText::sprintf('Read more', $this->item->title);


Similar Posts

Comments

Name (required)

Email (required)

Website

Speak your mind

Sponsors




Links