I think that I am having a hard time getting my head around all of the pieces necessary for Planet Roller.

Here is what I have but I am seeing nothing on my front page blog.

I am guessing that something that I am doing is incorrect or off somewhere.

It may be that I should contact Covalent to work this out...want to be sure that I don't have anything just flat out wrong/incorrect in my configuration and understanding of how this works.

Scenario - blog1 will be the front page blog and will aggregate entries on other blogs on my site such as blog2 (CEO) and blog3 (CFO)

1. roller-custom.properties - pretty straightforward

planet.aggregator.enabled=true
planet.aggregator.cache.dir=/opt/SUNWappserver/domains/domain1/roller_data/cache
tasks.enabled=ScheduledEntriesTask,ResetHitCountsTask,TurnoverReferersTask,PingQueueTask,RefreshPlanetRollerTask,SyncWebsitesTask
rendering.siteModels=org.apache.roller.weblogger.ui.rendering.model.SiteModel,org.apache.roller.weblogger.ui.rendering.model.PlanetModel

2. planet-custom.properties - not sure if template.dir needs to be something specific (pre-populated area) or if it is used while Planet Roller is doing its thing

cache.dir=/opt/SUNWappserver/domains/domain1/roller_data/cache
output.dir=/opt/SUNWappserver/domains/domain1/roller_data/webapp
template.dir=/opt/SUNWappsserver/domains/domain1/roller_data/templates

# Specify database configuration type of 'jndi' or 'jdbc'
database.configurationType=jdbc

# For database configuration type 'jndi',this will be used
#database.jndi.name=jdbc/rollerdb

# For database configuration type of 'jdbc', you MUST override these
database.jdbc.driverClass=com.mysql.jdbc.Driver
database.jdbc.connectionURL=jdbc:mysql://localhost:3306/rollerdb
database.jdbc.username=roller
database.jdbc.password=fooblat

3. Restart web container, GlassFish in this example

4. Login to Roller as an admin and pick Server Administration > Configuration

Handle of weblog to serve as frontpage blog should be 'blog1' in this example
Enable aggregated site-wide frontpage should be checked
Absolute URL to site would be http://server:port/roller where 'server' and 'port' are dependent on the on the installation details for a given site

5. Planet Admin tab > Configuration
Absolute URL to Planet page would be http://server:port/roller/blog1 in this example

6. Planet Admin > Subscriptions
Newsfeed URL would be the Atom URL from the front page blog? (http://server:port/roller/blog1/feed/entries/rss)

7. Customize the template of the front page blog and add in something like this or use elements from the $planet model per the template guide:

#if (!$model.results)
                       ## 1) SITE-WIDE entries (the default)
##set($pager = $site.getWeblogEntriesPager($since, $maxResults))

                       ## 2) PLANET-entries
#set($pager = $planet.getAggregationPager($since, $maxResults))
                       ## The below pager code should work against either:

                       #if($pager.items.size() > 0)
                           #set($entryCount = $pager.items.size() - 1)
                           #set($startDate = $pager.items.get(0).pubTime)
#set($endDate = $entries.get($entryCount).pubTime)
                       #end

Now one snafu that I can see is the definition of $since and $maxResults. Where are these items defined/controlled? Do I need to place integer values in for these items as the template guide seems to suggest?

At this point I don't see anything on my front page blog in terms of aggregation.

Do any of these steps look like they are wrong/erroneous?




Reply via email to