I have multiple sites with their own themes. All embedded gallery pages use
"the theme" set in gallery configuration. Would it be possible to have an option
where gallery doesn't pick any theme, or alter the execution order?
If not, could you please provide instructions for removing the
theme selection from gallery.module? Thank you.

CommentFileSizeAuthor
#5 override1.png8.57 KBskizzo

Comments

lvthunder’s picture

I don't think you can do that, but you can make a G2 theme that doesn't have any custom colors or change the CSS classes to use the classes Drupal uses.

profix898’s picture

If I got you right, this is possible with G2.3 (but not with G2.2) and the options to enforce a certain theme for embedded gallery are available in the D6 version of gallery module also.

skizzo’s picture

Version: 5.x-2.2 » 5.x-2.x-dev

Is that capability only available in D6? I just upgraded
Gallery: 2.2.5 ---> G2.3-rc1
gallery module: 5.x-2.2 ---> 5.x-2.x-dev
but still I don't see how to "disable" the gallery module's theme selection.

To clarify: what I would need is to display the embedded gallery using "the site's theme"
(rather than the theme selected in admin/settings/gallery). For example, if I have two
D5 sites using themes Garland_one and Garland_two, I would like to display
- siteone.example.com/gallery with theme Garland_one
- siteone.example.com/gallery with theme Garland_two
...and just forget about the theme selection in admin/settings/gallery

Thank you.

profix898’s picture

Actually I thought you were talking about the G2 theme. For the Drupal theme (used for gallery pages) you can choose 'System default' at admin/settings/gallery and gallery module does not force a certain theme then. In case it still does this should be considered a bug.

skizzo’s picture

StatusFileSize
new8.57 KB

If I choose "System default", and my default happens to be Marvin, then I see

- siteone.example.com/gallery (theme Marvin)
- sitetwo.example.com/gallery (theme Marvin)

while for the home pages I would get

- siteone.example.com/ (theme Garland_one)
- sitetwo.example.com/ (theme Garland_two)

Maybe it is not a bug. After all, the system is doing what it is told to...
Maybe what is missing is a setting for theme selection priority, to be
used when gallery and another module both try to set the theme.

Please see attached snapshot from domain.module administration
Note: I tried to change execution order from -100 to +100, but gallery
always wins...