We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 13246
    • 42 Posts
    hello,

    when I want to put php in my content management system --> backend --> tinymce this doesn’t work.
    I want to put it in the content and not in the template because it’s only one page which uses the script.

    how do I solve this?

    Thanks, Ivar
      • 21496
      • 225 Posts
      You need to write a snippet with your php code, and then call it with [[snippetname]].
        René
        • 13246
        • 42 Posts
        I now get this error:
        « MODx Parse Error »
        MODx encountered the following error while attempting to parse the requested resource:
        « PHP Parse Error »

        PHP error debug
        Error: require_once() [function.require-once]: URL file-access is disabled in the server configuration
        Error type/ Nr.: Warning - 2
        File: /home/vol2/nexethosting.com/nexet_1097593/steunpunt.nexethosting.com/htdocs/manager/includes/document.parser.class.inc.php(766) : eval()’d code
        Line: 2
          • 21496
          • 225 Posts
          You most likely have an error in your snippet. Without the code, I can’t say anything specific.
            René