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] )

CommentFileSizeAuthor
see_map_address.patch663 bytesjrust

Comments

mariuss’s picture

Assigned: Unassigned » mariuss
Status: Needs review » Fixed

Applied your patch and committed a new version. Please give it a try.

Thanks a lot.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

sivasamba’s picture

So this patch work or not?

thanks a lot

mariuss’s picture

Download version 1.0 and give it a shot :-)

Please report back saying if it works or not. Thanks.

sivasamba’s picture

I dont understand Marius.. You mean that I should download version 1.0 of what?

Thx

mariuss’s picture

Of See Map.

nrasmus’s picture

I'm trying to implement this, but haven't been successful so far. What format should the field names be in?

mariuss’s picture

Did you try the format shown in the description of this issue?

Something like:
field_event_address[0][street1]

nrasmus’s picture

Yeah, 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?

nrasmus’s picture

OK--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.

  • Street Field: field_cck-field-name[0][street1]
  • Additional Field: field_cck-field-name[0][street2]
  • City Field: field_cck-field-name[0][city]
  • Province Field: field_cck-field-name[0][state]
  • Country Field: field_cck-field-name[0][country]
  • Postal code Field: field_cck-field-name[0][zip]

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!