11 years ago
Topic

Hi,


I have created a field (as a simple select) for adding the country to an article item. I have further added the country abbreviation as the storage rather than the full country name (e.g. Austria=AT). 


Now, to my problem, I want to display the full country name in the simple select, but in the list, i just want to display the country code. Is there some easy way to do this?


Help save my day! 

Get a Book for SEBLOD
11 years ago
1
Level 1

Hello Filip,

when you want to display the value instead  the text ou have 2 solutions:

  • create a Text Alias of the select field (a text field with the same storage). It will only display what is it stored.
  • Add a typo HTML on the field with this code " $cck->getValue('name_of_your_field'); "


Regards.

Lionel

11 years ago
0
Level 2

Works prefectly. Cheers!

Get a Book for SEBLOD