Active
Project:
Panelizer (obsolete)
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
7 Dec 2012 at 00:10 UTC
Updated:
5 Jun 2014 at 01:53 UTC
Jump to comment: Most recent
Comments
Comment #1
merlinofchaos commentedRather than duplicate the layout, you would need, I think, to put the template file at the top level of theme B. That way it should automatically be picked up by the registry as a template file override, and thus be used in that theme. At least, that is how it *should* work.
Comment #2
jisuo commentedHey,
The reason I want this to work is because I'm using the Domain Access module to select a different theme for a mobile sub domain. So on the mobile site I use the exact same content I just change the html for all the templates (along with other various changes to optimize it for the mobile phones).
I can override all the tpl-files for content types in each theme, by naming them the same, it works great. I thought I could override the Panelizer layouts the same way.
I should also say that I have
plugins[panels][layouts] = layoutsin my .info file.When you say template file, do you mean the layout template or template.php?
Thanks!
Comment #3
merlinofchaos commentedI mean the layout template file.
Comment #4
jisuo commentedHey,
I got sidetracked with other projects and never got around to try this. I just tried it and it didn't work.
Got any other ideas?
edit: do you think something could be made in THEME_preprocess_page(&$variables) {} or is that too late?
Comment #5
damienmckennaComment #6
damienmckennaBTW you might want to try moving the layout to a module, just in case the fact it was stored in a specific theme caused problems with it loading the way you wanted.