Rafeyfa.COM

The Best Joomla Design for You...

Fresh press :
Download Free Music legally,, legally
Disable Windows Logo
Disable The Send Error Report, to Microsoft
Disable Compression On Xp, NTFS partition, Disk Cleanup
Previous Next

Add article title to read more link in Joomla

E-mail Print PDF
User Rating: / 1
PoorBest 

How to add an article title to the “Read more...” link?

For this you can use the overrides...

If they are not already there, 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

  • (joomla)/components/com_content/views/category/tmpl/blog_item.php
  • (joomla)/components/com_content/views/homepage/tmpl/default_item.php
  • (joomla)/components/com_content/views/section/tmpl/blog_item.php

Copy the files to your template's html folders

  • (yourtemplate)/html/com_content/category/blog_item.php
  • (yourtemplate)/html/com_content/frontpage/default_item.php
  • (yourtemplate)/html/com_content/section/blog_item.php

Open these files.

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

<a href="item->readmore_link; ?>" class="readonitem->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);

The “Read more” link should now look like this: Read more: (Article title)



Trackback(0)
Comments (0)Add Comment
Write comment
 
 
smaller | bigger
 

security image
Write the displayed characters


busy
Last Updated ( Tuesday, 30 June 2009 08:50 )  
Home Articles Joomla Tutorials Add article title to read more link in Joomla

Contact us

Please contact us at the following.
  • Address: Kresno 45 Kademangan, Blitar, East Java, Indonesia
  • Tel: (62) 85649935524

Login Form

This is sample of our design and many more ...

Our partners

Our Partners

Why choose us?

We're providing Website Design using Joomla, Drupal, Wordpress, and e-commerce. Many advantage if you choose our services :
  1. Cheapest Design andIncluded with Domain Name and Hosting
  2. Many premium template available for your design
  3. With CMS (Content Management System) so you can easily add/ modify your content
  4. More...