Login | Forgot password | Register
What is OpenID?
OpenID is an Internet-wide identity system that allows you to sign in to many websites with a single account.
With OpenID, your ID becomes a URL (e.g. http://username.myopenid.com/). You can get a free OpenID for example from myopenid.com.
For more information visit the official OpenID site.
Data Model Questions
SilverStripe Forums » Data Model Questions » RSS feed on DataObjects
|
Page:
1
|
Go to End | |
| Author | Topic: RSS feed on DataObjects | 488 Views |
-
RSS feed on DataObjects

25 March 2009 at 6:01am
Hi! The tutorial shows how to use the RSSFeed for Children of the site. I would like to have DataObjects as an RSS Feed. My Problem is, the RSSFeed needs to have a LINK but I'm not able to use $this->Link() for Objects. How can I a implement a Link method for my DataObjects to use the feed?
function init() {
RSSFeed::linkToFeed($this->Link() . "rss", "RSS feed of this blog");
parent::init();
}
function rss() {
$rss = new RSSFeed($this->MyDataObject(), $this->Link(), "My feed", "Example feed.", "Title", "Content", "Author");
$rss->outputToBrowser();
}Any idea?
-
Re: RSS feed on DataObjects

15 August 2009 at 4:58pm
Hey yea I would also like to do something like this, any ideas?
-
Re: RSS feed on DataObjects

17 August 2009 at 9:50pm
Hi,
I'm no expert but i think the link method in the data objects is used.
So if you create a custom Link method in your Data Object this will override the parent and will
also be used in the RSS feed. -
Re: RSS feed on DataObjects

17 August 2009 at 10:19pm
You're right, I figured this out yesterday so can confirm that it works
| 488 Views | ||
|
Page:
1
|
Go to Top |



