I recently upgraded to 7.x-3.0 version of getdirections I believe from 7.x-2.1.

After the upgrade the title of my getdirections page (I only have one node with a location field in it) is pulling the text from a menu item that points to that page. This is especially problematic because I am using html code in my menu items so it is pulling the code from the menu item and using that as the title of the page. The menu item was not created in that node but was created separately and is merely pointing at the url of that page.

Before the upgrade the getdirections page was titled "Get Directions to Iglesia Bautista Betania" where 'Iglesia Bautista Betania' is the node title of the node that contains the location field.

FYI it is a multilingual site using entity translation and I am also using the title module.

By the way, thanks for the awesome module!

Comments

hutch’s picture

In the view, click on Content: nid under Fields and you can edit the output to suit your needs in "Rewrite results". This feature is provided by Views, Getdirections just makes use of it.

rt3me’s picture

The rewriting appears to already be set up correctly. It looks like it should be displaying the text it used to before upgrading. I just noticed as well that using the path getdirections/location/to/4 where 4 is the nid of the node I have a location field in does not work. It simply displays the page with both the to and from fields empty. I also tried downgrading and it fixed both issues. Upgrading again breaks both again. Thanks for responding to the issue, btw.

hutch’s picture

OK, I will have a look at this possible bug, what module and what version are you using to provide the locative information?

rt3me’s picture

I am using the location module, 7.x-3.0-alpha1. Incidentally, I pulled this idea of prepopulating with only the getdirections module from another request on this page and it seems to work properly:

http://ministeriosbetania.com/en/getdirections/latlon/to/51.513444,-0.15... arch,london,uk

Let me know if you need any other information. Thanks again.

rt3me’s picture

I also just tried upgrading to location module version 7.x-3.0-rc5 and using a location CCK field and neither one of those approaches seems to have had an effect.

hutch’s picture

Have you by any chance also got location_node enabled? If so disable it if you can.
I have just checked on a test rig using location module with location_cck current dev 7.x-3.x and it is working with Getdirections 3.x

You were using Getdirections 7.x-2.1 which did not check which locative module, it only checked if the location module itself was installed, more recent versions are stricter.

BTW have you tried https://drupal.org/project/getlocations

rt3me’s picture

Disabling Node Locations seems to have fixed everything. You're the man.

Have not tried getlocations. What would you suggest might give me a reason to use it over location? Aside from the programmer.;)

hutch’s picture

Getlocations gives you Google maps and Google Search to help you find your location and display your location in the page or using Views. Getlocations itself does the maps and Getlocation Fields saves the locations and is similar to location_cck but will allow you to add a location to nodes, users, terms or comments or in version 2.x to any entity type. The location is established before you submit the page, all geocoding is done clientside so no empty locations.
There is support for Feeds with which you can do mass imports from a .csv file. Everything is themed so you can alter the output in your theme. You can add circles, polylines, rectangles and polygons to your maps and there is a good selection of markers available or you can use your own.

Getlocations is being actively developed, although things have picked up with the Location and Gmap modules recently they are still pretty fragile.

See http://www.betterbankside.co.uk/traveltool for a nice example of getlocations in use.

Try it.