2017 © Pedro Peláez
 

silverstripe-vendormodule feedreader

A new page type that can access the data of an external feed

image

entidi/feedreader

A new page type that can access the data of an external feed

  • Monday, December 25, 2017
  • by ntd
  • Repository
  • 2 Watchers
  • 3 Stars
  • 54 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 8 Versions
  • 2 % Grown

The README.md

silverstripe-feedreader

License Build Status Code Quality Latest Stable Version, (*1)

The silverstripe-feedreader module implements a new page type (FeedReaderPage) that can access the data contained in an external RSS 2.0 or ATOM 1.0 feed. The feed format is automatically deduced from its content, that is if the //channel/item XPath expression resolves to a non-emtpy list it is considered an RSS2 feed, otherwise it is considered ATOM1, and the //feed/entry expression will be used instead., (*2)

The main developement is done in dev: that is merged into master when stable enough. When this happens, an appropriate 2.* release is tagged. dev and master branches, together with any 2.* release, are compatibles with SilverStripe 4. For SilverStripe 3 you should take a look at the ss3 branch and 1.* releases., (*3)

Installation

With composer:, (*4)

composer require entidi/feedreader

Without composer, download the tarball and unpack it under the base directory. This method is not really tested, so it can be possible you will need to tweak something., (*5)

Usage

The default template (templates/eNTiDi/FeedReader/Layout/FeedReaderPage.ss) is compatible with silverstrap ^4.0 but it can be easily overriden by redefining the FeedReaderPage.ss file in your own theme with higher priority., (*6)

To provide access to the latest news, you can define a function similar to the following:, (*7)

public function LatestNews()
{
    $news = DataObject::get_one('eNTiDi\FeedReader\FeedReaderPage');
    return $news ? $news->Items(1)->first() : null;
}

Then you can enhance your feed page with a template snippet, e.g.:, (*8)

<% with $LatestNews %>
<h2>Latest news</h2>
<section>
    <p>$Date.Date: $Summary.XML</p>
    <a href="$Link.ATT">More ...</a>
</section>
<% end_with %>

Support

This project has been developed by ntd. Its home page is shared by other SilverStripe modules and themes., (*9)

To check out the code, report issues or propose enhancements, go to the dedicated tracker. Alternatively, you can do the same things by leveraging the official github repository., (*10)

The Versions

25/12 2017

dev-dev

dev-dev http://silverstripe.entidi.com/

A new page type that can access the data of an external feed

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

atom feed rss page silverstripe consumer feedreader

25/12 2017

dev-scrutinizer-patch-1

dev-scrutinizer-patch-1 http://silverstripe.entidi.com/

A new page type that can access the data of an external feed

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

atom feed rss page silverstripe feedreader

24/12 2017

dev-master

9999999-dev http://silverstripe.entidi.com/

A new page type that can access the data of an external feed

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

atom feed rss page silverstripe consumer feedreader

24/12 2017

2.0.0

2.0.0.0 http://silverstripe.entidi.com/

A new page type that can access the data of an external feed

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

atom feed rss page silverstripe feedreader

24/12 2017

dev-ss3

dev-ss3

Provide a new page that can access the data of an external feed

  Sources   Download

BSD-2-Clause

The Requires

 

atom feed rss client silverstripe feedreader

23/02 2014

1.0.2

1.0.2.0

Provide a new page that can access the data of an external feed

  Sources   Download

BSD-2-Clause

The Requires

 

atom feed rss client silverstripe feedreader

22/02 2014

1.0.1

1.0.1.0

Provide a new page that can access the data of an external feed

  Sources   Download

BSD-2-Clause

The Requires

 

atom feed rss client silverstripe feedreader

06/01 2014

1.0.0

1.0.0.0

Provide a new page that can access the data of an external feed

  Sources   Download

BSD-2-Clause

The Requires

 

atom feed rss client silverstripe feedreader