Jahia Template Forum > internationalized...

0 (0 Good)
0 (0 Bad)

internationalized choicelist problem

by  cdebauche »  2011/06/07 20:01

Hello,

I would like to know if it's possible to record the bundle key in a choice list (no need to be indexed) and not the value. but the value must be display in the select box.

I delclare a sharedSmallText quot;status

  (cdebauche)

Number of messages  11
Registration date
0 (0 Good)
0 (0 Bad)

Re: internationalized choicelist problem

by  dsaulnier »  2011/06/07 20:01

Hello,

The easier for such declarations is to use a dedicated resources bundle. Here is an example for the declaration part:
[code:31mmwza8]
sharedSmallText status (choicelist) lt; resourceBundle(resources

Damien Saulnier (dsaulnier)

Number of messages  31
Registration date
0 (0 Good)
0 (0 Bad)

Re: internationalized choicelist problem

by  cdebauche »  2011/06/07 20:01

Hi Damien,

Thanks a lot for your answer!...

I use Jahia 6 SP1

I updated the code of my application following your recommendations.

Now, in the .cnd file I have the following declaration:

sharedSmallText status (choicelist) lt; resourceBundle(resources.Status)

I also created a directory

  (cdebauche)

Number of messages  11
Registration date
0 (0 Good)
0 (0 Bad)

Re: internationalized choicelist problem

by  cdebauche »  2011/06/07 20:01

Hi Damien,

I don't know how I can recover the value of the keys in the bundles created for the choice list.

For exemple, this and this does not work :
[code:1rpqxhal] lt;fmt

  (cdebauche)

Number of messages  11
Registration date
0 (0 Good)
0 (0 Bad)

Re: internationalized choicelist problem

by  pap@commaro.com »  2011/06/07 20:01

Hello,

could you please look at the example we use in the web-templates packaged with Jahia 6.0 . In the events template we use the following

...
sharedSmallText eventsType (choicelist) facetable sortable lt resourceBundle(resources.eventsType)
...

And in modules\events\eventsDisplay.jsp you could see the code for displaying the values and filtering on it.

Regards,
Benjamin

Benjamin Papez (pap@commaro.com)

Number of messages  220
Registration date
Contact
Share
Feedback

Get in touch

Whether you are a current user or if you are just evaluating Jahia, we are here to help.

Contact us

Share this page