Hello All,
I need to put the "TellAFriend" control in a popup window.
I've copied the WebPage.aspx as a template into TellAFriend.aspx.
The forms loads and populated my fields properly, but when the page loads it is using the "ABleCommerce" theme and stylesheet.
I've updated the store config to use "MyTheme" as the default theme. But the "AbleCommerce" theme/stylsheet is still loaded.
I even hard-coded a <link> to the stylesheet in the ASPX page, but some process stripped it out.
How do I get a standalone / new page to use my store's default Theme/stylesheet?
-tomas
Popup pages
Re: Popup pages
Could be that Webpage.aspx has been "personalized". If you browse to the page while logged in Admin, what does the admin panel show (bottom of page) for theme? Theme is bound in inline code for object "Webpage". You can override that in code if you prefer:
changeto
change
Code: Select all
PageHelper.BindCmsTheme(this, _Webpage);
Code: Select all
this.Theme = "MyTheme";
Nick Cole
http://www.ethofy.com
http://www.ethofy.com
Re: Popup pages
OK. That's the problem. If I bring up this page while logged in as admin, there is no "admin panel" at the bottom of the page. Just the items that I put in the aspx itself.
What is it that triggers the page to render the admin panel at the bottom? Is it a flag? Or simply inheriting the proper parent?
-tomas
What is it that triggers the page to render the admin panel at the bottom? Is it a flag? Or simply inheriting the proper parent?
-tomas
nickc wrote:Could be that Webpage.aspx has been "personalized". If you browse to the page while logged in Admin, what does the admin panel show (bottom of page) for theme? Theme is bound in inline code for object "Webpage". You can override that in code if you prefer:
changetoCode: Select all
PageHelper.BindCmsTheme(this, _Webpage);
Code: Select all
this.Theme = "MyTheme";
Re: Popup pages
That's in the default master page - /Layouts/Scriptlet.master - did you alter that?
Nick Cole
http://www.ethofy.com
http://www.ethofy.com
Re: Popup pages
No. It's used by all the other pages on the site. They are working correctly.
I'll re-check the inheritance. I may have dropped it.
-tomas
I'll re-check the inheritance. I may have dropped it.
-tomas
nickc wrote:That's in the default master page - /Layouts/Scriptlet.master - did you alter that?
Re: Popup pages
OK. Simple .NET problem. The theme in the <Page> declaration was undefined. So I'm guessing it used the first one it found: AbleCommerce.
Here's the page declaration that worked:
Thanks for the help.
-tomas
Here's the page declaration that worked:
Always learning something new!<%@ Page Language="C#" Theme="MyTheme"%>
Thanks for the help.
-tomas
dadkind wrote:No. It's used by all the other pages on the site. They are working correctly.
I'll re-check the inheritance. I may have dropped it.
-tomas
nickc wrote:That's in the default master page - /Layouts/Scriptlet.master - did you alter that?