Conan

> The .htaccess in the top-level that rewrites into public/ is a fallback Ah yes the index.php is inside public which starts up SS, I never really noticed/thought about that, I only thought it was for the public assets/resources 😄🙈 So yes it makes sense to change the site root then 🙂

Conan

~I mean the only reason why anyone would like to change the site root is if they don't like the default name of public_html~ <- nvm not valid for SS sites

Conan

yup should work out of the box if you unzip SS inside public_html (and this is where the CMS framework should be placed whether it's Joomla, Drupal.. or SS) 😛

Conan

you don't need to change any site root paths

Conan

I mean you unzip the SS project inside the public_html folder in cPanel. So the SS's public folder is inside public_html

Conan

You can also zip all your project files including vendor and then use the cPanel file manager to upload the zip file and unzip it on the server

Conan

> Bear in mind that will probably affect HTMLFragment, which is used to output plain HTML (e.g. in form fields and the CMS), so there’ll be a minor performance penalty Certainly good to be aware of it, thanks 👍

Conan

But even if I were to use the class name directly, is it not possible to set this globally from some configuration file? so I do not need to apply code changes to all my modules. (which currently references the DBHTMLText class directly)

Conan

@kinglozzer ah that works, I thought the string 'HTMLText' was only an alias to not have so much breaking changes from SS3 to SS4, but there are custom configurations for it.

  1. framework/_config/model.yml
  2. HTMLText:
  3. class: SilverStripe\ORM\FieldType\DBHTMLText
  4. properties:
  5. ProcessShortcodes: true
👍 (1)