Hi,
Can’t seem to get my comment count to display the right number of comments on the main blog entry page, its does on the blog overview page. Here is what I have on the main blog page:
Ditto call:
[[Ditto? &startID=`4` &summarize=`5` &tpl=`blog_mainpage` &paginate=`1` &extenders=`summary,dateFilter` &paginateAlwaysShowLinks=`1` &tagData=`documentTags`]]
Here is the blog_mainpage tpl, set up as a chunk:
<div class="blogentry">
<h2><a href="[~[+id+]~]" title="[+title+]">[+title+]</a></h2>
[+introtext+]
<div class="meta" ><strong>Posted on</strong> [+date+]
<a href="[~[+id+]~]#commentsAnchor">Comments ([!Jot?&docid=`[+id+]`&action=`count-comments` &canpost=`Registered Users`!])</a>
</div>
</div>
This displays the comments great on the overview page.
Now what I have for the actual article page is a template variable with the following:
<div id="meta2" ><a href="[~[+id+]~]#commentsAnchor">Comments ([!Jot?&docid=`[+id+]`&action=`count-comments`!])</a>
</div>
The above returns a comment count of zero every time. I know I am doing something wrong, just can’t figure out what at the minute. Only been playing with jot for a day or so.
Any help would be great. I am using the latest version of both MODx and Jot.
Thanks
Lee