Changing the Read More text.

Have a programming question regarding your component, plug-in, extension or core hacks? Have an interesting tidbit, FAQ or programming tip you’d like to share? This is the place for you.

Moderators: tjay, seadap, Rogue4ngel, matthewhayashida

Post Reply
User avatar
SpacePyrit
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Mon Jan 28, 2008 6:59 pm
Location: TOP SECRET
Contact:

Changing the Read More text.

Post by SpacePyrit » Wed Mar 19, 2008 6:40 pm

I am well aware there is an extension for this, but I want to do it myself for learning purposes.
I want to change the Read More text. I want it to say "Read More about (the article title)". I assumed I could do this in the blog_items.php file. I found the JText line and entered inside the paranthesis ('Read More about<?php echo $item->title; ?>') I FTP it and nothing happened. I am wondering if this is the right file or even the right place to put it.
Music, scripts, how tos and more...
http://www.pewsondor.com

erdsiger
Joomla! Intern
Joomla! Intern
Posts: 72
Joined: Sat Nov 11, 2006 9:34 pm
Location: Hungary

Re: Changing the Read More text.

Post by erdsiger » Wed Mar 19, 2008 7:34 pm

Instead of

Code: Select all

<?php echo JText::_('Read more...'); ?>
write

Code: Select all

<?php echo ( 'Read more about ' . $this->item->title ); ?>
I tested on the /components/com_content/views/frontpage/tmpl/default.php file.
Gergo Erdosi


Post Reply