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/>
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.)
thanks!
I had only created the snippet, not uploaded the .php file!