Locations.module compatibility

coldice4678 - March 22, 2009 - 03:52
Project:Prepopulate
Version:5.x-1.4
Component:Code
Category:support request
Priority:normal
Assigned:coldice4678
Status:active
Description

I have been searching for a way to used Prepopulate to prepopulate fields that where generated by the Location module. as much as I could figure out the url show be either :
http://www.example.com/node/add/nodetype?edit[locations][0][%23location_settings][form][fields][street]=Street
or
http://www.example.com/node/add/nodetype?edit[locations][0][%23location_settings][form][fields][street][collect]=Street
Neither of these work. %23 is the way to escape the '#' character.

I got this information from Var_Dumping the '$form' variable in the '_prepopulate_get_walk' Function.

From what I got, I feel I am very close or maybe the Locations.module isn't made to accept the data.

I am wondering if anyone else tried to use these 2 modules, and if you were able to get the 2 modules working together.

#1

hamaldus - March 26, 2009 - 22:42

I am using the 6.x version, and also struggles with finding the correct url for using location items.

I need the location latitude and longitude prepopulated, to allow people to post on the same geographic location as "parent" nodes without setting lat and long themselves.

#2

hamaldus - April 4, 2009 - 10:26

Seems like the location form is not a part of $form.

http://drupal.org/node/143289#comment-1350256

Does this mean that prepopulate won't work at all on locaion form elements?

 
 

Drupal is a registered trademark of Dries Buytaert.