roller-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Odelya Glick" <ode...@jpost.com>
Subject RE: roller 4.0
Date Mon, 10 Dec 2007 10:46:22 GMT
It's fine.
I changed it to be:
org.apache.roller.ui.rendering.model.PageModel

-----Original Message-----
From: Odelya Glick [mailto:odelya@jpost.com] 
Sent: Monday, December 10, 2007 10:43 AM
To: user@roller.apache.org
Subject: RE: roller 4.0

Hi,

Well, I added it as you recommend to roller.properties file,
But I get an exception:
--- ROOT CAUSE ---
java.lang.ClassNotFoundException:
org.apache.roller.weblogger.ui.rendering.model.PageModel
        at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1362)
        at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1208)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

Why?

-----Original Message-----
From: Dave [mailto:snoopdave@gmail.com] 
Sent: Sunday, December 09, 2007 4:44 PM
To: user@roller.apache.org
Subject: Re: roller 4.0

On Dec 9, 2007 1:35 AM, Odelya Glick <odelya@jpost.com> wrote:
> Is there any chance that version 4.0 has the $site object available not
only
> in front page?

You can do this in both 3.1 and 4.0.

What you need to do is to add the SiteModel class to the list of
models that is loaded for normal pages and for entry preview. You can
do this by overriding both the rendering.pageModel and
rendering.PreviewModel properties in your roller-custom.properties
file.

Try adding these to your properties file:

rendering.pageModels=\
org.apache.roller.weblogger.ui.rendering.model.PageModel,\
org.apache.roller.weblogger.ui.rendering.model.ConfigModel,\
org.apache.roller.weblogger.ui.rendering.model.UtilitiesModel,\
org.apache.roller.weblogger.ui.rendering.model.URLModel,\
org.apache.roller.weblogger.ui.rendering.model.MessageModel,\
org.apache.roller.weblogger.ui.rendering.model.CalendarModel,\
org.apache.roller.weblogger.ui.rendering.model.MenuModel,\
org.apache.roller.weblogger.ui.rendering.model.SiteModel

rendering.previewModels=\
org.apache.roller.weblogger.ui.rendering.model.PreviewPageModel,\
org.apache.roller.weblogger.ui.rendering.model.ConfigModel,\
org.apache.roller.weblogger.ui.rendering.model.UtilitiesModel,\
org.apache.roller.weblogger.ui.rendering.model.PreviewURLModel,\
org.apache.roller.weblogger.ui.rendering.model.MessageModel,\
org.apache.roller.weblogger.ui.rendering.model.CalendarModel,\
org.apache.roller.weblogger.ui.rendering.model.MenuModel,\
org.apache.roller.weblogger.ui.rendering.model.SiteModel


By default we don't include the $site model in normal blogs because we
didn't want normal bloggers to have access to data from other
blogger's blogs. If you've got a more controlled environment & you
trust your bloggers or you have disabled template editing then this
should be pretty safe.

Hope that helps.

- Dave



 
 
****************************************************************************
********
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals & computer
viruses.
****************************************************************************
********







 
 
****************************************************************************
********
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals & computer
viruses.
****************************************************************************
********





Mime
View raw message