RSS Aggregator Links

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
diroddi
Regular
Posts: 21
Joined: Sun Jun 10, 2007 11:59 pm

RSS Aggregator Links

Post by diroddi »

When I use RSS Aggregator, it doesnt show the full article just a portion. Also, there is no link to the full article.

How can I get the full article, or at least have a link to the full article like the sidebar plugin RemoteRSS?

Thanks
wwday3
Regular
Posts: 12
Joined: Sat Jun 09, 2007 3:17 am

Ditto

Post by wwday3 »

I will echo diroddi's question, and add one of my own.

When adding the RSS aggregator feeds there are input fields labeled Feed Name, a "Feed URI / Homepage URI", and then of course the Categories. The "Feed URI / Homepage URI" appears to have two input fields stacked above each other. What is the purpose of the "Homepage URI" field (which I assume is the second input field)?

Are all of these various plugins documented somewhere?

Thanks,
Wally
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Ditto

Post by garvinhicking »

Hi!

Oh, I thought I had replied to this topic.

Please check the theme-patch.diff file in the aggregators plugin directory. It tells you what you need to insert into your entries.tpl template to show the original feeds contnet.

The aggregator can only store what is offered in the RSS posting. If the RSS feed you import has no full tesxt, the aggregator can't fetch it elsewhere.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
wwday3
Regular
Posts: 12
Joined: Sat Jun 09, 2007 3:17 am

I'm afraid I'm a bit confused...

Post by wwday3 »

First, since I downloaded the aggregator just an hour before I posted, do I still have to do all this .diff file stuff? Wouldn't Spartacus have downloaded the most recent version of the plug-in?

Now, the feed itself. As a test, I grabbed the Odd News feed from Yahoo, just to see what it looked like. The RSS URL looks like this

http://rss.news.yahoo.com/rss/oddlyenough

When I pull it up in my browser/reader, I see the title/URL and a short paragraph. Hovering over the title/URL shows me

http://us.rd.yahoo.com/dailynews/rss/od ... es_in_baby

Clicking on this title/URL takes me to the full story (as I would expect).

After I add it to the aggregator, and view the blog, I see basically the same thing, but this time clicking on the title/URL takes me to a single post page with the exact same paragraph in it. The second part of the above URL (the part past the '*') is nowhere to be found. I assume that's the part of the URL used by "Read More". Since I have no idea what that URL is before the aggregator aggregates, how is this supposed to be resolved?

Thanks,
Wally
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: I'm afraid I'm a bit confused...

Post by garvinhicking »

Hi!

Yes, because the .diff file applies to your TEMPLATE and is not related to the plugin itself. It adds extra functionality to a template file, so you need to patch that into your template. The plugin cannot do that for you because there are no placeholders inside the template so that the plugin could emit the required variables there.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
wwday3
Regular
Posts: 12
Joined: Sat Jun 09, 2007 3:17 am

Thanks Garvin

Post by wwday3 »

I'm still not used to thinking in Serendipity terms.

Is there one template that's better than others for this? Or are they all pretty much the same?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Thanks Garvin

Post by garvinhicking »

Hi!

No, you can apply that patch (MANUALLY!!!) to any template you like. Actually you simply only need to insert

Code: Select all

{$entry.properties.ep_aggregator_feedname}
<a href="{$entry.properties.ep_aggregator_articleurl}">Read Article</a>
in your entries.tpl template file anywhere you like (but within the {foreach... item="entry"} loop).

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
diroddi
Regular
Posts: 21
Joined: Sun Jun 10, 2007 11:59 pm

entries.tpl

Post by diroddi »

Thanks for the help, that gave me a 'Read Article' link. I tried with coffee cup, although it doesnt look like all themes have an entries.tpl file, like Joshua-Nino3. How would I do this without an entries.tpl file?

Thanks again.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: entries.tpl

Post by garvinhicking »

Hi!

In that case you just copy the 'entries.tpl' from the default or carl_contest folders into your theme directory and modify it there.

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply