You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@roller.apache.org by "Matthew P. Schmidt" <ma...@dzone.com> on 2007/07/13 00:51:50 UTC
Modified Frontpage data model
Hi guys. At JRoller we had a custom frontpage data model that fetched
only the entries in a certain set of categories. This was a hack and
required us to override too much code. Is there a cleaner way for us to
replace the entry list coming to the frontpage theme (we're building a
new one anyway)?
Thanks,
Matt
Problem telling roller to use custom FileManager
Posted by "Matthew P. Schmidt" <ma...@dzone.com>.
Hi guys. We're in the middle of trying to replace the stock
FileManagerImpl with our own implementation and there are two issues.
First, getRealPath is private, which if it wasn't, we could just
subclass FileManagerImpl and change that code, since its private, it
looks like we need to copy nearly all the code. Second, it doesn't
appear that the property in roller-custom.properties:
persistence.filemanager.classname=org.apache.roller.business.FileManagerImpl
is actually doing anything :) Is this the right property to override?
We're running 3.1 right now on Tomcat 6.
-Matt
Allen Gilliland wrote:
> Sure, you can populate the page with whatever you want.
>
> I would check out the PageModel and SiteModel classes and look at the
> methods those provide. Those both provide a handful of ways to get
> collections of entries that you could use to display on your frontpage.
>
> Alternatively, the rendering process is very pluggable, so you can
> create your own model classes if you want and those classes can
> contain access to anything at all. You could use them to pull data
> from Roller that isn't usually exposed, you could pull data from
> custom tables in your database if you need to, or you could pull data
> from web services or anywhere else you want.
>
> -- Allen
>
>
> Matthew P. Schmidt wrote:
>> Hi guys. At JRoller we had a custom frontpage data model that
>> fetched only the entries in a certain set of categories. This was a
>> hack and required us to override too much code. Is there a cleaner
>> way for us to replace the entry list coming to the frontpage theme
>> (we're building a new one anyway)?
>> Thanks,
>> Matt
>>
Re: Modified Frontpage data model
Posted by Allen Gilliland <al...@sun.com>.
Sure, you can populate the page with whatever you want.
I would check out the PageModel and SiteModel classes and look at the
methods those provide. Those both provide a handful of ways to get
collections of entries that you could use to display on your frontpage.
Alternatively, the rendering process is very pluggable, so you can
create your own model classes if you want and those classes can contain
access to anything at all. You could use them to pull data from Roller
that isn't usually exposed, you could pull data from custom tables in
your database if you need to, or you could pull data from web services
or anywhere else you want.
-- Allen
Matthew P. Schmidt wrote:
> Hi guys. At JRoller we had a custom frontpage data model that fetched
> only the entries in a certain set of categories. This was a hack and
> required us to override too much code. Is there a cleaner way for us to
> replace the entry list coming to the frontpage theme (we're building a
> new one anyway)?
> Thanks,
> Matt
>