You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@roller.apache.org by Bryan Field-Elliot <br...@strategoit.com> on 2006/04/22 17:08:14 UTC

Home page for group of blogs?

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?

Thank you,

Bryan


Re: Home page for group of blogs?

Posted by Oscar del Rio <de...@mie.utoronto.ca>.
Bryan Field-Elliot wrote:

> 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.

You could try the showRecentEntries macro in a new template page (e.g.
an "About" page).
I'm not sure in which versions of Roller the macro is available.
I'm using it in a 2.2rc (release candidate) build.

#showRecentEntries(20)


Re: Home page for group of blogs?

Posted by David M Johnson <Da...@Sun.COM>.
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