Developer forum

Forum » Templates » The Label of static items in options loop

The Label of static items in options loop

Sten Hougaard
Reply

Hi,

I need to get the label of a option value in this loop:

<!--@LoopStart(ItemPublisher:Item.Fields)-->
<!--@If(ItemPublisher:Item.Field.SystemName=='RegionsNew')-->RegionsNew:"<!--@ItemPublisher:Item.Field.Value-->",<!--@EndIf-->
<!--@LoopEnd(ItemPublisher:Item.Fields)-->

In the above example I use the "ItemPublisher.Item.Field.Value" which say may be "NorthAmerica", but I need the label for that value which in this case is "North America". Is there a tag which can help me retrieving that value?


Med venlig hilsen/Best regards,

Sten Hougaard
Webudvikler

E: sho@1stweb.dk
M: 29850818
A: København/Aarhus . W: www.1stweb.dk
@: netsi1964


Replies

   
Sten Hougaard
Reply

No, that one gives the Label of the field - I need the label of the option. It is a field with a static checkbox list. On the Item I have added to the user some checkboxes each having a Label and a Value. So when I loop the selected options I get say "NorthAmerica", "Europe". I then need the label for each of them like "North America" and "Europe".

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Oh. Inside a field you have an options loop (8.4.1). That will give you value, label, image and isselected tags...

Nicolai

Votes for this answer: 1

 

You must be logged in to post in the forum