Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Jason Whitener
Velocity Variables in Themes
June 5, 2014 3:23 PM
Answer

Jason Whitener

Rank: New Member

Posts: 15

Join Date: June 22, 2011

Recent Posts

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?
Andrew Jardine
RE: Velocity Variables in Themes
June 5, 2014 5:00 PM
Answer

Andrew Jardine

Community Moderator

Rank: Liferay Legend

Posts: 1102

Join Date: December 22, 2010

Recent Posts

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
RE: Velocity Variables in Themes
June 5, 2014 5:10 PM
Answer

Jason Whitener

Rank: New Member

Posts: 15

Join Date: June 22, 2011

Recent Posts

Perfect, thanks.