Adding article title to "readmore" in category view

More
12 years 6 months ago #31115 by conticreative
I can see in the category template that there is a provision for adding the title of the article to readmore using this conditional:

<?php if ($items[$i]->params->get('readmore')) :
echo ' ' . $items[$i]->params->get('readmore');
else :
echo ' ' . JText::sprintf('FLEXI_READ_MORE', $items[$i]->title);
endif; ?>

However, I cannot find anywhere a switch to actually make the title show up next to readmore. Since I am using a custom template, I am tempted to add the code directly next to "readmore", but if there is a switch somewhere I'd rather use that.

if not, I'll go ahead and hard code it.

TIA

Please Log in or Create an account to join the conversation.

More
12 years 6 months ago #31116 by ggppdk
mmm Currently the language string is :

FLEXI_READ_MORE="Read more..."

if it is changed to (notice the %s)

FLEXI_READ_MORE="Read more about '%s'"

it will print


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
12 years 6 months ago #31118 by Rooney

ggppdk wrote: FLEXI_READ_MORE="Read more about '%s'"

THIS IS GREAT. Thanks!
Rooney

Joomla! 3.9.24 and FC 3.3.9

Please Log in or Create an account to join the conversation.

More
12 years 6 months ago #31121 by ggppdk
You can add it to J2.5 language overrides ... does it work?

We must examine where this string is being used and possibly have 2 READ MORE strings


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
12 years 6 months ago #31125 by Rooney
It is working. Article titles here are added to the Readmore text: www.muenstermann.com/en/overview ... ation.html

Are there more variables that can be used in the language overrides?

Rooney

Joomla! 3.9.24 and FC 3.3.9

Please Log in or Create an account to join the conversation.

More
12 years 6 months ago #31126 by ggppdk
More variable? all language strings can be used in language overrides to customize your site, that is one of the benefits of J2.5 compared to J1.5


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.715 seconds
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save