Closed (fixed)
Project:
Address Field
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
21 Jan 2011 at 01:38 UTC
Updated:
10 Dec 2011 at 15:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
pcambraNumber shouldn't be required. Here is the correct patch.
Comment #2
EndEd commentedWorks as expected!
Comment #3
pcambraForgot to add the tpl.php for the Spanish address
Here's the complete patch with the new git-like format.
Comment #4
pcambraSetting to CNR
Comment #5
damien tournoud commentedThe
-reloadedbranch has been merged. It comes with reasonable defaults for most countries in the world, including Spain. This can be extended by contrib modules to provide the province-level dropdown.Comment #6
pcambraHi Damien,
I've seen that some countries as Brazil, Italy, or US have their provinces dropdown included into the address.inc file, if I want to place Spanish provinces and other tweaks there do I need to add a independent module or can I attach a patch to be included in the address.inc of address field?
Thanks!
Comment #7
EndEd commentedHi I'm also trying to add spanish provinces without any luck.
Any advise on this? Thanks in advance.
EDIT: Nevermind, sorry, I've just have success in adding my own plugin :)
Comment #8
chaloalvarezj commented@EndEd.. Glad to read that you succeeded in creating your plugin.. could you please post here how you did it, as the module has no documentation on it?
I would appreciate it! thank you!
Comment #9
EndEd commentedSorry chaloalvarezj for the delay.
For this to work you have to have the following folder structure in your custom module (of course all names can be changed):
..modules/my_module/my_module.info
..modules/my_module/my_module.module
..modules/my_module/plugins/format/es-address.inc
my_module.module
es-address.inc
Hope this helps and it's not too late :)
EDIT: Also, as this is all about CTools, you should make your module dependent. This is my .info file:
Comment #10
pcambraI've created a sandbox so people can use spanish addressfield without coding http://drupal.org/sandbox/pcambra/1353366
This will be made obsolete by #1317070: Use ISO codes XML file for populating country-specific properties eventually.