Layout Directive ignored

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
jpopowski1
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 40
Joined: Wed Oct 01, 2008 10:10 am

Layout Directive ignored

Post by jpopowski1 » Tue Jul 14, 2009 9:04 am

I am using a VERY customized (and not by me) Able Commerce installation. The Category.aspx page has Layout = "Two Column" where "Two Column.htm" is defined in App_Data\Scriplets\Custom to show a two-column layout. It used to be "Layout = "Three Column" and used a corresponding "Three Column.htm" in App_Data\Scriptlets\Custom.

Now, despite restarting IIS, clearing cache, etc., the Three column layout is still used. Can someone please tell me what I'm missing? I thought Layout picked up the layout from the App_Data\Scriplets\Custom directory, but this does not seem to be the case.

TIA,
Judy

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Layout Directive ignored

Post by mazhar » Tue Jul 14, 2009 9:18 am

Go to desired page on store side, click edit option at bottom and then change its layout to desired. You can also revert the changes to default by going to Administration > Website > Customized Pages.

jpopowski1
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 40
Joined: Wed Oct 01, 2008 10:10 am

Re: Layout Directive ignored

Post by jpopowski1 » Tue Jul 14, 2009 9:29 am

Thank you, Master Yoda!

That worked, but now my question is why it will work in this fashion, but not when I edit the aspx page and change to Layout attribute.

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Layout Directive ignored

Post by mazhar » Tue Jul 14, 2009 9:35 am

Its because that once you change something via front end edit support it also makes a setting entry in database for that page. If some page has already some entry in database then if you change it in front end still the database get priority over it. I think that would be your case. First go to Administration > Website > Customized Pages and make sure page in not modified then if you update aspx page it will effect the layout.

jpopowski1
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 40
Joined: Wed Oct 01, 2008 10:10 am

Re: Layout Directive ignored

Post by jpopowski1 » Tue Jul 14, 2009 9:46 am

Thank you. I appreciate all your help.

Post Reply