(Quick Reference)

theme:title

Purpose

Allows a GSP page to set the current page title using i18n.

The title is resolved and then stored for layoutTitle and layoutHTMLTitle tags to use in the Theme layout.

Example

<html>
    <head>
        <theme:title text="user.profile.screen"/>
    </head>
    <body>
        ....
    </body>
</html>

Once you have done this, your body content does not need to be concerned with rendering the title anywhere because the Theme layout is in control of this and how it will appear.

Attributes

NameRequired?Description
textNoString to resolve as an i18n code or fall back to as default
textArgsNoArguments to be used when rendering the i18n string

If no attributes are supplied, the body is used to resolve the i18n string.