Link to home
Start Free TrialLog in
Avatar of gplana
gplanaFlag for Spain

asked on

Personalize "read more..." doesn't work on Joomla articles

Dear Expert:

I'm creating a Joomla site. Some of the articles contain a quiz, so I want to show solution when user press the "Read more..." link. This is working fine.

At back-end, when editing the article, I found a option to personalize the "Read more..." text ("Alternative Read more" property, under "Advanced parameters". But when changing this text, nothing changes: the original "Read more..." text appears at the front end.

What I'm doing wrong ?
Avatar of enriquecadalso
enriquecadalso
Flag of Colombia image

It seems some templates have this hard coded. The JA_Purity that comes with joomla package does not change the read more text.

What template are you using?
Avatar of gplana

ASKER

I'm using JA_Purity.
I have some PHP experience. Could I change this behaviour in order it takes the custom text instead of the standard text ?
Hi.,

To change the readmore text in ja_purity

For front page Display change:

File
----
root/templates/ja_purity/html/com_content/frontpage/default_item.php

Line no:130 (around if you change anything) for non-registered.
<?php echo JText::_('Register to read more...'); ?>

Line no:132 for registered.
<?php echo JText::_('Read more...'); ?>


Change these text inside the single quotes to your choice.


Avatar of gplana

ASKER

Sorry, but I don't think it will work. The text that really appears now t's not "read more..." but the catalan translation of "read more..." (because I have configured with this languae). Also, it seems you are trying to change the text for all the articles, and I want just to change it for one specific article.
ASKER CERTIFIED SOLUTION
Avatar of manomani
manomani
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi.,

Note that a new elseif condition is added after the first if condition in the above code which is missing in original....

which makes the difference...............

Regards
manomani.
Avatar of gplana

ASKER

Excellent. I solved the problem doing exactly what you said.
Thank you very much.