Custom Modules Jumping out of the theme
|
Brandon Sussman
Joined: 2005-10-24
Posts: 50 |
Posted: Thu, 2008-05-15 02:28
|
|
For the following, the album structure is: one album in the root gallery with multiple sub albums. When the link for either module is clicked (one is a link, the other a form), they change theme using the one assigned to the album and sub albums rather than staying in the theme assigned to the root. What controls this behavior? How can a module jump out of a theme? |
|
| Login or register to post comments |

Posts: 10096
Modules use the default theme. I guess you can tell the module to use a chosen theme if you wish.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 50
I am beginning to think I can't
I feel a design change request coming on. Allow arbitrary theme or at least current theme. Maybe, after all my investigation I could actually do the code myself
Maybe this comes under the heading of either pushing Gallery just beyond what it is meant to do OR trying to get a less-than-totally-correct design to work.
The less-than-totally-correct design in this case is one theme for all albums except the layout that essentially functions as a splash for the site.
Posts: 10096
Why not use a different theme for the root album then? Each album can have a different theme.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 50
Of course. I guess I was not clear - that is what we do now.
The fatal flaw is that we wish to retain the branding(css/layout/etc) that occurs on the specific albums where the module is invoked. This means that the theme for the root album will need to know which the originating album was and style itself accordingly. Seems to me this kind of logic is not 'the Gallery way'. Oh well - worse has been done in the name of science...
It would have been a great deal more straightforward if modules could simply inherit the theme from where they were invoked. We are surprised this is not the default behaviour.
Posts: 10096
The dynamic album module has a setting for changeing the theme that is used when the module is used. Never looked at the code to see how it is done.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 50
Thanks for that.
I just went running to look.
I haven't figured it out yet myself.
It is not east code to read
A tutorial is needed.
Posts: 10096
Sure, we just need somebody to do it.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team