10380 Posts in 2195 Topics by 1711 members
|Go to End|
23 May 2012 at 9:49pm
Hopefully what is going wrong in this setup will be obvious to someone here, I'd certainly appreciate the help!
I have a group of websites with similar styling, right now on three domains, two of them are subdomains, so I employed the subsites module for the first time, very nice and convenient. I also decided on the quest for ultimate coding elegance to employ sub themes for the first time, it worked like a charm, cascading theme changes to each sub theme only where specified, well nearly!
Later I discovered that the error pages and the UserDefinedForm pages are rendering in the wrong theme, ie, not picking up the sub theme styling of each site, deriving instead directly from the main theme, for some reason I cannot fathom this one out.
Here is The Setup:
Page.ss / theme / domain one
TwoPage.ss / theme_twopage / domain two
ThreePage.ss / theme_threepage / domain three
Somehow I have to get the error pages and userforms of domain two and domain three to point into their proper sub themes, like all the other pages in those sites currently do. Any ideas?
26 May 2012 at 1:45am
Maybe there is a more elegant solution but the work around ended up being pretty straight forward;
- extended ErrorPage & UserDefinedForm with PageTwoErrorPage & PageTwoUserDefinedForm
- then put a css include for the subtheme styling in the controllers
- updated relevant pages in the subsites CMS to point to those new page classes
And all is well with the world, ( for now : )
|Go to Top|