MovableType Plugin: MTContentiousEntries
MTContentiousEntries is a plugin for MovableType that orders entries from the current blog by the number of comments. Entries with the most comments are listed first.
Usage Example
<MTCategories>
<MTIfNonZero tag="MTCategoryCount">
<h2><MTCategoryLabel></h2>
<UL>
<MTContentiousEntries lastn="5">
<LI> <a href="<MTEntryPermalink>"><MTEntryTitle></a> (<$MTEntryCommentCount$>)
</MTContentiousEntries>
</UL>
</MTIfNonZero>
</MTCategories>
Download contentiousentries.zip, unpack it, and place contentiousentries.pl in your plugins directory.
Description- Container tag that acts like MTEntries but orders the entries by number of comments (descending most comments listed first)
- If used within MTCategories, only entries from the current category are listed.
- If used within anything that contains an entry, the union of the categories of the current entry is used.
- Arguments:
- category, e.g., <MTContentiousEntries category="Movies OR TV">
Only entries from the categories listed. Categories can be combined together by using AND and OR.
- lastn, e.g., <MTContentiousEntries lastn="5">
List the N entries with the most comments, defaulting to all entries
Credits
Copious amounts of code were taken from David Raynes' MTRandomEntries plugin (Version 0.5).
Versions
|
jim steed at
08:30 AM February 01, 2005
Trackback Pings
This entry's TrackBack is:
http://www.fakejazz.com/cgi-bin/mt/mt-tback.cgi/18
Good job!
works very well in a template page, but i get this error when i try to put the code inside the individual entry archive template:
An error occurred:
---------------------------------
Building entry 'Dignissim qui blandit praesent' failed: Build error in template 'archives billet individuel': Error in tag: No such category 'MT::Category=HASH(0x1ffa00c)'
---------------------------------
Any idea why i get this error?? The tag is not place within a category tag. I used the code you provided in your example.
Thanks for your help!
Posted by: jaylacroix at August 24, 2005 10:32 AM
Yea, I get the same error on the individual archive template though, in english.
my email is j.d.gidcumb[@at@]excite.com if you have a way to fix it. I love your script by the way.
An error occurred:
Building entry 'the new pair of shoes' failed: Build error in template 'Individual Entry Archive': Error in tag: No such category 'MT::Category=HASH(0x86c4b5c)'
Posted by: gid at January 31, 2006 08:20 PM
Wonder if there's any way to limit the amount of time that it pulls from?
I'd like to display the most commented on entries from within the last 30 days rather than from the entire blog.
Posted by: Ryan Saghir at March 31, 2007 07:36 AM
Great!
Have been working hours on another plugin, and minutes on another method, all with fail result. But only seconds to install yours and it's works :)
Posted by: Aryo Sanjaya at February 13, 2008 03:56 AM
Post a comment
Thanks for signing in,
.
Now you can comment. (sign out)