ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

hiding "read more" text if the news is too short

October 08, 2010 10:38am

Subscribe [1]
  • #1 / Oct 08, 2010 10:38am

    Fedor

    41 posts

    i’ve a sidebar with the news and a “read more” link to the article. How can i hide “read more” if the news is short? thanks and sorry if I have not explained well

  • #2 / Oct 08, 2010 11:34pm

    Rob Allen

    3105 posts

    Assuming you have two custom fields, one for the short story and one for the long story, you can use a conditional to show/hide the link if the full story has any content or not.

    {if your_long_story_field != ""}
    <a href="http://{url_title_path=templategroup/template}">Read more</a>
    {/if}
  • #3 / Oct 09, 2010 3:24am

    Fedor

    41 posts

    Thank you very much!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases