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 Category Results

January 11, 2008 2:41pm

Subscribe [2]
  • #1 / Jan 11, 2008 2:41pm

    dyode

    17 posts

    How can you display an output or redirect in the event that a category URL with a weblog:entries tag returns no results? I tried using the no_results condition within the weblog:entries but that only seems to work for post URL’s.

  • #2 / Jan 11, 2008 3:17pm

    Derek Jones

    7561 posts

    The categories tag does not have a ‘no_results’ conditional.  Though I don’t follow your meaning regarding “post” URLs:

    I tried using the no_results condition within the weblog:entries but that only seems to work for post URL’s.

    Can you elaborate?  What is the URL you are on that should have no results, and what is the weblog entries tag you have on that template?

  • #3 / Jan 11, 2008 3:42pm

    dyode

    17 posts

    Nevermind I figured it out, I was updating the wrong template. I had to put the no_results condition in my blog index template not my post template.

  • #4 / Jan 11, 2008 3:47pm

    Derek Jones

    7561 posts

    :-D

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

ExpressionEngine News!

#eecms, #events, #releases