DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Content Switch: Show A Message When No Content On A Page Is Inserted

  • submit to reddit
temp.contentSwitch = COA
temp.contentSwitch {
 10 = TEXT
 10.value = <div class="error"><span class="bold">*No contentelements*</span>  on this page!</div>
 10.if.isFalse.numRows < styles.content.get
 20 < styles.content.get

# insert the right path to your template here (look in TSOB):

page.10.xy.subparts.content < temp.contentSwitch