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.
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
January 11, 2008 2:41pm
Subscribe [2]#1 / Jan 11, 2008 2:41pm
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
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
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
:-D