Page 1 of 1

Popup pages

Posted: Tue Mar 03, 2009 1:04 pm
by dadkind
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

Re: Popup pages

Posted: Tue Mar 03, 2009 2:10 pm
by nickc
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:

change

Code: Select all

             PageHelper.BindCmsTheme(this, _Webpage);
to

Code: Select all

            this.Theme = "MyTheme";

Re: Popup pages

Posted: Tue Mar 03, 2009 3:25 pm
by dadkind
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
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:

change

Code: Select all

             PageHelper.BindCmsTheme(this, _Webpage);
to

Code: Select all

            this.Theme = "MyTheme";

Re: Popup pages

Posted: Tue Mar 03, 2009 4:09 pm
by nickc
That's in the default master page - /Layouts/Scriptlet.master - did you alter that?

Re: Popup pages

Posted: Tue Mar 03, 2009 4:14 pm
by dadkind
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?

Re: Popup pages

Posted: Tue Mar 03, 2009 10:18 pm
by dadkind
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:
<%@ Page Language="C#" Theme="MyTheme"%>
Always learning something new!

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?