I found this UK Counties list that looks half decent (checked with Hanabi’s comments):
http://p2p.wrox.com/asp-forms/2592-list-uk-countys.html#post76885
With nice break-down of areas (South East, Scotland, Wales, etc).
Thanks man. I’m still trying to get a better list for you myself. North Humberside and South Humberside are not needed as they no longer exist. North Humberside was replaced by East Yorkshire but it is known as East Riding of Yorkshire. South Humberside was replaced by North Lincolnshire and North East Lincolnshire. :
I guess the naming of counties is more complex over here. Lol.
I guess i’m more familiar with the county names local to me as I know the politics and uproar that went on with the endless renaming of the counties.
Annoying when i’m trying to order things online and they always check my postcode and say that I am in South Humberside, which hasn’t existed for about 10 years or so. This is mainly because of the UK Postal service and the amount of systems that allegedly have to change to update county names.
Any way to have US states listed before Canadian provinces other than selecting them manually in a parameterd? Ideally it would be cool to separate the two with something in the drop-down list? EDIT: Parameterd - I’ll have to write that one down!
You could modify line 110 of the FieldFrame version, so instead of:
array_merge($this->provinces, $this->states)
it says:
array_merge($this->states, $this->provinces)
Or create a new parameterd that was “states_provinces” and replace the line above with:
if ($field_settings['type'] == 'provinces_states' )
$list = array_merge($this->provinces, $this->states)
else if ($field_settings['type'] == 'states_provinces' )
$list = array_merge($this->states, $this->provinces);
else
$this->$field_settings['type'];
You’ll also need to add it to the types array:
var $types = array(
'countries' => 'Countries',
'states' => 'U.S. States',
'provinces' => 'Canadian Provinces',
'provinces_states' => 'Canadian Provinces & U.S. States',
'states_provinces' => 'U.S. States & Canadian Provinces',
'ukcounties' => 'UK Counties'
);
To add dividers, simply (!) modify the appropriate variable:
var $provinces = array("" => "Canadian Provinces", "AB" => "Alberta", "BC" => "British Columbia"...
Although that’s a massive fudge and not the best way to do it!
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.