Fórum

Velocity Variables in Themes

Jason Whitener, modificado 9 Anos atrás.

Velocity Variables in Themes

New Member Postagens: 16 Data de Entrada: 22/06/11 Postagens Recentes
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, modificado 9 Anos atrás.

RE: Velocity Variables in Themes

Liferay Legend Postagens: 2416 Data de Entrada: 22/12/10 Postagens Recentes
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, modificado 9 Anos atrás.

RE: Velocity Variables in Themes

New Member Postagens: 16 Data de Entrada: 22/06/11 Postagens Recentes
Perfect, thanks.