(Quick Reference)

theme:ifLayoutIs

Purpose

Executes the body of the tag only if the current layout name equals 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>

Attributes

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