How to Assign Layout to Certain Page

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
User avatar
dmurphy4
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 30
Joined: Wed Sep 26, 2012 1:47 pm
Location: Wichita, Kansas USA

How to Assign Layout to Certain Page

Post by dmurphy4 » Tue May 21, 2013 8:02 am

See attachment for layout settings.

The layout settings functionality seems to be limited. Looks like I can only assign a layout to Product Pages, Category Pages, and General Webpages. So how do I assign a custom layout that I have created to, let's say, the basket page?

General logic tells me I need to first create a layout and define the header, footer sidebars. And then I would assign that layout to a page. Am I missing something?

I also tried to manually change the layout in the aspx file but gives me an error when doing so. Documentation is limited (as far as I can find) for what I think should be an out-of-the-box task.
Daniel Murphy
Web Developer - Front End
http://StearnsFlotation.com, http://MadDogGear.com, http://Aerobed.com, http://Sevylor.com
Wichita, Kansas

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

Re: How to Assign Layout to Certain Page

Post by mazhar » Tue May 21, 2013 9:19 am

Yes layouts in admin are for Product Pages, Category Pages, and General Webpages. Pages like basket, contactus etc are using master pages that can be found under Layouts/Fixed folder which can't be edited from admin to make sure you don't delete/change them by mistake. If you want to apply some master page created via admin then yes you will have to try manual change. But then for existing page like Basket you will have to make sure its not trying to do somthing thats not available in your newly created master page. For example Basket page has RightSidebar content placeholder denfined in it to hold some page specific information which maybe the reason your page is crashing. Just make sure your page only has PageContent placeholder and it may work with layouts created via admin panel. BTW not sure if you looked at designer guide document which can be found here http://help.ablecommerce.com/developers ... rGuide.pdf this maybe helpful.

User avatar
dmurphy4
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 30
Joined: Wed Sep 26, 2012 1:47 pm
Location: Wichita, Kansas USA

Re: How to Assign Layout to Certain Page

Post by dmurphy4 » Tue May 21, 2013 2:56 pm

Thanks for your reply Mazhar.

I successfully changed the layout for the Basket page. When I manually changed it to use the Fixed/LeftSidebar.Master it crashed because there was a contentplaceholder still calling the RightSidebar towards the end of the page. Once I change the place holder to call the LeftSidebar it ran fine while displaying the leftsidebar layout.
Daniel Murphy
Web Developer - Front End
http://StearnsFlotation.com, http://MadDogGear.com, http://Aerobed.com, http://Sevylor.com
Wichita, Kansas

Post Reply