Jump to content

Where is the /content folder?


Recommended Posts

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 folder

So 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

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

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

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

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

  • 1 year later...

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

  • 13 years later...

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

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...