On 3/9/07, ede <[EMAIL PROTECTED]> wrote:
can you give me one examlpe to use the macros getMostCommentedWeblogs(int
sinceDays, int max) and
getMostCommentedWeblogEntries(List cats, int sinceDays, int max). I try it 3
days and it doesnt works. I cant find a good manual or a example.

The only Thing that i found is this:
#set($commentedBlogs = $sitePageModel.getMostCommentedWeblogs(30, 0, 20))
<ul>
#foreach($blog in $commentedBlogs)
<li> $baseURL/page/$blog.subjectNameLong $blog.subjectNameLong  |
$blog.count</li>
#end

Two things:

1) Try using the name $site instead of $sitePageModel. And see the
Template Guide for more details:
http://people.apache.org/~snoopdave/roller30-template-guide.pdf

2) make sure "enable aggregated front-page" is turn on in the Server
config. The $site model only works the site-wide aggregated blog.

- Dave

Reply via email to