roller-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave <snoopd...@gmail.com>
Subject Re: How do I list all weblogs when not in an aggregator page
Date Sun, 16 Mar 2008 19:40:03 GMT
By default, we only add the site model $site to the aggregated front-page blog.

If you would like to make it available in another blog, then login as
a global admin user and edit that blog's settings. At the bottom of
the page you'll see a text box labelled "Comma-separated list of
custom page model classes to be loaded for this weblog". Add the
classname of the site model there and then save settings.

   org.apache.roller.weblogger.ui.rendering.model.SiteModel

That will add the $site model to one blog.

To add the side model to all blogs, then override the four
rendering.xxxModel macros and add the site model there. You could do
that by adding the following to your roller-custom.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

# Set of models to be made available for weblog feed rendering
rendering.feedModels=\
org.apache.roller.weblogger.ui.rendering.model.FeedModel,\
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.SiteModel

# Set of models to be made available for weblog search rendering
rendering.searchModels=\
org.apache.roller.weblogger.ui.rendering.model.SearchResultsModel,\
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

# Set of models to be made available for weblog page *preview* rendering
# NOTE: this *does* have some differences between the pageModels
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

Hope that helps,
- Dave




On Thu, Mar 13, 2008 at 5:51 AM, richiebaby <rich.johns@logica.com> wrote:
>
>  Good Morning,
>
>  I have a Roller development question.
>
>  I have developed a blog site using the aggregator front page. On the front
>  page I can easily list all of the available weblogs:
>
>       #set($newblogs = $site.getNewWeblogs(365, 10))
>       <ul>
>          #foreach($blog in $newblogs)
>             <li>
>                $blog.name
>             </li>
>             #end
>          #end
>       </ul>
>
>  My question is: How can I do the same from within one of the weblogs? I
>  would like to have a list of all the weblogs within every weblog, I can't
>  seem to do it in the same way?
>
>  Thank you.
>
>
>  --
>  View this message in context: http://www.nabble.com/How-do-I-list-all-weblogs-when-not-in-an-aggregator-page-tp16024132s12275p16024132.html
>  Sent from the Roller - Dev mailing list archive at Nabble.com.
>
>

Mime
View raw message