(Quick Reference)

theme:ifNoZoneContent

Purpose

Executes the body only if there is no content explicitly defined for the specified content zone.

Content zones can have optional content, and if the application's GSP does not define any content for a zone, you can test this and take alternative action.

For example your theme may render alternative content on the "sidebar" layout if there is no content defined for the sidebar.

This can be used within Theme layouts and application/plugin GSPs.

Example

<theme:ifNoZoneContent name="panel1">
    Google Adsense Here
</theme:ifNoZoneContent>

Attributes

NameRequired?Description
nameYesThe name of the zone that you wish to test for content