Popup pages

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
dadkind
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 105
Joined: Thu Jan 22, 2009 3:32 pm

Popup pages

Post by dadkind » Tue Mar 03, 2009 1:04 pm

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

User avatar
nickc
Captain (CAPT)
Captain (CAPT)
Posts: 276
Joined: Thu Nov 29, 2007 3:48 pm

Re: Popup pages

Post by nickc » Tue Mar 03, 2009 2:10 pm

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";

dadkind
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 105
Joined: Thu Jan 22, 2009 3:32 pm

Re: Popup pages

Post by dadkind » Tue Mar 03, 2009 3:25 pm

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";

User avatar
nickc
Captain (CAPT)
Captain (CAPT)
Posts: 276
Joined: Thu Nov 29, 2007 3:48 pm

Re: Popup pages

Post by nickc » Tue Mar 03, 2009 4:09 pm

That's in the default master page - /Layouts/Scriptlet.master - did you alter that?

dadkind
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 105
Joined: Thu Jan 22, 2009 3:32 pm

Re: Popup pages

Post by dadkind » Tue Mar 03, 2009 4:14 pm

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?

dadkind
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 105
Joined: Thu Jan 22, 2009 3:32 pm

Re: Popup pages

Post by dadkind » Tue Mar 03, 2009 10:18 pm

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?

Post Reply