Jump to content

Templates for CMS pages


Recommended Posts

Have been using Prestashop for a while and I really like it more and more compared to Magento, Woocommerce etc.

 

However. In wordpress you can assign various cms pages to a specific tamplate or templates. Is that possible in Prestashop? I know I could just test if cms page id is equal to something, and then include the relavant tpl file in the code of cms.tpl file, but that can quickly be messy, and not very useful for non-technical persons.

 

Any advice here?  :)

Best, Simon

Link to comment
Share on other sites

Hi Simon

 

My first idea

 

If you want to be easy to the final user you are going to need code.

 

1) Add an extra field to the CMS pages where you can select the template to use ( You can create additional table or a list by hand)

2) Override  the CMS Controller to request a diferente template base on the template selected

  • Like 1
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...