Infoglue Forum

Infoglue's new attempt. To keep spammers out we will approve each person wanting to register for posting etc. Sorry for the inconvenience.

You are not logged in.

#1 2013-12-17 16:27:05

Mujje
Member
Registered: 2013-12-05
Posts: 4

Fetch labels dynamically

Hi
Just a little tip to fetch labels is that you can fetch the label you like with a variable.

so for instance,
<c:set var="list" value="item1,item2,item3" />

<c:forTokens items="${list}" delims="," var="item">
   <structure:componentLabel mapKeyName="${item}"/>
</c:forTokens>

while in component labels:
item1_sv=ole
item1_en=eenie

item2_sv=dole
item2_en=meenie

item3_sv=doff
item3_en=miny

The result would be a rather static list of values becoming language sensitive.

Offline

Board footer

Powered by FluxBB