lukeyouell / craft-countryselect

Country select field type.
MIT License
2 stars 11 forks source link

How can I display the selected country? The entry field value is the two-letter country abbreviation. #7

Closed andreimoment closed 5 years ago

andreimoment commented 6 years ago

In my case, I've created a field called country based on the countryselect plugin.

The {{entry.country}} field returns the two-letter abbreviation. How can I access/return the full country name?

Thank you!

Gnative commented 5 years ago

If the field was called country then calling {{ entry.country.label }} will display the full country name. There should really be some better documentation for this.

andreimoment commented 5 years ago

Thank you