I’m using Jot 1.1.2 and MODx 0.96 and needed to do this as well.
The following changes allow &docid=`*` to work, without messing anything else up.
In assets/snippets/jot/jot.class.inc.php, replace
$this->config["docid"] = !is_null($this->Get("docid")) ? intval($this->Get("docid")):$modx->documentIdentifier;
with
if (!is_null($this->Get("docid")) && ($this->Get("docid") == '*'))
$this->config["docid"] = '*';
else
$this->config["docid"] = !is_null($this->Get("docid")) ? intval($this->Get("docid")):$modx->documentIdentifier;
In assets/snippets/jot/includes/jot.db.class.inc.php
In function GetCommentCount, change
$sql = 'SELECT count(id) FROM '.$this->tbl["content"].' WHERE uparent = '.$docid.' AND tagid = "' . $tagid .'"'.$where;
to
if ($docid == '*')
$sql = 'SELECT count(id) FROM '.$this->tbl["content"].' WHERE tagid = "' . $tagid .'"'.$where;
else
$sql = 'SELECT count(id) FROM '.$this->tbl["content"].' WHERE uparent = '.$docid.' AND tagid = "' . $tagid .'"'.$where;
and in function GetComments, change
$sql = "select a.* from " . $tbl . " as a " . $tblcustom . " where uparent = '" . $docid . "' and tagid = '" . $tagid ."' and mode = '0' " . $where . $orderby . $limit;
to
if ($docid == '*')
$sql = "select a.* from " . $tbl . " as a " . $tblcustom . " where tagid = '" . $tagid ."' and mode = '0' " . $where . $orderby . $limit;
else
$sql = "select a.* from " . $tbl . " as a " . $tblcustom . " where uparent = '$docid' and tagid = '" . $tagid ."' and mode = '0' " . $where . $orderby . $limit;
Add &pagination=`3` to the Jot call to limit the number items returned.