Hi guys, looking for some suggestions on how to solve this:

My nodes have the usual Drupal node Title field label. Users fill this out amongst other items when creating a node. I am hiding the Location Name field from users because for my site it would be a duplicate of the Title field (the node Title should also be the Location Name).

I have noticed that map locations are much more accurate if you provide a location name as well as the address. I have that location name available in the title, but not in the location name field - so the question is: how can I expose or duplicate a node's Title field to the Location Name field, without requiring the user to fill out/view the Location Name field.

I would do it in reverse (hide the node Title field and use the Location Name field as the title) except Drupal doesn't appear to allow you to disable the node's Title field, and besides - a title field is critical in Drupal's behaviour.

Any suggestions?

Thanks,
Jason

Comments

entilza72’s picture

Just to make a little clearer (if it wasn't already), what I am trying to do is make a token like [title-raw] available inside the Location Name field, and for the Location Name field to be hidden from the user.

Only, it appears you cannot place tokens inside fields.

All suggestions (including pointers on where to start code hacking, or alternatives) greatly appreciated.

Cheers,
Jason

entilza72’s picture

OK, an update, but still no solution:

A module called auto_nodetitle will allow me to work in reverse by hiding the title field and use the Location Name field to populate the title.

However, all my dreams are torn asunder because the Location module does not expose the Location Name field to google when doing lookups. So now the question becomes: how do we get the Location Name field passed to google as part of any google query/lookup Location performs?

I have faked this by manually inserting the location title into the Street field. It *vastly* improves the results, thanks to google's all seeing eye. I've had the Location module be wrong by many miles when just the street address is provided, but become 100% accurate when the location name is manually added to the street address.

Any tips or pointers would be appreciated.

Cheers,
Jason.

entilza72’s picture

Status: Active » Fixed

Considering the issue has now "morphed" from what is described in the title, I am going to mark this issue as "fixed" and open a new one with a more accurate/ up to date description.

New issue is here: http://drupal.org/node/916120

Thanks,
Jason.

Status: Fixed » Closed (fixed)

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