Hi,

When viewing node locations on the googlemap and the mouseover shows the node title, does anyone know how this could instead be changed to a cck field from the node?

I'm using it to show user profiles (which are nodes) and the titles are autogenerated and meaningless.

Thanks,

Matt

Comments

sleepingloach’s picture

..or rather, the userid who created the node?

Thanks!

Matt

tom_o_t’s picture

It's not something that can currently be done in gmap without writing some new code and patching the module.

My recommendation would be to use http://drupal.org/project/auto_nodetitle with the tokens module. This way you can automatically give the autogenerated nodes a title that is the same as the username/userid/any cck field. Then that value would show as the tooltip when you mouseover a marker on the map.

Hope this helps!

sleepingloach’s picture

Aha, thank you! An excellent idea.

I was using auto_nodetitle, but hadn't directly utilized tokens yet (I had it installed as a dependency for other modules) so that idea did not come to mind.

Right now it's generating automatic titles, I had left the pattern for the title empty, so it was making sequential "User Profile x" titles. I supposed I could just change this to [author-uid] or [user-id] etc. Great...

Matt

podarok’s picture

Status: Active » Closed (won't fix)

release unsupported
feel free to open issue against latest 7.x dev