blanktorp Posted July 8, 2010 Share Posted July 8, 2010 Hello,My pages are showing as /cms.php?id_cms=#But how do I edit the product page from the core file?I noticed the path goes back to a file that shows in folder /content...but via FTP, I look everywhere, and I cannot find that folderSo how can I edit that page? I know that I can go through editing in the Tools >> CMS area of backend, but this page was made very custom for me, and I don't want to risk changing the formatting and breaking things on the page when I click "save" in the backend/CMS editor.Can anyone help?Thanks! Link to comment Share on other sites More sharing options...
rocky Posted July 8, 2010 Share Posted July 8, 2010 There is no content directory. It is an imaginary directory used to make the URL more search-engine friendly. For example, the friendly URL /content/3-terms-and-conditions-of-use is redirected to the less friendly /cms.php?id_cms=3. Link to comment Share on other sites More sharing options...
blanktorp Posted July 8, 2010 Author Share Posted July 8, 2010 That helps a bit. Thank you. And then to edit that page that you mention, the cms.php... one ... where would I go in FTP to download that file for edit? Do you know the full file path?Thanks! Link to comment Share on other sites More sharing options...
rocky Posted July 9, 2010 Share Posted July 9, 2010 The CMS pages are displayed using cms.php in the root directory of PrestaShop, which calls cms.tpl in your theme's directory. Why do you want to edit these files? You can simply go to Tools > CMS in the Back Office to edit the content of the CMS pages. Link to comment Share on other sites More sharing options...
blanktorp Posted July 9, 2010 Author Share Posted July 9, 2010 Thanks - but I have a very customized page, and when I load it in the CMS backend editing area, it shows very wrong. THings are misaligned, pictures are missing, size/format is different for fonts, etc...So I really would need access to edit the RAW files for this - how can I access via FTP to just get the raw code and manually edit?It would be a big help for me to know this Link to comment Share on other sites More sharing options...
rocky Posted July 9, 2010 Share Posted July 9, 2010 It's not possible to directly edit the HTML code. PrestaShop uses Smarty to generate the HTML code. You could edit the generated code in tools/smarty/compile, but then it would be overwritten when Smarty generates the HTML code again. You'd have to edit tools/Smarty.class.php and change $force_compile on line 152 to false and possibly $compile_check to false too. That would stop Smarty recompiling, but then you wouldn't be able to make changes to your other TPL files. Link to comment Share on other sites More sharing options...
itbranson Posted September 24, 2011 Share Posted September 24, 2011 Hi Rocky, search engine bots index the cms block contents like Terms and Conditions of use. I'd like to exclude those pages from indexing. I have searched those pages to insert no-index tag, but from your posts, it seems there's no such pages, right? In this case, how i can "hide" those not important pages from bots? thanks Link to comment Share on other sites More sharing options...
vjnunes Posted October 22 Share Posted October 22 Hi, Smarty html sometimes messes up with the html code for some reason. To bypass this problem, you should write your code directly in mysql database on table ps_cms_lang. Use phpmyadmin or some mysql client (must have credentials to access your database). 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