You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@roller.apache.org by Jean Vence <jv...@gmail.com> on 2006/06/23 17:14:01 UTC

Imbedding RSS feeds into Blog

Is there any built-in support for embedding an external RSS feed in a roller
blog. Basically, I would like to put an external RSS feed under the calendar
(not as a post). I was thinking that perhaps there was some kind of Macro I
could use.
Best
Jean

Re: Imbedding RSS feeds into Blog

Posted by David Levy <Da...@Sun.COM>.
Jean,

I have just tried

#showNewsfeed("http://del.icio.us/rss/DaveLevy" false 5 false)

in my side bar and it worked. You seem to have spelt it correctly and 
bracketed and quoted it OK.

It seems that the docs have gone from roller's site, but I used the 
Google cache for it, so if you're going to fix it putting the document 
back would be cool.

I tried this on Sun's internal roller site and am now struggling with 
the CSS to make it look right since the CSS classes have disappeared 
from my custom and the base css files.



Jean Vence wrote On 06/28/06 16:43,:

> Tried:
>
> #showNewsfeed("http://news.google.com/nwshp?hl=en&tab=wn&q=&output=rss"
> false 1 true)
>
> but I keep getting Unable to display feed error -
> nothing is showing up in the log files - I am using 2.1
>
> Any help would be greatly appreciated - basically I just want to 
> display an
> RSS feed below a calendar in my blog
>
>
>
> On 6/23/06, Dave Johnson <sn...@gmail.com> wrote:
>
>>
>> You could try the old #showNewsfeeds() macro. I haven't used it in
>> years, but it should work like this:
>>
>>    #showNewsfeed("http://example.com/index.rss" 20 false)
>>
>> That should show the last 20 entries from the feed at
>> http://example.com/index.rss and without the JavaScript expanding
>> folder stuff.
>>
>> - Dave
>>
>>
>>
>> On 6/23/06, Jean Vence <jv...@gmail.com> wrote:
>> > Is there any built-in support for embedding an external RSS feed in a
>> roller
>> > blog. Basically, I would like to put an external RSS feed under the
>> calendar
>> > (not as a post). I was thinking that perhaps there was some kind of
>> Macro I
>> > could use.
>> > Best
>> > Jean
>> >
>> >
>>
>

-- 
--
David

David Levy				mailto:david.levy@sun.com
					http://blogs.sun.com/DaveLevy
	
Sun Microsystems Ltd			+44 (0) 7710 360 922
Client Solutions Organisation 		+44 (0) 207 469 9908

Sun Proprietary/Confidential

Notice : This e-mail message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorised review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.



Re: Imbedding RSS feeds into Blog

Posted by Dave Johnson <sn...@gmail.com>.
The #showNewsfeeds() macro is disabled by default, you can enable it
in you roller-custom.properties file via:

    aggregator.enabled=true
    aggregator.cache.enabled=true

I tried that on my blog, but I found that #showNewsfeeds() doesn't
work anymore. I just filed a bug on it and perhaps I'll have time to
fix it in the next release.

Another approach to including a feed in your blog is to use the Planet
aggregator. If you want to try this you'll have to:

1) follow the instructions in the install and user guide to enable planet.


2) Use the planet page model in roller-custom.properties. Comment out
the normal page model and uncomment the planet page model like so:

# Page model implementation
#velocity.pagemodel.classname=org.apache.roller.ui.rendering.velocity.PageModel
# Experimental page model that allows user's access to Planet aggregations
velocity.pagemodel.classname=org.apache.roller.presentation.velocity.planet.PlanetPageModel

(and beware, that page model will be changing in 3.0)


3) Create a group with the subscription for the feed you want to
display in the Planet UI.


4) Include something like this in your blog template to display the
subscription group you created:

#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

(that's how I display my del.icio.us links on my blog)

Hope that helps.

- Dave

Re: Imbedding RSS feeds into Blog

Posted by Jean Vence <jv...@gmail.com>.
Tried:

#showNewsfeed("http://news.google.com/nwshp?hl=en&tab=wn&q=&output=rss"
false 1 true)

but I keep getting Unable to display feed error -
nothing is showing up in the log files - I am using 2.1

Any help would be greatly appreciated - basically I just want to display an
RSS feed below a calendar in my blog



On 6/23/06, Dave Johnson <sn...@gmail.com> wrote:
>
> You could try the old #showNewsfeeds() macro. I haven't used it in
> years, but it should work like this:
>
>    #showNewsfeed("http://example.com/index.rss" 20 false)
>
> That should show the last 20 entries from the feed at
> http://example.com/index.rss and without the JavaScript expanding
> folder stuff.
>
> - Dave
>
>
>
> On 6/23/06, Jean Vence <jv...@gmail.com> wrote:
> > Is there any built-in support for embedding an external RSS feed in a
> roller
> > blog. Basically, I would like to put an external RSS feed under the
> calendar
> > (not as a post). I was thinking that perhaps there was some kind of
> Macro I
> > could use.
> > Best
> > Jean
> >
> >
>

Re: Imbedding RSS feeds into Blog

Posted by Dave Johnson <sn...@gmail.com>.
You could try the old #showNewsfeeds() macro. I haven't used it in
years, but it should work like this:

   #showNewsfeed("http://example.com/index.rss" 20 false)

That should show the last 20 entries from the feed at
http://example.com/index.rss and without the JavaScript expanding
folder stuff.

- Dave



On 6/23/06, Jean Vence <jv...@gmail.com> wrote:
> Is there any built-in support for embedding an external RSS feed in a roller
> blog. Basically, I would like to put an external RSS feed under the calendar
> (not as a post). I was thinking that perhaps there was some kind of Macro I
> could use.
> Best
> Jean
>
>