gplana
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 ?
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 ?
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 ?
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/h tml/com_co ntent/fron tpage/defa ult_item.p hp
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.
To change the readmore text in ja_purity
For front page Display change:
File
----
root/templates/ja_purity/h
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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
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.
ASKER
Excellent. I solved the problem doing exactly what you said.
Thank you very much.
Thank you very much.
What template are you using?