Find the Exponential Software extensions you want
UNIX name | Owner | Status |
---|---|---|
ezrssfeed | 7x | stable |
Version | Compatible with |
---|---|
N/A | N/A |
The eZRSSFeed extension contains a configurable rssfeed toolbar for displaying rssfeeds on your site. It also contains a rssfeed template operator for fetching rssfeeds into a template
eZ RSS Feed is licensed under the GNU General Public License.
The complete license agreement is included in the LICENSE file.
eZ RSS Feed is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License or at your
option a later version.
eZ RSS Feed is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
The GNU GPL gives you the right to use, modify and redistribute
eZ RSS Feed under certain conditions. The GNU GPL license
is distributed with the software, see the file LICENSE.
It is also available at http://www.gnu.org/licenses/gpl.txt
You should have received a copy of the GNU General Public License
along with eZ RSS Feed in in the LICENSE file.
If not, see http://www.gnu.org/licenses/.
Using eZ RSS Feed under the terms of the GNU GPL is free (as in freedom).
For more information or questions please contact: license@brookinsconsulting.com
The following requirements exists for using eZ RSS Feed extension:
As an example of usage there is a toolbar available
This solution provides the following eztpl operator:
This solution was created to provide a simple way to fetch and display rss feed content within your own website templates.
Run the following command from your project root to install the extension:
```bash
$ composer require brookinsconsulting/ezrssfeed dev-master;```
Extract the ezrssfeed.tar.gz in your eZ Publish Legacy extension directory.
Either in adminitration interface:
Go to "Setup"
Go to "Extensions"
Check the checkbox beside "ezrssfeed"
Click "Activate"
Add the following to your settings/override/site.ini.append.php file:
[ExtensionSettings]
ActiveExtensions[]=ezrssfeed
The extension can be used in two ways. Either as a toolbar or as an template operator. It can also be used as an example of how to create a toolbar.
As an example of usage there is a toolbar available. Once the extension has been installed and activated there will be a "rssfeed" toolbar available in the administration interface.
The toolbar makes it easy to add rssfeeds to your page. The settings are self explaining.
For more flexibility the operator can be used in your templates. The ezrss operator takes at a minimum one argument, the url of the RSS-feed.
The available parameters are:
{let slashdot=ezrssfeed("http://slashdot.org/index.rss", 4, true(), false()}
This will load the feed from the given url, return the 4 first items, with channeldata, without imagedata, and store this in the variable slashdot.
Making sure the ezrssfeed is inside a {cache-block} is a very good idea, this will increase the performance of the site, and you won't download the feed everytime someone loads you page.
Some sites may ban you for a period of time if you request the feeds to often.
A complete example using the operator:
{cache-block expiry=300}
{let feed=ezrssfeed("http://slashdot.org/index.rss", 10, true(), true() )}

{$feed.channel.title.content}
{section var=theitem loop=$feed.items}
- {$theitem.title.content}
{$theitem.description.content|shorten(80)}
{/section}
{/let}
{/cache-block}
The cacheblock has expiry of 300 seconds, which means the feed will be regenerated every 5 minutes.
If you want to see the data eZRSS returns put the following in a template:
{let freshmeat_data=ezrssfeed("http://download.freshmeat.net/backend/fm-releases-unix.xml", 0, true(), true() )}
{$freshmeat_data|attribute(show)}
{/let}
Here we call ezrssfeed with a rssfeed url as a argument. The number of items is set to 0 which means every item in the feed.
And we download both the channeldata and it will then open the url, parse it and return the data. The attribute(show) displays all available data.
The solution is configured to work once properly installed and configured.
Some problems are more common than others. The most common ones are listed in the the doc/FAQ.md
If you have find any problems not handled by this document or the FAQ you can contact Brookins Consulting through the support system: http://brookinsconsulting.com/contact
v1.2 (2017-10-02)
v1.1 ( 2006-08-21 )
v1.0 ( 2005-02-13 )