17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 3492 Views |
-
RSS aggregator

21 March 2007 at 1:16pm
We are in desperate need of an RSS aggregator that will agregate our two feeds (one form our PlanHQ blog and one from our PlanHQ advice area) into one.
In November last year, it looks like Sam put something in the support wiki about creating a new page type that does just that: http://doc.silverstripe.com/doku.php?id=rssaggregatingpage&s=rss
Has there been any progress on this? we are happy to pay to get it developed, but need it urgently
James started some code which looks like this, but doesn't work yet:
function rss() {
$rss = new RSSFeed($this->Children(), $this->Link(), "PlanHQ Blog", "", "Title", "Content", "Author");
$rss->outputToBrowser();
}
function CombinedList() {
return DataObject::get("SiteTree", "ParentID IN (`AdviceHolder`,`BlogHolder`)", "greatest(`AdviceEntry`.`Date`,`BlogEntry`.`Date`)");
}
function allrss() {
$rss = new RSSFeed($this->CombinedList(), $this->Link(), "PlanHQ - Business Planning Advice and News", "", "Title", "Content", "Author");
$rss->outputToBrowser();
} -
Re: RSS aggregator

21 March 2007 at 3:01pm
The piece of CombinedList that says "ParentID IN (`AdviceHolder`,`BlogHolder`)" is wrong.
ParentID will be a number. You will need to make a list of all the ID #s of the advice holder pages.
$holders = DataObject::get("SiteTree", "ClassName IN ('AdviceHolder', 'BlogHolder')");
foreach($holders as $holder) $holderIDs[] = $holder->ID;
$CSV_holderIDs = implode(", ", $holderIDs);return DataObject::get("SiteTree", "ParentID IN ($CSV_holderIDs)", "greatest(`AdviceEntry`.`Date`,`BlogEntry`.`Date`)");
-
Re: RSS aggregator

22 March 2007 at 5:40am
.. or you could just write a Yahoo! Pipe and feed that into it?
-
Re: RSS aggregator

17 May 2007 at 9:34pm
I too was playing with some code for use with the UP.org.nz site, didn't get too far, but it's a much requested feature. Planets ;)
-
Re: RSS aggregator

31 March 2008 at 4:05am
Has this come any further? Which is the easiest way to include rss feeds to a ss-site? I've tried Yahoo's pipes but I can't figure out how to do? It works just fine on a plain html-site but it won't show up on my ss-site...
| 3492 Views | ||
|
Page:
1
|
Go to Top |





