Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
long zhao
How to get the option's label by velocity.
May 7, 2012 5:33 AM
Answer

long zhao

Rank: Junior Member

Posts: 39

Join Date: August 29, 2011

Recent Posts

Hi,
By this tutorial (http://www.liferay.com/web/marcellus.tavares/blog/-/blogs/12150383)
I want to use the velocity to get the options's label.
I am using
#set ($nameField = $fields.get("My Option"))
I only get the "value" like value1 or value2, I want to get the label, real content, what I should do?

By the way, how could you debug the velocity and where is the API?

Thanks a lot
David H Nebinger
RE: How to get the option's label by velocity.
May 7, 2012 5:56 AM
Answer

David H Nebinger

Rank: Liferay Legend

Posts: 7240

Join Date: September 1, 2006

Recent Posts

try googling for velocity templates, it's on the web.

Try also googling for velocity debugging, too.