Hello.

I run a drupal/gallery2 site, and it's been working great.

When I first installed it, I had trouble getting the nav menu on the gallery pages but I found a fix here on the boards and it works well now.

My problem is that the nav menu disappears on some pages. It's basically pages added by different addon modules for gallery. For example, "Most viewed", "Best rated" etc. It doesn't matter if I have url aliases for them or not - the nav menu disappears.

Has anyone had the same problem? Can I include something on the modules pages to make sure the nav menu is included?

Thanks.

//Olof

Comments

Qlof’s picture

I found a fix for this after searching other posts. It was well hidden in a post. I noticed others had the same problem so here it goes:

Remove/comment out this line in gallery.module:

drupal_alter('gallery_page', $result, array());

Thanks to sparr who posted it, whom in turn thanked takahiro.

modctek’s picture

Hallelujah! That fixed it!

kenny hektik’s picture

Man, I just wanted to thank you soooooooo much for this. To get it back was always a process from hell, this is so much better. Thanks again!

Fohsap’s picture

I have a question about this. Is your site being properly indexed by Google? Site crawlers miss my entire gallery. I don't know wtf is going on.

sbassett’s picture

Awesome. Thanks for sharing this valuable find, my hair can now no longer worry about being pulled from the scalp.

koppie’s picture

Status: Active » Reviewed & tested by the community

Two years later and this fix still rocks! Thanks Qlof!

Fogg’s picture

Hurray, that works here as well. Could this become standard?