When Media Gallery is enabled, it replaces the taxonomy_term_page callback on the taxonomy/term/% path so it can present a better page for galleries. This prevents any module from overriding this callback, and it's a common thing to do with Views or Panels.

This patch adds a dependency on page_manager so that media gallery's callback is replaced only when nothing else will. If you use Panels to override your taxonomy term pages (the term_view task), you'll want to add selection criteria so that the media gallery collection list can run when the term is in the gallery collections vocabulary.

I am not expecting this patch to get in, but the way this feature is implemented now required me to build a work around.

Members fund testing for the Drupal project. Drupal Association Learn more


funana’s picture

Thank you very much for that patch!

I am still hustling with that module. I try to make it work in a bootstrap theme views panels invironment and it's so lame... it's a shame. Messing with taxonomy terms, terrible CSS etc...

Does anybody here know an alternative to Media Gallery?

DamienMcKenna’s picture

Issue summary: View changes

I'd say to take it one step further and get rid of the custom vocabulary altogether.

mrfelton’s picture

zipymonkey’s picture

There was a similar issue in Drupal Commons distro and I took this fix from there. I have a number of sites that use this and don't want to have to fix each one... just the one that page_manager will be overriding.

zipymonkey’s picture

Realized that I need to able to display the galleries list when page manager is overriding /taxonomy/term/% so I added a simple ctools plugin.

fox mulder’s picture

Hi zipymonkey!

Your patch (#5 ) solved the problem for me, thanks!

( the problem was: Panels taxonomy/term/%TID could not be enabled )

TiMESPLiNTER’s picture

I applied the patch in #5 to my media_gallery module and nothing changes. Still the same huge gallery collection thumbnail. Still the function media_gallery_list_galleries does not get called. The single gallery view itselfs works fine. It's just the overview over all gallery collections which is broken.

I have the Taxonomy Display module active. Page manager module is disabled.

If I use the original patch I can switch between:

  • Nice gallery collection overview but no Taxonomy display functionallity
  • Bad gallery collection overview but working Taxonomy display functionallity

By enabling or disabling the term view in page manager. So this is also not the solution.

loudpixels’s picture

I have the same issue as timesplinter ... did anyone find a solution? Thanks!

Christopher Riley’s picture

Anyone have any insite into this I have a customer that is irked and haven't had time to sit down and look at it.

lmakarov’s picture

#5 does allow the "Taxonomy term template" (term_view) in Page Manager to be enabled.
We use that to render all term listing pages, so that fixes it for us.