I'm trying to implement google maps for the Taxonomy Terms view (/taxonomy/term/%) similar to ND location demo:

http://demo.customsource.be/location

I tried adding gmap attachment view and creating a separate build mode (location) shown in the below screenshot but, it didn't change to DS build mode and still showing the original view.

Thanks,
gp

CommentFileSizeAuthor
#2 vd_layout.png27.64 KBg.k
#2 vd_rendering.png39.54 KBg.k
vd_buildmode.png17.54 KBg.k
vd_location.png55.7 KBg.k
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

g.k’s picture

Status: Active » Closed (fixed)

I had to watch this screencast several time to understand which option to play with, but I finally figured out how to combine ND Location with VD:

http://www.vimeo.com/10309385

(swentel, it would have been better if you can use different name for Content Type & View (Location) in order to avoid some confusion )

Thanks for this wonderful module, I am starting to move off from Panel Pages to take advantage of DS/VD.

Thanks again,
gp

g.k’s picture

Status: Closed (fixed) » Active
FileSize
39.54 KB
27.64 KB

I thought the issue got resolved but when tried to theme the page, I realized it's not being rendered through View Display (vd_rendering.png) and attachment view doesn't have the necessary classes. I manually tried adding .vd-region css classes using Simple CSS Overrider but that didn't work either. I have attached a screenshot for layout settings (vd_layout.png). Can anybody please tell me what I am missing here?

Thanks,
gp

swentel’s picture

Status: Active » Postponed (maintainer needs more info)

Haven't tested this with taxonomy term yet - however, it's indeed strange that it doesn't seem to render through vd - not sure what might have gone wrong here.
Could you add a drupal_set_message on line 206 and line 219 to see if it outputs something. do something like

drupal_set_message('check 1'); and drupal_set_message('check 2');

if none of those messages pop up, than there is something wrong in that preprocess function. If the 'check 1' doesn't appear, try commenting out line 203 to 205 and see if it gets further or not.

meason’s picture

I'm not sure if this is the same issue or not, so I apologise if it's a seperate one.

I tried to implement VD and ND location based on your video http://www.vimeo.com/10309385. I also looked at your latest Drupalcon video which had a short piece on it too. I did all the steps that you showed and was only partially successful in setting up the layout of the main location view. I put the list of titles on the right, the attached view with the gmap in the middle and views header in the header. The problem is that it doesn't put the pieces in their display suite regions. The titles fall below the map and not to the right as I set them up. Even if I leave out the map and put a views footer in its place, the titles still go below.

I'm using Acquia Marina 6.x-3.0-beta1 together with context module. I switched to Garland, and then it worked! So perhaps you could switch your current example to Acquia Marina to see if there is a problem / incompatibility with the theme for some reason? It could just be my implementation but I thought this might be quick way to find the problem.

swentel’s picture

@meason : looks like a Acquia Marina css conflict indeed, which is - honestly - not our problem :)

g.k’s picture

Acquia Marina 6.x-3.0-beta1 is a Fusion subtheme, though I have tested using Fusion core but guessing it will be an issue with all of the Fusion based themes. I was testing using Adaptive subtheme and it doesn't even render View Display when used with ND Location. It works fine on Garland & Fervens theme. I can create an issue for Fusion/AT theme but not sure what exactly is the problem here?

swentel’s picture

Status: Postponed (maintainer needs more info) » Fixed

Ok found it, it's because fusion_core has a views-view--page.tpl.php. Solution: copy vd/templates/vd.tpl.php to acquia_marina/views-view--page.tpl.php and it will be rendered right!

g.k’s picture

Status: Fixed » Closed (fixed)

Worked like a charm! Thanks a lot

ehanuise’s picture

Took me a while to come here, had a similar problem: views layout was not affected by vd. Turns out the theme was the culprit, copying vd.tpl.php solved it.

Maybe this should go into the readme.txt for the module :
"If your views layout does not change when using vd, check out for the presence of a views template in your theme."

ehanuise’s picture

Status: Closed (fixed) » Patch (to be ported)

I update as 'patch', not sure if it's the right way to do this :)

swentel’s picture

Status: Patch (to be ported) » Closed (fixed)

Added to project page, even beter :)