clemlith
11 years agoExpert
Knowing if a custom content is empty or not
Hi Everyone,
I love custom content because they allow me to push something live without having to go through studio and doing a studio push.
I wondering if there is a way to know if a custom content is filled with content or not ?
Ideally this test would be available at every node level.
If you have the answer please share it with me :)
Best,
Clement
Hi clemlith
I am assuming you are asking for a way to do this programmatically - as the Admin section will tell you if the element has content at that level of the community structure.
If I am correct, then you may want to have a look at this TKB article that explains how you can retrieve the custom content (or test for the absence of it) using the REST API.
I hope this helps!