We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 13740
    • 86 Posts
    I installed the snippet, and I believe I’m calling it correctly, but I just get a PHP error:

    Fatal error: Call to undefined function: gettv() in [omitted]/manager/includes/document.parser.class.inc.php(769) : eval()’d code on line 147

    I’m trying to reference TVs from another page like this:

    <a href="[[getField?&docid=`1` &field=`frontPromoLink`]]">[[getField?&docid=`1` &field=`frontPromo`]]<a/>
      • 10449
      • 956 Posts
      Maybe clear the doc cache or use unchached syntax for the snippet calls? [!!] instead of [[]]

      I just made a test with a TV field and it works:
      [!getField? &docid=`395` &field=`gigDatum`!]

      Using getfield 1.3 (latest avbl. version) + MODx 0.9.6.1p2 (latest stable v.)

        • 13740
        • 86 Posts
        thanks!

        I had only created the snippet, not uploaded the .php file!