Fórumok

How to get the option's label by velocity.

long zhao, módosítva 11 év-val korábban

How to get the option's label by velocity.

Junior Member Bejegyzések: 39 Csatlakozás dátuma: 2011.08.29. Legújabb bejegyzések
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
thumbnail
David H Nebinger, módosítva 11 év-val korábban

RE: How to get the option's label by velocity.

Liferay Legend Bejegyzések: 14916 Csatlakozás dátuma: 2006.09.02. Legújabb bejegyzések
try googling for velocity templates, it's on the web.

Try also googling for velocity debugging, too.