Forums / Developer / modifying ezcountry

modifying ezcountry

Author Message

Dave Dykshoorn

Friday 22 August 2003 1:50:55 pm

I am currently trying to modify the ezcountry datatype which was contributed by Esben Maaløe. Thanks for your work Esben.

What I am trying to do is allow for selecting more than one country.

I think there is something I need to modify in fetchObjectAttributeHTTPInput but am not exactly sure what at this moment. I'll keep working on it but if someone has already done something like this I would love to hear how you did it.

The templates also need modification as well to accept input of more than one and I think I have that working. (by simply adding "multiple" to the end of the <select> )

Ultimately my goal is to create a list datatype that pulls from an ini file but the multiple select is more important than the convenience of an ini file over the list in the template.

Any thoughts?

Dave

Dave Dykshoorn

Friday 22 August 2003 3:19:06 pm

I figured it out... Moving on to the ini part of my question.
I am saving the selected elements as a comma seperated string at the moment because thats the easiest.

If anyone is interested how I did it let me know and I'll see if I can post a cleaned up version.
I changed some tpls and rewrote fetchObjectAttributeHTTPInput.

Dave Dykshoorn

Friday 22 August 2003 5:03:29 pm

hmmm... seems that a comma seperated string is almost good for nothing for what I want to do. Oh well, looks like I'll have lots of work to do next week.