Foren
Velocity Variables in Themes
Jason Whitener, geändert vor 9 Jahren.
Velocity Variables in Themes
New Member Beiträge: 16 Beitrittsdatum: 22.06.11 Neueste Beiträge
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?
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?
Andew Jardine, geändert vor 9 Jahren.
RE: Velocity Variables in Themes
Liferay Legend Beiträge: 2416 Beitrittsdatum: 22.12.10 Neueste Beiträge
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
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, geändert vor 9 Jahren.
RE: Velocity Variables in Themes
New Member Beiträge: 16 Beitrittsdatum: 22.06.11 Neueste Beiträge
Perfect, thanks.