Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Chaning Layout For A Single Page Rate Topic   - - - - -

 

Posted 10 December 2015 - 07:03 PM #1

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?



 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 11442 posts

Posted 11 December 2015 - 01:25 AM #2

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.)


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • dvsgr
  • Senior Member
  • Authorized Reseller
  • Join Date: 14-Apr 09
  • 1449 posts

Posted 11 December 2015 - 05:39 AM #3

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.bi...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


Fotis Kourmadas
Cs-Cart Development - Cs-Cart Authorized Reseller 

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19959 posts

Posted 11 December 2015 - 08:13 AM #4

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


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • dvsgr
  • Senior Member
  • Authorized Reseller
  • Join Date: 14-Apr 09
  • 1449 posts

Posted 11 December 2015 - 08:25 AM #5

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


Fotis Kourmadas
Cs-Cart Development - Cs-Cart Authorized Reseller