-
- 39 Posts
is there a way to display a chunk if no resources meet the criteria i set for getResources?
I am building a site with an "upcoming events" page which is populated with a getResources call, but i don’t want the page to be empty if there are no upcoming events.
Currently my workaround is having a "No upcoming events" page which must be manually published when all other events are archived, and it must be manually unpublished again when a new event is created. I would really like to find an automated solution though.
Any ideas?
-
- 24,544 Posts
The PHX modifiers are built into Revolution.
Try this:
[[!getResources:ifempty=`No Upcoming Events`]]
I’m pretty sure you could also use a chunk:
[[!getResources:ifempty=`[[$NoEventsChunk]]`]]