{"id":18382418,"url":"https://github.com/ntd/silverstripe-feedreader","last_synced_at":"2025-04-06T23:31:37.954Z","repository":{"id":12996057,"uuid":"15675143","full_name":"ntd/silverstripe-feedreader","owner":"ntd","description":"A new page type that can access an external feed","archived":false,"fork":false,"pushed_at":"2023-09-07T13:47:42.000Z","size":46,"stargazers_count":4,"open_issues_count":2,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-22T09:02:16.662Z","etag":null,"topics":["atom","composer","feed-reader","module","rss","silverstripe","silverstripe-4","silverstripe-module"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ntd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":"code-of-conduct.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-01-06T13:52:44.000Z","updated_at":"2023-09-08T04:33:28.000Z","dependencies_parsed_at":"2022-09-11T04:51:33.587Z","dependency_job_id":null,"html_url":"https://github.com/ntd/silverstripe-feedreader","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntd%2Fsilverstripe-feedreader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntd%2Fsilverstripe-feedreader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntd%2Fsilverstripe-feedreader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntd%2Fsilverstripe-feedreader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ntd","download_url":"https://codeload.github.com/ntd/silverstripe-feedreader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247569123,"owners_count":20959758,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["atom","composer","feed-reader","module","rss","silverstripe","silverstripe-4","silverstripe-module"],"created_at":"2024-11-06T01:05:34.421Z","updated_at":"2025-04-06T23:31:32.944Z","avatar_url":"https://github.com/ntd.png","language":"PHP","readme":"silverstripe-feedreader\n=======================\n[![License](https://poser.pugx.org/entidi/feedreader/license)](https://packagist.org/packages/entidi/feedreader)\n[![Build Status](https://travis-ci.org/ntd/silverstripe-feedreader.svg?branch=master)](https://travis-ci.org/ntd/silverstripe-feedreader)\n[![Code Quality](https://scrutinizer-ci.com/g/ntd/silverstripe-feedreader/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/ntd/silverstripe-feedreader/?branch=master)\n[![Latest Stable Version](https://poser.pugx.org/entidi/feedreader/v/stable)](https://packagist.org/packages/entidi/feedreader)\n\nThe [silverstripe-feedreader](http://silverstripe.entidi.com/) module\nimplements a new page type (*FeedReaderPage*) that can access the data\ncontained in an external RSS 2.0 or ATOM 1.0 feed. The feed format is\nautomatically deduced from its content, that is if the `//channel/item`\n[XPath](http://www.w3.org/TR/xpath/) expression resolves to a non-emtpy\nlist it is considered an RSS2 feed, otherwise it is considered ATOM1,\nand the `//feed/entry` expression will be used instead.\n\nThe main developement is done in `dev`: that is merged into `master` when\nstable enough. When this happens, an appropriate `2.*` release is tagged.\n`dev` and `master` branches, together with any `2.*` release, are compatibles\nwith SilverStripe 4. For SilverStripe 3 you should take a look at the `ss3`\nbranch and `1.*` releases.\n\nInstallation\n------------\n\nWith composer:\n\n    composer require entidi/feedreader\n\nWithout composer, download [the tarball](https://github.com/ntd/silverstripe-feedreader/releases)\nand unpack it under the base directory. This method is not really tested,\nso it can be possible you will need to tweak something.\n\nUsage\n-----\n\nThe default template (`templates/eNTiDi/FeedReader/Layout/FeedReaderPage.ss`)\nis compatible with [silverstrap](http://dev.entidi.com/p/silverstrap/) ^4.0\nbut it can be easily overriden by redefining the `FeedReaderPage.ss` file in\nyour own theme with higher priority.\n\nTo provide access to the latest news, you can define a function similar\nto the following:\n\n    public function LatestNews()\n    {\n        $news = DataObject::get_one('eNTiDi\\FeedReader\\FeedReaderPage');\n        return $news ? $news-\u003eItems(1)-\u003efirst() : null;\n    }\n\nThen you can enhance your feed page with a template snippet, e.g.:\n\n    \u003c% with $LatestNews %\u003e\n    \u003ch2\u003eLatest news\u003c/h2\u003e\n    \u003csection\u003e\n        \u003cp\u003e$Date.Date: $Summary.XML\u003c/p\u003e\n        \u003ca href=\"$Link.ATT\"\u003eMore ...\u003c/a\u003e\n    \u003c/section\u003e\n    \u003c% end_with %\u003e\n\nSupport\n-------\n\nThis project has been developed by [ntd](mailto:ntd@entidi.it). Its\n[home page](http://silverstripe.entidi.com/) is shared by other\n[SilverStripe](http://www.silverstripe.org/) modules and themes.\n\nTo check out the code, report issues or propose enhancements, go to the\n[dedicated tracker](http://dev.entidi.com/p/silverstripe-feedreader).\nAlternatively, you can do the same things by leveraging the official\n[github repository](https://github.com/ntd/silverstripe-feedreader).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fntd%2Fsilverstripe-feedreader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fntd%2Fsilverstripe-feedreader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fntd%2Fsilverstripe-feedreader/lists"}