Chaning Layout For A Single Page

I have a theme with a particular layout for the entire site. I have a page I want to not have some of the blocks (ex: within the header and footer) to be visible. I'll call this layout "minimal".

I thought I found two possible ways to accomplish this, but neither change the way the page is looking. And yes, I cleared the cache.

1. Under Design->Layouts I cloned the main layout and then selectively shut off the blocks I did not want in minimal layout. Then I wen to Website->Content and edited the page I wanted to use the minimal layout. I went to the Layouts section and selected the minimal layout. The layout did not change when I view that page.

2. Rather than create a new layout, just go to Website->Content, edit the page, go to Layouts and deselect the blocks not desired on this page. Again, the layout did not change when I view that page.

As I mentioned before I have cleared the cache.

A. What is the ideal way of accomplishing what I am trying to do?

B. Why is neither of these methods working?

You might want to use custom classes for the blocks you want to show/hide.

Then in whatever condition determines 'minimal', I'd use jQuery to find those classes and $(selector).hide();

Are you trying to do this from the "Layouts" tab on the 'page'? I don't think you can affect the header from there since it's not within the 'page'. (confirm when you use the word 'page' you men "Website->Content" items.)

I have a theme with a particular layout for the entire site. I have a page I want to not have some of the blocks (ex: within the header and footer) to be visible. I'll call this layout "minimal".

I thought I found two possible ways to accomplish this, but neither change the way the page is looking. And yes, I cleared the cache.

1. Under Design->Layouts I cloned the main layout and then selectively shut off the blocks I did not want in minimal layout. Then I wen to Website->Content and edited the page I wanted to use the minimal layout. I went to the Layouts section and selected the minimal layout. The layout did not change when I view that page.

2. Rather than create a new layout, just go to Website->Content, edit the page, go to Layouts and deselect the blocks not desired on this page. Again, the layout did not change when I view that page.

As I mentioned before I have cleared the cache.

A. What is the ideal way of accomplishing what I am trying to do?

B. Why is neither of these methods working?

Hi there

I think you can try our free addon Custom Locations for Layout - http://www.cscart.biz/custom-locations-for-layout.html

This Addon that allows you to create custom location in layout for a separate category, product or even page and build a unique Landing Page.

Give it a try and let me know.

Fotis

Another way is to create separate layout page for this page.

- Log in the admin panel

- Go to Design -> Layouts

- Click on the Add layout page button

- Select the View page variant in the Dispatch selectbox

- Select your new page in the Pages tab

- Save the result

- Add the Main content block for the new layout page

- Add new block with the HTML block with SMARTY support type

- Add required code to the block content

As a result, the new block with and layout page will be used for the new CMS page only

Well with standard CS-Cart you cant select which page id you need to change/alter layout only.

If you use our addon then in the above steps, you put in not the dispatch for all pages but the one for the page you need to alter for example:

pages.view&page_id=4

So then you can build thid page from ground up, leaving all other pages (for example about us etc) as they where.

Fotis