On Apr 22, 2006, at 11:08 AM, Bryan Field-Elliot wrote:
The home page of a roller site is a great overview of recent activity
across all blogs on the site.
We have a requirement where a subset of our blogs belong to one
client,
and they want their own "recent posts" home page (at a different URL)
for their own group of blogs, but not all blogs on the site.
Can someone point me in the right direction (either with, or without,
needing to modify JSP code) to build this out?
It's possible that you could do something like this now like so:
- Enable Planet aggregator in your roller-custom.properties file
- Enable Planet page model in your roller-custom.properties file
- Create a subscription group in Planet containing the blogs you want
to include
- Create a new blog to serve as the home page for the group of blogs
- Some Velocity code to display an aggregation of your blogs in the
home page blog
For example, I use Planet and the Planet pagemodel to display my
del.icio.us link in my sidebar with this code. You could use similar
code to display an aggregation of blogs.
#set($entries = $pageModel.getPlanetAggregation("del.icio.us", 15))
#foreach($entry in $entries)
<p style="font-size:small">
<img src="/resources/roller/delicious.gif" alt="del.ico.us icon" />
<a href="$utilities.textToHTML($entry.permalink)">$entry.title</
a><br />
$utilities.textToHTML($entry.content)
</p>
#end
- Dave