Hi guys,
I recon there's probably be a simple solution to this, but I'm having a hard time pinning it down.
Is there a way to set the content to be displayed when results from cms:pages is nil?
I've tried add
But this doesn't work, as when there's no results it looks like pages doesn't fire at all.
What's the best way of displaying alternate content if the result from pages is empty?
Many Thanks,
Nathan
I recon there's probably be a simple solution to this, but I'm having a hard time pinning it down.
Is there a way to set the content to be displayed when results from cms:pages is nil?
I've tried add
- Code: Select all
<cms:pages>
<cms:if k_total_records>
~~~
<cms:else/>
<h3>No results</h3>
</cms:if>
</cms:pages>
But this doesn't work, as when there's no results it looks like pages doesn't fire at all.
What's the best way of displaying alternate content if the result from pages is empty?
Many Thanks,
Nathan