Download & Extend

Incompatibility between image_gallery & Panels 3 - currently there's a path conflict if you enable term_view

Project:Image
Version:6.x-1.0-beta3
Component:image_gallery
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (won't fix)

Issue Summary

Currently if you enable term_view in Panels 3, you can't view any of the image gallery pages that live under image/tid/%, since the implementation of hook_term_path causes a path conflict. I don't know what's the best way to fix this, but what I have done is commented out the hook_term_path implementation in image_gallery.module so that I could just have the gallery show up under taxonomy/term/%. Then I added a View Content Pane of the image_gallery view into a Variant display of the term_view Panel. Then I was able to get the view at /image to work properly, since the links pointed to the regular taxonomy/term/% paths, which then showed the proper image_gallery view.

Let me know if you think there's a better way to resolve this. If there's not perhaps just adding a note in the README to explain how to work around it would be sufficient. Thanks!

Comments

#1

Status:active» postponed (maintainer needs more info)

Could you explain more please?
I can't find hook_term_path anywhere in the latest panels code.

Though I suspect this is a bug in panels -- image is playing by the book giving its own path with a hook_term_path implementation. It's up to panels to respect that.

#2

I think that hook_term_path is a special case of hook_menu_alter so the Page Manager (part of CTools & the backend of Panels 3) is overriding the taxonomy term path with its own page callback. I understand that, in one sense, this issue is Panels' responsibility to fix; however, I think that the way that Drupal handles callback overrides for paths & how Page Manager works with that system makes it difficult to do.

It may be simply that Image Gallery and Panels 3 won't work together, but I wanted to post this as an issue, so that people could know how to work around it. Do you think I should move this over to the Page Manager issue queue so that merlinofchaos can weigh in on how this might be resolved?

#3

Status:postponed (maintainer needs more info)» closed (won't fix)

You're saying that Panels uses hook_menu_alter to change the taxonomy term paths?
Then there's nothing I can do with image gallery module. You can maybe try to set up panels to show the image gallery view inside the panel?

nobody click here