Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Australian and South African regions and an All Regions option #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

proimage
Copy link

@proimage proimage commented Apr 9, 2014

As mentioned on Devot-ee.com, here's the updated add-on. Aside from added the 2 countries' states/territories/provinces, I moved the logic that converted the UK counties array into an associative array out from the fieldtype file, and put it in libraries/regions.php. I was having issues integrating the UK counties into the All Regions dropdown, and preparing the array ahead of time seemed like the best option.

Arbitrarily updated the version number from 2.1 to 2.2 - completely up to you.

I've done some basic testing and everything seems to work fine, both plugin and fieldtype.

Thanks for a great add-on!

- Added Australian states and territories
- Added South African provinces
- Added option for displaying all sub-country regions in one dropdown
menu
- Moved logic for converting UK counties array into a named key array
into libraries/regions.php to simplify plugin & fieldtype code.
I always miss those darn things...
@amphibian
Copy link
Owner

Thanks for this man. I'm not going to merge this in quite yet however, because it bothers me that it's so specific, doesn't feel right. So far the add-in has provided info for entire continents, and has followed a certain logic in that way. Throwing South Africa into the mix is a curve ball, especially with the "all regions" option ... it feels too tailored for your specific use case.

I'm going to think on this more, as it's sparked other ideas. The add-on is pretty stable, so you don't have to worry about your branch missing anything important (I know you had expressed reticence at maintaining a separate branch).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants