punktde/fusion-feed

Last activity 16 days ago
  • 1
  • 999
composer require punktde/fusion-feed

A rss feed renderer for Fusion

1.0.1

A rss feed renderer for Fusion

Version
1.0.1
Type
neos-package
Release Date
08.07.2021 06:05:52
Source
git
Distribution
zip
Requires
Requires (dev)
None
Suggest
None
Provides
None
Conflicts
None
Replaces
None
MIT 4f27a176d691f6a9ee673620754a62b8a5ea63fe

PunktDe.FusionFeed

Latest Stable Version Total Downloads License

Render RSS / Atom feeds using Fusion prototypes.

The Feed is accessed using a route with the alternative format "feed".

Example

Given you have a blog and a blog listing document type named Vendor.Site:Document.BlogListing, just add a prototype with the name Vendor.Site:Document.BlogListing.Feed and the following Fusion code:

prototype(Vendor.Site:Document.BlogListing.Feed) < prototype(PunktDe.FusionFeed:Feed) {

    channel {
         title = ${q(documentNode).property('title')}
 
         items = Neos.Fusion:DataStructure {
             item1 = PunktDe.FusionFeed:Item {
                 title = 'Test Document 1'
                 url = 'https://domain/path/to/your/article.html'
             }
 
             item2 = PunktDe.FusionFeed:Item {
                 title = 'Test Document 2'
                 url = 'https://domain/path/to/your/article2.html'
             }
         }
     }
 }

Internally the php-rss-writer library is used. Have a look at their exmaple for a full list of available properties.

Installation

composer require punktde/fusion-feed
The content of the readme is provided by Github
The same vendor provides 32 package(s).