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.

Can't get if no_results to work for multi-entry pages

February 03, 2011 2:53pm

Subscribe [3]
  • #1 / Feb 03, 2011 2:53pm

    smartpill

    456 posts

    I have a weblog entries tag (ee 1.7.0) that ignores anything inside the weblog:entries tags if there’s no entry for category.

    If an entry does exist, everything outputs fine. I am passing the values with an embed (if that matters), but I did try hardcoding the values to test and that didn’t make a difference.

    {exp:weblog:entries weblog="{embed:my_weblog}" dynamic="off" category="{embed:my_category}"}
    {if no_results}Content to come.{/if}...{/exp:weblog:entries}
  • #2 / Feb 04, 2011 5:07am

    Ingmar

    29245 posts

    I have a weblog entries tag (ee 1.7.0) that ignores anything inside the weblog:entries tags if there’s no entry for category.

    Isn’t that standard EE beahvior? You’re hardcoding a category, EE tries to pull from that category, if there are not entries nothing will be shown. You can use the {if no_results} conditional for cases like that.

  • #3 / Feb 04, 2011 1:00pm

    smartpill

    456 posts

    I have a weblog entries tag (ee 1.7.0) that ignores anything inside the weblog:entries tags if there’s no entry for category.

    Isn’t that standard EE beahvior? You’re hardcoding a category, EE tries to pull from that category, if there are not entries nothing will be shown. You can use the {if no_results} conditional for cases like that.

    I can or can’t? If I could and I did, it isn’t working. That’s why I’m posting in support.

  • #4 / Feb 05, 2011 3:48pm

    Greg Salt

    3988 posts

    Hi Kyle,

    Can you confirm that you’ve tested this with hardcoded weblog and category values? Is this tag nested within another tag of any type or is it the only thing on the embedded template?

    Cheers

    Greg

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

ExpressionEngine News!

#eecms, #events, #releases