alb55 Posted August 25, 2013 Share Posted August 25, 2013 Hello. I would like to add some more complex static pages to my shop. I know that this can be done via CMS functionality. I was wondering if I am able to create various templates for CMS post categories or single posts as in Wordpress or Drupal? If so how shall I name these .tpl files and what is the template hierarchy? Also, I'd like to add a content that consists of repetitive entries. A single entry would contain some text, short title, additional text and photos. Is there any way to add fields with this content in back office and template(e.g. photo field, text field). I am new to Prestashop so I'm sorry if the question is silly. I was searching documentation but couldn't find a specific answer. Link to comment Share on other sites More sharing options...
vekia Posted August 25, 2013 Share Posted August 25, 2013 you can't do this by default. You can achieve this but only with modification of the engine (especially CMS controller). You will need to check the id_cms GET variable (in controller) then depending on the value of this parameter - load the appropriate template file 1 Link to comment Share on other sites More sharing options...
alb55 Posted August 25, 2013 Author Share Posted August 25, 2013 Thanks for reply vekia. I'd prefer not to modify the engine as there may be some difficulties with updates. I can also split page in two systems: the proper CMS and Prestashop but this is not very elegant solution. What do you think? Link to comment Share on other sites More sharing options...
vekia Posted August 25, 2013 Share Posted August 25, 2013 it is possible to avoid issues after engine update. Just create an override of cmscontroller, http://doc.prestashop.com/display/PS15/Overriding+default+behaviors 1 Link to comment Share on other sites More sharing options...
alb55 Posted August 25, 2013 Author Share Posted August 25, 2013 Thanks for advice. I'll give it a try. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now