Hi -
Here’s mySnippet:
<?php
$id = $_GET['id'];
$output = $id;
return $output;
I use it like this:
@EVAL return $modx->runSnippet('mySnippet');
in a TV
I expect it to simply return the id of the document being edited (in the manager). But it simply comes back blank.
Is there a reason for this? What am I doing wrong? How can I access the id of the document being edited in the manager, in a snippet, so that I can use it to build dynamic values in a TV???
I am puzzled..