Gallery DHTML navigation menu missing in Drupal

djpumpkin

Joined: 2006-12-06
Posts: 135
Posted: Wed, 2009-01-14 04:26

The gallery DHTML album navigation menu does not appear when gallery is embedded in Drupal.
If tested it with Matrix and Ice themes with the same results.
Does anyone know of a fix?

Login or register to post comments
Kaplar

Joined: 2009-01-15
Posts: 3
Posted: Thu, 2009-01-15 08:59

I'd like to second that. Although, it's the first time I'm trying it and it could well be that I missed something. The gallery menu module is enabled and the gallery configuration is set up. I can get the imageblock to work, but I still have trouble with the gallery navigation.
All I want is the album structure to show in the sidebar. I enabled the gallery menu module, I checked the Move Gallery2 sidebar to Drupal Gallery Navigation block option and put the block into the sidebar.

Can somebody help?

Login or register to post comments
djpumpkin

Joined: 2006-12-06
Posts: 135
Posted: Tue, 2009-01-27 22:13

The problem is that all javascript actions are disabled in embedded gallery2 - so things like plugins activation will also not work. I found a hack to the core module that fixes this:

In gallery/modules/core/classes/GalleryTemplateAdapter.class
Line 467 replace: if (strpos($file, '?') === false && $platform->file_exists($path))
with: if (0)

more here: http://gallery.menalto.com/node/82762

Login or register to post comments
Kaplar

Joined: 2009-01-15
Posts: 3
Posted: Sun, 2009-01-18 21:45

Thanks for that. Unfortunately, that didn't do the trick for me. I applied the change and I still don't see the 'Gallery Navigation' block. It just doesn't show up in the sidebar at all.

Login or register to post comments
djpumpkin

Joined: 2006-12-06
Posts: 135
Posted: Sun, 2009-01-18 22:13

You have a different issue which isn't javascript related. Although the fix above is almost certainly still relevant to your embedded set up.

To get the gallery navigation in a Drupal block - as well as activating this in the gallery module settings you also need to enable the gallery navigation block in the Drupal blocks admin section.
Check also that the theme setting in the gallery module config screen is set to the theme you configured the gallery navigation block for.

Login or register to post comments
Kaplar

Joined: 2009-01-15
Posts: 3
Posted: Mon, 2009-01-19 03:43

Thanks a million. After a couple of hours (I don't know how much time the total problem wasted), I found that it was the setup of the short urls. A wrong setting there and nothing was rendered in drupal. It seems all good now.

Login or register to post comments
djpumpkin

Joined: 2006-12-06
Posts: 135
Posted: Mon, 2009-01-19 16:40

Great, I'm glad you got it fixed. Configuring gallery to work within Drupal can be frustrating, but it's worth persevering as the resulting functionality you can achieve is pretty amazing.

Login or register to post comments