Skip to main content
← Publishing
Publishing April 14, 2022 · 2 replies

Display static content if list is empty

Archived from the Bravo community forum (2021–2026). Some answers may refer to older versions of Bravo.

Hi everyone,

I am building an app referencing the shops of my city and allowing them to publish news and articles. When one click on a shop's profile, he gets to see all of its content as a list.
Here is my problem : **how could I display a text saying "There is nothing to see here for now" IF the list is empty ?

**Thanks !

2 replies

Diego Iglesias Bravo team April 14, 2022

Hey Robin,

You can achieve this using the Bravo page states. Check this out:

Basically you setup two pages. One for the regular api results and the other for when the api returns no content. This is done by combining the [state:default:PAGENAME] and [state:empty:PAGENAME] tags.

Hope this helps!

Wrote something in this thread and want it removed? Request removal

Still stuck?

Ask the community on Discord

This archive is read-only. New questions, office hours and product updates now happen in the Bravo Discord.

Join the Discord