Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Customising the CMS /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

RssFeed: change link field


Go to End


1047 Views

Avatar
bebabeba

Community Member, 193 Posts

23 December 2010 at 12:22am

Hi!
I need ti change default link of RssFeed.
I create a function that ask data to external db. so at the and of my function have:

function query_ext() {
......query thak extract data ....
$doSet = new DataObjectSet();
while (...){
$result = array(
'Title'=> $titolo,
'Abstract'=> $abstract,
'My_Link'=> $my_link, );
$doSet->push(new ArrayData($result));}
return $doSet;
}

and I wrote this in my controller:

function rss() {

$rss = new RSSFeed($this->query_ext(), 'My_Link', "I Feed RSS", "My feed are:", "Title", "Abstract", "Author");
$rss->outputToBrowser();
}

In my rss page I see title and abstract but not link. can you help me to find error?