You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@roller.apache.org by Greg Huber <Gr...@ricoh.co.uk> on 2008/01/31 11:33:31 UTC
theme frontpage _websiteprofile.vm 4.1
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?
Cheers Greg
Re: theme frontpage _websiteprofile.vm 4.1
Posted by Dave <sn...@gmail.com>.
On Jan 31, 2008 5:33 AM, Greg Huber <Gr...@ricoh.co.uk> 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