First go to
Resource Management in MODx manager and to Jot snippet. Add a new line before Jot codes like this:
......
$docid = isset($_GET['docid']) ? $_GET['docid'] : $docid;
$jotPath = $modx->config['base_path'] . 'assets/snippets/jot/';
include_once($jotPath.'jot.class.inc.php');
.......
Now you can set &docid parameter via &docid query in url (http ://domain/index.php?id=28
&docid=5)
Then create a
BLANK (no template) modx document and put the Jot call you need in this page. (e.g. this document ID is 10)
Now in your ThickBox link, set the external page url to something like this:
<a href="[~10~]&docid=[*id*]&height=220&width=400">Comments</a>
This will change to this:
<a href="index.php?id=10&docid=35&height=220&width=400">Comments</a>
Or
<a href="docTitle.html?docid=35&height=220&width=400">Comments</a>
I hope it works