Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
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

Code: Select all
     <cms:if k_total_records>
          <h3>No results</h3>

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,
I knew it would be something simple!

Thanks a lot KK, you're a lifesaver!

Can we get this added to the documentation on the pages page? (I can raise an issue / pr on git if you prefer?)
3 posts Page 1 of 1

Who is online

In total there are 3 users online :: 0 registered, 0 hidden and 3 guests
(based on users active over the past 5 minutes)

Users browsing this forum: No registered users and 3 guests