Ok, i ensure that i have done these two things. Now i try to use it on my
frontpage as follows:
#set($mostCommented = $site.getMostCommentedWeblogs($since,
$maxResults))
<ul>
#foreach($blog in $mostCommented)
<li> $url.site/$blog.subjectNameShort
$blog.subjectNameShort | $blog.count</li>
#end
</ul>
it doesnt work. Why? The templateGuide i have already read.
-Eduard
Dave Johnson-8 wrote:
>
> 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
>
>
--
View this message in context:
http://www.nabble.com/getMostCommentedWeblogs-and-getMostCommentedWeblogEntries-tf3374055s12275.html#a9451436
Sent from the Roller - User mailing list archive at Nabble.com.