Keyword

Show "Read More" only if there is something to "read more"?

  • Elisa F.
  • Elisa F.'s Avatar Topic Author
  • Offline
  • Junior Member
More
13 years 11 months ago #89693 by Elisa F.
Hi there!
I have some items with long text and some with short text. Some need to have a "read more" link - the others don´t.

Now i have the possibility to switch on or off the "read more" in the Categorysetting.

With this setting the short items which don´t need to have a read more link will anyway have this link.

Now i can overwrite the Categorysettings in each item to tell the item not to show the "read more" - which is a little bit exhausting.

Well, my question: Can this be hidden automaticly in each short item? 


thanks 

Elisa

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

More
13 years 11 months ago #89694 by william white
The reference to readmore is found in category_item.php of your overrides.
You will have to devise another test besides if readmore is set to show in that category....and wrap the existing if statement with it
If you are showing the intro text then you could try to test for the length of the full text and display the readmore only if text exists

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

  • Elisa F.
  • Elisa F.'s Avatar Topic Author
  • Offline
  • Junior Member
More
13 years 11 months ago #89695 by Elisa F.
Thanks, but with this I think i have to take some php lessons :)

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

More
13 years 8 months ago #89696 by Angel Aramboles

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


Powered by Kunena Forum