Force read more

More
10 years 6 months ago #51291 by Rooney
Force read more was created by Rooney
Hi,
in category settings there is a "Strip HTML tags & cut text (Forces Read More)". I understand the option "Yes, Force Ream More" but what is the sense of just "Yes"? I want a readmore without cutting HTML tags.
Rooney

Joomla! 3.9.24 and FC 3.3.9

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

More
10 years 6 months ago #51294 by micker
Replied by micker on topic Force read more
yes cut withou cleanning i think !

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
10 years 6 months ago #51301 by Rooney
Replied by Rooney on topic Force read more

micker wrote: yes cut withou cleanning i think !

Nope. If I am using the setting "Yes" it a) cuts text and strips HTML tags but b) does not automatically add a read more link. I am using a copy of the standard blog template.
Rooney

Joomla! 3.9.24 and FC 3.3.9

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

More
10 years 6 months ago #51316 by ggppdk
Replied by ggppdk on topic Force read more
Hello

but what is the sense of just "Yes"? I want a readmore without cutting HTML tags.

*******************
Answer:
*******************
-- Read-More is shown
1. always if you have "fulltext"
(fulltext is text after a "READ MORE" HTML editor separator)

2. or, if you do not have fulltext but the introtext is strip of HTML and cut to a maximum length, that is why strip and cut forces the readmore



*******************
Conclusion:
*******************
Read more IS NOT SHOWN if --both--:
-- you do not cut/strip the introtext
-- AND fulltext is empty



*****************
just a NOTE:
*****************
-- if you do not STRIP-TAGS, it is problematic to cut the text, aka you cannot limit the text shown



*******************
Now, your case ...
*******************
... indeed you cannot force the read-more ...


... but the above of showing read-more if FULLTEXT EXITS is problematic logic because we have other fields that we want show, or JUST show the image in full size, etc, so indeed our current logic is not so good, indeed maybe we always need the readmore in FLEXIcontent, ... or we need an extra option ..



-- the above logic was copied FROM J1.5/J2.5/J3.x,




-- we should change it too, will commit a change/fix with an extra option


for your custom template DO:
please edit:
category_items(_html5).php

replace:
$readmore_shown = $this->params->get('show_readmore', 1) && strlen(trim($item->fulltext)) >= 1;

with:
$readmore_shown = $this->params->get('show_readmore', 1);


-- 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
10 years 6 months ago #51321 by ggppdk
Replied by ggppdk on topic Force read more
Hello

please read my above post

also added "show always" to read-more parameter in commit:
github.com/FLEXIcontent/flexico ... 3e3d82ff16

Updated built-in templates to use the new option
e.g. blog and presentation, item-tabbed

if you have custom templates they will need to be updated


you may test,
to be honest this was something we considered added in the past, but it is also a question of correct / best / needed behaviour


-- 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.299 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