templates don't actually have the ability to directly call into the
backend manager classes, instead the calls first go through a model
class. you need to be looking for that method in the SiteModel class,
that will show you what is happening when you make the call in your
template.
-- Allen
Odelya YomTov-Glick wrote:
Hi,
When I try to use the method as Dave wrote to me like this:
#set ($theEntries = $site.getMostCommentedWeblogEntries(20, 100))
#foreach($entryStatCount in $theEntries)
$entryStatCount.subjectNameLong
$entryStatCount.subjectNameShort
#end
Nothing returns.
I looked in the source code, and saw that actually WeblogManager expects to
use the method with different parameters!
**
* Get weblog enties ordered by descending number of comments.
* @param website Weblog or null to get for all weblogs.
* @param startDate Start date or null for no start date.
* @param endDate End date or null for no end date.
* @param offset Offset into results for paging
* @param length Max comments to return (or -1 for no limit)
* @returns List of WeblogEntryData objects.
*/
public List getMostCommentedWeblogEntries(
Weblog website,
Date startDate,
Date endDate,
int offset,
int length)
throws WebloggerException;
what's the right way to use it?
Thanks
Odelya YomTov - Glick