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.

How can I hide a link if there is no body

February 26, 2008 2:43am

Subscribe [2]
  • #1 / Feb 26, 2008 2:43am

    MichaelHWG

    24 posts

    I have my homepage just to display a summary of my blog post. If the entire blog post is small, i just post everything in the summary.

    I have a read more link under each post, but I would like to hide that link if there is no body.

    Is this possible?

  • #2 / Feb 26, 2008 2:48am

    asozzi

    262 posts

    Sure,

    look up conditionals in the docs. E.g:

    {if news_body_extended}<a href="http://{my_weblog}/entry/{url_title}">Click for more</a>{/if}
  • #3 / Feb 26, 2008 10:01am

    MichaelHWG

    24 posts

    Thank you!

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

ExpressionEngine News!

#eecms, #events, #releases