We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10720
    • 26 Posts
    I include template files for version control via
    [[includeFile? &file=`assets/templates/th/templates/include-test.html`]]
    Locally, everything ok. On live server, this php error thrown:

    Error: Unknown(assets/templates/th/templates/include-test.html): failed to open stream: No such file or directory
    Error type/ Nr.: Warning - 2
    File: /manager/includes/document.parser.class.inc.php(770) : eval()’d code
    Line: 11

    Gertrud
      • 3749
      • 24,544 Posts
      Did you copy that file to the same location on the remote server?
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 10720
        • 26 Posts
        yes; now I found out, it’s only inside Wayfinder; this is how I did it:
        &outerTpl=`@FILE:[(base_URL)]assets/templates/th/chunks/th.top.outer.tpl`