Foren

Velocity code is not understandable

Ajay Bansal, geändert vor 11 Jahren.

Velocity code is not understandable

New Member Beiträge: 15 Beitrittsdatum: 22.03.13 Neueste Beiträge
Hi,

The code of VM file is not undestandable.
Can anybody suggest from where I can study Velocity So that i could develop my custom theme
And The Global Constant & Methods Of liferay velocity are where located so that i could understand their meaning eg. # dockbar(), $init etc.
thumbnail
dave ch, geändert vor 11 Jahren.

RE: Velocity code is not understandable

Regular Member Beiträge: 161 Beitrittsdatum: 07.02.12 Neueste Beiträge
Hi Ajay,
You can start with this link.
Ajay Bansal, geändert vor 11 Jahren.

RE: Velocity code is not understandable

New Member Beiträge: 15 Beitrittsdatum: 22.03.13 Neueste Beiträge
Thanks but how would i know about the Global Constant & Methods Of velocity defined by Liferay ?
thumbnail
dave ch, geändert vor 11 Jahren.

RE: Velocity code is not understandable

Regular Member Beiträge: 161 Beitrittsdatum: 07.02.12 Neueste Beiträge
Have a look to this forum link.

Regards,
dave
Ajay Bansal, geändert vor 11 Jahren.

RE: Velocity code is not understandable

New Member Beiträge: 15 Beitrittsdatum: 22.03.13 Neueste Beiträge
Hi ,

How would i know the global variable of Liferay like '$theme' belongs to which class in java doc of life ray source code

e.g there is $theme variable with method &theme.include(..) , But when I go in javaDoc there is 'Theme' class but that class does not contain include(..) method.


How would i know about the list of macro used?
thumbnail
Ryan Schuhler, geändert vor 11 Jahren.

RE: Velocity code is not understandable

Junior Member Beiträge: 77 Beitrittsdatum: 06.07.12 Neueste Beiträge
I find this link helpful for seeing what variables exist in velocity for liferay. Hope it helps.