Tribune

Home » Liferay Portal » English » 3. Development

Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
long zhao
How to get the option's label by velocity.
7 maggio 2012 5.33
Risposta

long zhao

Punteggio: Junior Member

Messaggi: 39

Data di Iscrizione: 29 agosto 2011

Messaggi recenti

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.
7 maggio 2012 5.56
Risposta

David H Nebinger

Community Moderator

Punteggio: Liferay Legend

Messaggi: 13218

Data di Iscrizione: 1 settembre 2006

Messaggi recenti

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

Try also googling for velocity debugging, too.

Participate in the State of Liferay Community 2017. Help the community and even win some prizes!