2018-10-22, 18:06

Feb 27, 2012 — Notify Users module, ver. 0.5 released — user can choose between sending single message (...) »

2013-01-28, 08:32

19 студзеня 2013 у Гродне трагічна загінуў паэт, журналіст і мой сябар (...) »

2009-10-14, 07:19

The site Litaratura.org is devoted to Belarusian literary works and translations. (...) »

2009-01-12, 20:46

Late November 2008 marked the 20th anniversary of the official founding of the Belarusian (...) »

Registered User Area Log into This Site
Show Credits... Credits
~ / Public Domain Software / LatestComments Snippet $_
LatestComments Snippet
Click To View A Full Size Image...
2010-04-03, 06:23

LatestComments snippet allows to obtain comments from the global scope of your MODx-driven site. Comments are descendingly ordered by a creation date.

Solving this task with the means given by Jot itself is neither obvious nor easy. Several threads on MODx forum where posters banged their heads against the brick wall serve for an evidence.

How to use LatestComments

# 1) create new snippet 'LatestComments' and paste into it content of the attached latestcomments.txt file
# 2) call your snippet something as:
[[LatestComments? &count=`5` &customFields=`name,email` &tplComment=`comment-chunk`]]
# 3) please read more details on parameters/ placeholders in snippet's header

Simple fetching items from Jot’s table in a MODx database cannot solve the issue of latest comments. The fetched info should also be correlated with a status of documents that the comments are attached to – documents may be in different states: published, unpublished, deleted.

There is also another problem — very often designers want to have along with latest comments also brief info on documents that the comments belong to.

I have tried to solve in my snippet all these most common issues. The snippet initially has been posted to this thread on MODx forum.

Download This Attachment... LatestComments Snippet — the very latest version
Last modified: 2011-06-18, 00:00 — Size: 7,21 KB