Jump to:

5513 Posts in 1732 Topics by 1218 members

Customising the CMS

SilverStripe Forums » Customising the CMS » RssFeed: change link field

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

Page: 1
Go to End
Author Topic: 600 Views
  • bebabeba
    Avatar
    Community Member
    192 Posts

    RssFeed: change link field Link to this post

    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?

    600 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.