Available variables

A number of variables are available for you to use in your custom TPL files. For your convenience, we’ve listed all of them in the following table.

| Variable | Type | Description | | ——– | —- | ———– | $processor | com.liferay.portlet.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 your layout template toolbox is complete.

这篇文章有帮助吗?
0 人中有 0 人觉得有帮助