Naldinho Posted August 10, 2014 Share Posted August 10, 2014 I would like to add some content pages to the store I'm building. CMS seems like the obvious place to start but I am running into a lot of problems so I deleted everything and will start over in a couple of hours. Can anyone direct me to anything that will allow me to just have HTML pages imbedded into a PrestaShop store (basically between the Top Menu and The Footer and as a bonus but not absolutely necessary allow the left or right column). I have already made the changes to have extended TinyMCE but I don't think that is enough. I found this guide http://iftakharhasan.wordpress.com/2014/04/05/prestashop-how-to-create-a-custom-page-without-cms/ that allowed me to add HTML pages and it seemed to work in so much as a test page I tried was rendered as expected but the positioning was all messed up -- the HTML page started above Top Menu and then proceed into Footer rather than move Footer to the end of the page. Link to comment Share on other sites More sharing options...
NemoPS Posted August 11, 2014 Share Posted August 11, 2014 You should use this method to add new pages: http://nemops.com/creating-new-pages-in-prestashop/#.U-h8EPna6r0 Link to comment Share on other sites More sharing options...
vekia Posted August 11, 2014 Share Posted August 11, 2014 you can use preferences > cms section to create custom contents and with css styles enable / disable unwanted columns, no core, no new features, only css and default prestashop features Link to comment Share on other sites More sharing options...
Naldinho Posted August 13, 2014 Author Share Posted August 13, 2014 Nemo1, Thank you for the suggestion. I will try that as soon as I have a chance. you can use preferences > cms section to create custom contents and with css styles enable / disable unwanted columns, no core, no new features, only css and default prestashop features I thought that was the case but it is not working for me. I made a simple page with css and HTML in one text file -- tested it with a browser and it looks like it is supposed to. Cut and paste it into the source popup on the CMS page and the preview mostly looks like what it is supposed to but not perfect. When I press save and publish all the styles are removed. I also tried doing a test page using styles defined for every item and the same result. It is close to what I would expect but not perfect in the TinyMCE preview but once I save and publish it keeps some of the styling but removes most and I end up with unexpected results. Link to comment Share on other sites More sharing options...
vekia Posted August 13, 2014 Share Posted August 13, 2014 if you add some non default markups, scripts etc.it's necessary to alter cms controller (to accept not default markup, change isCleanHtml to isAnything) and also to extend tinymce editor. also, you have to be sure that code that you paste to cms editor is coded well, without <body> <head> <doctype> etc. because these tags are already a part of header.tpl 1 Link to comment Share on other sites More sharing options...
Naldinho Posted August 14, 2014 Author Share Posted August 14, 2014 I got it working. Thank you both for your responses. The problem seems to be that for when I was putting all the style at the top between <style> </style> tags it was getting stripped out. For the inline CSS the problem was the program I was using to convert to inline. I did a simple css layout by hand and it worked so tried a different inliner and with the exception of one item everything was in proper place. 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