Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/heimrichhannot/contao-dynamicfeed-bundle
Generate dynamic neewsfeeds in contao.
https://github.com/heimrichhannot/contao-dynamicfeed-bundle
Last synced: about 1 month ago
JSON representation
Generate dynamic neewsfeeds in contao.
- Host: GitHub
- URL: https://github.com/heimrichhannot/contao-dynamicfeed-bundle
- Owner: heimrichhannot
- License: other
- Created: 2017-08-22T12:31:06.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-01-30T14:50:49.000Z (11 months ago)
- Last Synced: 2024-08-10T06:51:21.362Z (5 months ago)
- Language: PHP
- Homepage:
- Size: 38.1 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Contao dynamic feed bundle
Generates an dynamic feed for your news articles.
## Requires
* Contao 4.4
* PHP7## Usage
### Dynamic rss feed
The dynamic rss feed is based on feed sources and their channels. Feed sources can be categories, tags, etc. A channel can be a single categorie, a single tag, e.g.
#### Register a feed source
1. Your class must implement `FeedSourceInterface`
2. Create a service for your class and add the `hh.dynamicfeed.feed_source` tag.
3. Create a new feed in the Contao-Backend (News -> Create Feed), select dynamic feed and the corresponding feed source.```
// Example for codefog/tags-bundle
// services.ymlHeimrichHannot\CustomBundle\FeedSources\TagFeedSource:
tags: [hh.dynamicfeed.feed_source]
```The bundle will then add following routes for your feed source:
* `/share/[feedAlias|feedId]`
* `/share/[feedAlias|feedId]/[channelId|channelAlias]`
* `/share/[feedAlias|feedId]/source_channels` (list of available channels)