2010-09-09, 19:38

Aug 30, 2010 — glossaryFilter has been updated — now it has new forceUTF8 parameter. (...) »

2009-11-03, 08:40

On November 1, 2009, I bought and configured an additional domain for all web services (...) »

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
Show Donation/ Payment Page... Donate/ Pay
Worthwhile Software
Refresh My Local Time (GMT+1)... 2010-09-09, 19:38
  • Poland (1)
    Ukraine (1)
    United States (2)
  • Today (203)
  • Yesterday (261)
~ / 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: 2010-03-21, 15:09 — Size: 5,59 KB — Users: 51 — Downloads: 77
Write a comment
  • Required fields are marked with *.
  • Comments are published after the approval of the site moderator, who is a human rather than a wind-fast computer program so please be patient. Off-topic comments are definitely removed.

* Code:
 
Enter this code into the appropriate field of the form while submitting an e-mail or a comment. If you have trouble with reading it, generate another...