The CCK Address module (http://drupal.org/project/cck_address) keeps the values for the fields in a nested array which See Map currently doesn't support. The attached patch adds support for cck_address by allowing field names to be associative arrays (i.e. field_event_address[0][street1] )
| Comment | File | Size | Author |
|---|---|---|---|
| see_map_address.patch | 663 bytes | jrust |
Comments
Comment #1
mariuss commentedApplied your patch and committed a new version. Please give it a try.
Thanks a lot.
Comment #2
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #3
sivasamba commentedSo this patch work or not?
thanks a lot
Comment #4
mariuss commentedDownload version 1.0 and give it a shot :-)
Please report back saying if it works or not. Thanks.
Comment #5
sivasamba commentedI dont understand Marius.. You mean that I should download version 1.0 of what?
Thx
Comment #6
mariuss commentedOf See Map.
Comment #7
nrasmus commentedI'm trying to implement this, but haven't been successful so far. What format should the field names be in?
Comment #8
mariuss commentedDid you try the format shown in the description of this issue?
Something like:
field_event_address[0][street1]
Comment #9
nrasmus commentedYeah, but I guess I'm not clear on the [0] field--is that a variable? How do I know which subfield is which number? cck_address' defaut first field is [Address] too--you can change the name in the 'add field' pages for cck_address, but it's not clear to me whether that's actually just changing the label, or the database column name. I haven't actually done an sql query to see what the data is being stored as. That's probably what I should do, eh?
Comment #10
nrasmus commentedOK--I got it working by looking at the database. The settings for see map should be as follows (what you call your cck_address fields within the "manage fields" dialogue does not seem to effect this):
field_cck-field-name is the name listed under "Name" when you click "Manage Fields" for your content type.
I'm assuming a U.S. locale for these field names--I don't know if the field names are different in other languages. Maybe you can add this to the documentation--thanks for the nice module!