On Jan 31, 2008 5:33 AM, Greg Huber <[EMAIL PROTECTED]> wrote:
> Hello,
>
> In theme frontpage _websiteprofile.vm
>
> the entry:
>
> #set($entriesPager = $site.getWeblogEntriesPager($profileWeblog, 90, 5))
>
> think is trying to call
>
> SiteModel
>
> public Pager getWeblogEntriesPager(Weblog queryWeblog, int sinceDays, int
> length) {..}
>
> but $profileWeblog is a WeblogWrapper, so does not work as expected.
>
> Is this the right place for these?
That's a real live bug. The methods in SiteModel should accept
WeblogWrapper parameters or possibly weblog handles, because templates
should not use the POJOs directly.
Here's the bug report:
http://opensource.atlassian.com/projects/roller/browse/ROL-1665
You can work around this problem by passing in the POJO, get it like this
$profileWeblog.getPojo()
- Dave