Forums de discussion

Velocity Variables in Themes

Jason Whitener, modifié il y a 9 années.

Velocity Variables in Themes

New Member Publications: 16 Date d'inscription: 22/06/11 Publications récentes
I found a good resource for most velocity variables here: Access Objects from Velocity

Most of the variables, like $sign_out_url , seem self explanatory. However, is the value of these variables explained in documentation or code comments anywhere?

Also, I cannot find a list of things like $body_bottom_include and $body_top_include that I also see in the velocity templates. Where are these defined?
thumbnail
Andew Jardine, modifié il y a 9 années.

RE: Velocity Variables in Themes

Liferay Legend Publications: 2416 Date d'inscription: 22/12/10 Publications récentes
Hey Jason,

You can find them defined in the portal source. For example, if your theme uses the _unstyled theme as a parent then you would find it in --

$PORTAL_SOURCE_ROOT/portal-web/docroot/html/themes/_unstyles/tempaltes/init.vm
Jason Whitener, modifié il y a 9 années.

RE: Velocity Variables in Themes

New Member Publications: 16 Date d'inscription: 22/06/11 Publications récentes
Perfect, thanks.