-
-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Postlist by tag -> handle zero items #15
Comments
Sorry, I am not sure I follow. Do you have an example? |
Hi @nabobalis thanks for the response. If I try to make a list of posts
And I know that there are 0 posts with that tag I'd like to show alternate content. I think current behavior is to return latest posts with any tag. |
Ah ok. I understand now. Unfortunately I don't have an answer on how to do that. If I get some time I will look into adding that as an extra feature to postlist. Ablog and how it works is still quite new to me. |
Many thanks :-) I guess the easiest might be including text in th .. postlist:: 10 |
Yeah, something like that would be my initial idea as well. |
Here's another possibility, based on
I suspect the way to nicely implement this is something like
The advantage to this approach is that it lets one define a fairly rich default by doing something like this:
|
Hi, and thanks for the work on ablog
Any suggestions on how to handle the zero posts in a postlist situation. I think current behavious is to use all posts, but what I'd like is to be able to show aletrnative content if there are no posts.
The text was updated successfully, but these errors were encountered: