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.

no_results not working

April 12, 2012 2:15pm

Subscribe [2]
  • #1 / Apr 12, 2012 2:15pm

    Matt Fordham

    14 posts

    Hi there,

    The following is not not outputting anything when no results are returning. As I am using dynamic=“on”, it is looking for a url segment. When that segment is set to something that does not relate to an entry, I would expect no_results to output.

    {exp:channel:entries channel="blog_post" require_entry="yes" dynamic="on"}
        {title}
        {if no_results} No results {/if}
      {/exp:channel:entries}

    I also tried setting url_title to some random string, and again, the no_results content did not show.

    Am I misunderstanding the way this works? Any ideas?

  • #2 / Apr 12, 2012 2:17pm

    Matt Fordham

    14 posts

    Fixed it. Was caused by a bug in CE Cache (that was fixed)

  • #3 / Apr 13, 2012 10:47am

    Shane Eckert

    7174 posts

    Hey Matt,

    Very nice. Glad to see you got this figured out.

    If you need anything else, please just let me know by opening a new thread.

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases