Hi,
I'm building a site in Vietnam and it got a different set of fields that are supported out of the box from this module. In the release notes of the Beta version it says: "Our address formats are now completely extensible thanks to a revamped plugin system based on CTools"
I'm a developer but even with this background it takes a lot of effort to read through the code and understand how ctools works to extend it in a good way. I've seen that other have sent in pathes that changes the .inc file to suit their needs. Is this the way to go forward? It seams like that file can grow out of proportions if every country have it's own "else if"-statement in there. Would it be possible to get a starting point at least how to extend this module in a proper way?
Thanks for suppport,
Mattias
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | address.inc_.patch | 2.95 KB | jkthng |
Comments
Comment #1
damien tournoud commentedSo, there are two issues here:
-devin a couple of hours.Comment #2
damien tournoud commentedI'm going to close this. You can refer to the example module in the source code to write a proper plugin.
Comment #4
chaloalvarezj commentedActually some documentation or explanation would be great since is not even possible to install the example module... or it is not supposed to be installed?.. Where should at place my "customized" module?
Comment #5
chaloalvarezj commentedI'll re-open the issue so that anybody who knows how to do this can explain... please.
Comment #6
chaloalvarezj commentedComment #7
dgastudio commented/sites/all/modules/addressfield/example
addressfield_example.info
- hidden = TRUE
Comment #8
jkthng commentedHi,
The typical address fields required for Vietnam are:
A typical address looks like this:
117 Nguyen Duc Canh Street, My Duc, Tan Phong Ward, District 7, Ho Chi Minh City
Usually the Ward and District values are written in the same field as the Street value.
Is it possible to include a patch so that the default Vietnamese addressfield is correct & usable?
Thanks.
Comment #9
jkthng commentedPatch for Vietnam addresses.
Comment #10
jcmiller09 commentedI changed the addressfield_example.info file to hidden=FALSE, and it showed up fine in the modules list, and added the formatter to the Display Suite settings. This is fine and well, but for the ease of upgrading the code of the module in the future, I would expect to be able to toss this somewhere outside of the module folder. How do we get this to exist on it's own outside of the addressfield module folder? Messing around with the code, I got it to show up as a custom module, but the functionality of the formatter broke.
Maybe a simple Readme file with some best practice suggestions?
Comment #11
mcm.guaba commented+1
yes please!
Comment #12
Rick G commented+1 on a Read.me to do this in a custom module outside the addressfield module folder
Comment #13
j0rd commentedupdating title for super ticket related to country customization.
Comment #14
jcisio commentedI'm closing this issue because:
- Viet Nam does have postal code http://en.wikipedia.org/wiki/Postal_codes_in_Vietnam. The fact that postal code is not commonly used inside the country does not change any thing at all, the postal code part is not required.
- The postal code is put at the end (after city and state/province) is correct.
So I don't see any problem with the current settings. About extension, there is an example already.