(Quick Reference)

theme:ifLayoutIsNot

Purpose

Executes the body of the tag only if the current layout name is not equal to the name supplied.

This is useful for common template GSPs that may need to include different content depending on the current theme in use.

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

Example

You might have a theme header GSP template something like this:

<theme:ifLayoutIs name="home">
    <div class="header">
        <theme:layoutZone name="banner"/>
    </div>
</theme:ifLayoutIs>
<theme:ifLayoutIsNot name="home">
    <div class="header">
        <theme:layoutTitle/>
    </div>
</theme:ifLayoutIsNot>

Attributes

NameRequired?Description
nameYesA layout name i.e. "dialog"