Variables Available to Layout Templates

A number of variables are available for you to use in your custom TPL files. For your convenience, they’re all listed in the table below.

Variable Type Description
$processor com.liferay.portal.layoutconfiguration.util.velocity.TemplateProcessor Javadoc
$request javax.servlet.http.HttpServletRequest
$themeDisplay com.liferay.portal.theme.ThemeDisplay Javadoc
$company com.liferay.portal.model.Company Javadoc
$user com.liferay.portal.model.User Javadoc
$realUser com.liferay.portal.model.User Javadoc
$layout com.liferay.portal.model.Layout Javadoc
$layouts java.util.List<com.liferay.portal.model.Layout>
$plid java.lang.Long
$layoutTypePortlet com.liferay.portal.model.LayoutTypePortlet Javadoc
$portletGroupId java.lang.Long
$locale java.util.Locale
$timeZone java.util.TimeZone
$theme com.liferay.taglib.util.VelocityTaglib Javadoc
$colorScheme com.liferay.portal.model.ColorScheme Javadoc
$portletDisplay com.liferay.portal.theme.PortletDisplay Javadoc

Now you have a better understanding of the variables available to you for your layout templates!

Related Topics

Making Themes Configurable with Settings

Creating a Layout Template Project in the Plugins SDK

0 (0 Votes)
Designing a Layout Template Previous