List Info

Thread: show recent comments




show recent comments
user name
2006-02-14 05:29:45
Hi Ben,

Don't forget to add comments-recent on the blog's plugin chain.

$BLOJSOM_RECENT_COMMENTS contains BlogComment objects, check out the available methods here
http://blojsom.sourceforge.net/javadoc/org/blojsom/blog/BlogComment.html

Cheers,
Cliff.

On 2/14/06, Ben Robbins <activemac.com">infoactivemac.com> wrote:
Sounds like exactly what I need. ; So just double-checking, I would
activate this by adding

&nbsp; &nbsp;   ; &nbsp;comments-recent=org.blojsom.plugin.comment.RecentCommentsPlugin

then adding comments-recent to the mappings, then put something like

&nbsp; &nbsp; &nbsp;   ;#foreach ($entry in $BLOJSOM_RECENT_COMMENTS)
   ; &nbsp; &nbsp; &nbsp;  $entry.getTitle
 ; &nbsp; &nbsp; &nbsp; #end

in my template.

How do I find out the variable names in the array (like getTitle for
BLOJSOM_PLUGIN_ALL_ENTRIES)?


show recent comments
user name
2006-02-14 07:44:51
I must be missing something.  I added 
comments-recent=org.blojsom.plugin.comment.RecentCommentsPlu
gin to 
the plugin properties, added comments-recent to the end of
the chain 
for html, then added this test code to my template:

#foreach ($temp in $BLOJSOM_RECENT_COMMENTS)
     $temp.getComment()<br />
#end

But no entries show up on the page.

Any suggestions?



At 4:29 PM +1100 2/14/06, Cliffano Subagio wrote:
>Hi Ben,
>
>Don't forget to add comments-recent on the blog's
plugin chain.
>
>$BLOJSOM_RECENT_COMMENTS contains BlogComment objects,
check out the 
>available methods here
><http://blojsom.sourcefor
ge.net/javadoc/org/blojsom/blog/BlogComment.html>http://b
lojsom.sourceforge.net/javadoc/org/blojsom/blog/BlogComment.
html
>
>Cheers,
>Cliff.
>
>On 2/14/06, Ben Robbins <<mailto:infoactivemac.com>infoactivemac.com> wrote:
>
>Sounds like exactly what I need.  So just
double-checking, I would
>activate this by adding
>
>        
comments-recent=org.blojsom.plugin.comment.RecentCommentsPlu
gin
>
>then adding comments-recent to the mappings, then put
something like
>
>         #foreach ($entry in $BLOJSOM_RECENT_COMMENTS)
>            $entry.getTitle
>         #end
>
>in my template.
>
>How do I find out the variable names in the array (like
getTitle for
>BLOJSOM_PLUGIN_ALL_ENTRIES)?




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep
through log files
for problems?  Stop!  Download the new AJAX search engine
that makes
searching your log files as easy as surfing the  web. 
DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Blojsom-users mailing list
Blojsom-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )