[SOLVED] Readmore Link only if neccessary

More
8 years 11 months ago - 8 years 11 months ago #54233 by ggppdk
Hello

For parameter "Strip and cut", you have 3 choices:
- No
- Yes, force read more
- Yes

please try using the 3rd option


-- you can set this parameter globally for a template in the template manager ,
by editing the Category layout of 'blog' template (or of copies of it)


-- 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...
Last edit: 8 years 11 months ago by ggppdk.

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

More
8 years 11 months ago #54237 by Macjoomla
Hello ggppdk,
that is option i am using. It is cutting the text correctly after 30 characters, but does not show a "readmore".
The "readmore" is in this case only shown, if manual inserted.

Yes, after some experiments with these preference i have made all this related preferences to use standard/global and only in template preferences i made these selections. By the way, this was a good idea, to put these in template preferences :)

ggppdk wrote: Hello

For parameter "Strip and cut", you have 3 choices:
- No
- Yes, force read more
- Yes

please try using the 3rd option


-- you can set this parameter globally for a template in the template manager ,
by editing the Category layout of 'blog' template (or of copies of it)

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

More
8 years 11 months ago #54336 by Macjoomla
Hello ggppdk,
on this site you can see the "missing readmore issue" too: LInk

The description text is cutted correctly and "..." is added to the text. So obviously the function itself is working fine, but the link "readmore" is missing. All preferences are as you proposed and that way it makes logical sense. I would be happy, if you could take a look at this issue too ;)

Thank you and best regards, Macjoomla

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

More
8 years 11 months ago - 8 years 11 months ago #54348 by ggppdk
Hello

Macjoomla wrote: i would like my articles to be shortened to special amount of characters, say 100, and if description has more characters there should be Readmore-Link. If description is empty or less then 100 characters there should not be a Readmore-Link. I think, this is intended behavior of this function.


indeed before cutting we do know how many text exists before cutting it[/b],

... e.g. we can add an extra by reference parameter to the function that will indicate to the template if the length of the text before cutting

thus besides criteria
- fulltext exists
we can also have criteria:
uncut_length > cutting_length

made an effort to do this in this commit:
github.com/FLEXIcontent/flexicontent-cck...ccf66daec42e9b59c216


-- 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...
Last edit: 8 years 11 months ago by ggppdk.
The following user(s) said Thank You: Macjoomla

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

More
8 years 11 months ago - 8 years 11 months ago #54366 by Macjoomla
Hello ggppdk,

thank you very much, great work again B) Just after installing FLEXIcontent v3.0 pre-Beta7 nightly4, everything about readmore works as expected :)

Thank you and best regards, Macjoomla

ggppdk wrote: made an effort to do this in this commit:
github.com/FLEXIcontent/flexicontent-cck...ccf66daec42e9b59c216

Last edit: 8 years 11 months ago by Macjoomla.

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.299 seconds
Save
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