Search code examples
content-management-systemmodx

MODx CMS - How to use own PHP or HTML code in custom pages


Is it possible to implement custom HTML or PHP in MODx CMS pages? I want to do more than the Rich Text Editor can offer.

Thank you.


Solution

  • You can add your HTML in chunks or templates, only getting the content you need from the rich text editor to use in your template, you shouldn't really be adding too much HTML to page content as this would allow a user to mess around with the page layout.

    As for using your own php this can be implemented using Snippets