https://github.com/bolt/bolt-extension-rssfeed
RSS feed publisher for Bolt
https://github.com/bolt/bolt-extension-rssfeed
bolt-extension
Last synced: 11 months ago
JSON representation
RSS feed publisher for Bolt
- Host: GitHub
- URL: https://github.com/bolt/bolt-extension-rssfeed
- Owner: bolt
- Created: 2014-08-25T15:02:22.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2020-05-26T10:05:14.000Z (about 6 years ago)
- Last Synced: 2025-04-30T19:48:13.703Z (about 1 year ago)
- Topics: bolt-extension
- Language: PHP
- Homepage: https://bolt.cm/
- Size: 90.8 KB
- Stars: 5
- Watchers: 3
- Forks: 9
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
RSS, JSON and Atom feed publisher
=================================
Creates sitewide and/or contenttype specific feeds for your Bolt website.
After installation, a configuration file will be created as
`app/config/extensions/rssfeed.bolt.yml`, where you can define how the various
feeds should be created. Depending on your set up in the extension's
configuration, you can access RSS feeds either by sitewide or contenttype
specific URLs:
- **Site wide**: `/rss/feed.{extension}`
- **Contenttype**: `/{contenttypeslug}/rss/feed.{extension}`
Where:
- `{contenttypeslug}` is the slug of your contenttype.
- `{extension}` is either 'xml' or 'rss'.
See the comments in your `rssfeed.bolt.yml` for more details.
To allow RSS and other Feed aggregators like Feedly to easily find your site's
feed, you should add an autodiscovery link to the ``-section of your site.
Do this by simply setting `autodiscovery: true` in the configuration file.
Configuring routing
-------------------
This extension automatically sets up routing to match the URL patterns mentioned above (like `/rss/feed.xml`). If you have need of a specific URL to publish the feed on, you must add the route to your `routing.yml` file. For example:
```
my_rss_feed:
path: /news.xml
defaults:
_controller: controller.rssfeed:feed
contenttypeslug: news
```
Taxonomy filters
----------------
You can apply a taxonomy filter as a query string to your feeds, like so:
```
?filter[taxonomyname]=slug
```
For example:
```
?filter[categories]=movies
?filter[groups]=meta
?filter[tags]=cinema
```
This only works for at most one filter and only for taxonomies.