Jump to content

CMS page without footer or header


Recommended Posts

Hi everyone,

 

Hello everyone,   I would use a cms page to create an HTML news letter and then copy the HTML code that results.  

 

Why not make a custom page .... I use a module to easily add products to a page but it only works through the PrestaShop editor. (See: https://mypresta.eu/...cms-pages.html)

 

Problem: The header and footer should not be part of the email. I searched in vain for a solution. I understand that I have to add dan provided header.tpl and footer.tpl in connection with the id of the page but I can not   Someone would have an idea?

Edited by Denismarcaurele (see edit history)
Link to comment
Share on other sites

Nope you don't need to do anything for that. Let me explain.

 

You just need to append a query string variable in link to truncate header and footer from CMS page. Visit both link you will understand what i am trying to say.

 

This is ordinary link http://www.ps.vipulhadiya.com/content/1-delivery

and this is without header and footer http://www.ps.vipulhadiya.com/content/1-delivery?content_only=1

 

This facility is given by PrestaShop so don't worry about standards.

  • Like 2
Link to comment
Share on other sites

I can see product listing on your CMS page, it means you have overrided CmsController, that is fine but i am sure your theme must be hard coded it is not as it should be coded. If you have basic Smarty, HTML and PHP knowledge then you can make it proper from default PrestaShop theme or share your cms.tpl file here please.

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...