List Info

Thread: BLOJSOM_RECENT_COMMENTS - Part II




BLOJSOM_RECENT_COMMENTS - Part II
user name
2006-10-24 02:15:26
Odd. The default value if not specified is 5. How many comments do you see?


On 10/23/06 10:03 PM, "Milos Topic"; <topicmmail.montclair.edu>; wrote:

With great help from a fellow blojsom user (Ben) I finally got the recent comments to display. However the following code in html.vm file displays ALL comments, not just the most recent 5 as I have specified in the blog.properties file (plugin-recent-comments-count=5).
   ; &nbsp; &nbsp; &nbsp; 
 &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; #foreach ($comment in $BLOJSOM_RECENT_COMMENTS)
 ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;  <a href=";$comment.getAuthorURL()">;$comment.getAuthor()&lt;/a> on
 &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp;<a ref="$comment.getBlogEntry().getLink()&page=comments&quot;>$comment.getBlogEntry().getTitle()</a><br/>
&nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;#end
Any ides on how to “force” it to display the X number of comments (in this case 5)?
 ;
Thanks,
 
Milos
-
--


"Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.&quot; - Albert Einstein.



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&;kid=120709&bid=263057&dat=121642

_______________________________________________
Blojsom-users mailing list
Blojsom-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-users


--
David Czarnecki

http://www.blojsom.com/blog/ | http://blojsom.sf.net
[1]

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