Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
Qlof CreditAttribution: Qlof commentedI 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.
Comment #2
modctek CreditAttribution: modctek commentedHallelujah! That fixed it!
Comment #3
kenny hektik CreditAttribution: kenny hektik commentedMan, 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!
Comment #4
Fohsap CreditAttribution: Fohsap commentedI 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.
Comment #5
sbassett CreditAttribution: sbassett commentedAwesome. Thanks for sharing this valuable find, my hair can now no longer worry about being pulled from the scalp.
Comment #6
koppie CreditAttribution: koppie commentedTwo years later and this fix still rocks! Thanks Qlof!
Comment #7
Fogg CreditAttribution: Fogg commentedHurray, that works here as well. Could this become standard?