Active
Project:
Address Field
Version:
7.x-1.x-dev
Component:
Documentation
Priority:
Major
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
2 Sep 2011 at 00:55 UTC
Updated:
15 Dec 2014 at 22:04 UTC
Jump to comment: Most recent
Documentation started at http://drupal.org/node/1267280 based on my experiments. I am importing users with addresses. I am using all the defaults. Contributions to the documentation by people using other options are needed to explain the options.
Comments
Comment #1
peterx commentedSomething worth documenting: I added an address to users. The address is formatted in the entry form but not when displayed on the user profile page. The user profile page has only the main heading for the address. There is no indication of the parts. How do you block out the address and indicate the city, state, spodt code, etc?
Comment #2
rszrama commentedI'm seeing a lot of questions in the issue queue about altering the form array produced by our widget and about setting default values for things. I'm going to try and extend the documentation with examples and keep a little list here of closed out duplicates.
Comment #3
colanBumping this up to "major" as there are a lot of us that would really benefit. :)
Comment #4
kopeboyI don't get what is happening here.
All those reference issues were closed and linked here, but I see nothing here.
I was interested in a prepopulated City field (select list or autocomplete after the province is chosen), are there any updates I am not aware of?
Thanks
Comment #5
bojanz commentedI've just committed #2392855: Provide a hook for altering address defaults which added hook_addressfield_default_values_alter(), the special hook for setting default values.
There's an example in addressfield.api.php, and it covers changing the default country AND providing per-country defaults for other fields.
That's resolves most of the pain that people wanted documented.
Leaving this issue open so that others get inspiration for any documentation they might want to contribute :)
@kopeboy
You need to write a custom plugin for that, the address-ch-example.inc plugin shipped with the module (example subfolder) provides code you can copy.