Forums / Developer / Country datatypes / Comment45178

Author Topic

Xavier Dutoit

Friday 20 January 2006 1:26:01 pm

Comment45178

Just to add a 5th contrib to cover the have a list of country;) :

what I do is a class country, with as many attributes as you want (name, iso code, flag...).
on the class where I need a country list, I add an enhancedobjectrelation, saying to choose the related objects as instances of the class country.

Then, populating the country list can be done as any other content and benefit from the import tools and you could easily get the list of all the (reverse) related objects to this country.

http://ez.no/community/contribs/datatypes/enhanced_objectrelation

There is more than one way to skin a cat ;)

X+

http://www.sydesy.com