Metadata

Distro Index Owner:
eea
Home Page:
Products.PloneRSSPortlet
License
GPL
Version:
0.1
Last updated:
2012-11-19
Keywords:
EEA PloneRSSPortlet

Products.PloneRSSPortlet

Files

Indexes

PloneRSSPortlet portlet for EEA

PloneRSSPortlet

This is an extraction of RSSPortlet from PlonePortlets, you can use it for it self but not as elegant as with PlonePortlets though.

Authors

(The guy who did all the hard work and wrote the original version for PlonePortlets) Dorneles Treméa, Plone Solutions

(those who copied it from PlonePortlets :) Sasha Vincic , Lovely Systems Tom Kapanka, Lovely Systems

Usage

Install it with quickinstaller. Create one or more RSSFeedRecipes and publish them Add here/portlet_all/macros/portlet to right_slots or left_slots in portal Properties tab (ZMI)

Advanced usage

portlet_all searches for all published RSSFeedRecipes and displays them ordered by the creation date. If you want another ordering, customize portlet_all and change sort_on index or use the following template:

<div metal:define-macro="portlet">
<tal:rss tal:define="feed nocall:here/feed1">
<metal:feed use-macro="here/portlet_rss/macros/portlet" />

System Message: WARNING/2 (<string>, line 30)

Definition list ends without a blank line; unexpected unindent.

</tal:rss> <tal:rss tal:define="feed nocall:here/feed2">

System Message: ERROR/3 (<string>, line 32)

Unexpected indentation.
<metal:feed use-macro="here/portlet_rss/macros/portlet" />

System Message: WARNING/2 (<string>, line 33)

Block quote ends without a blank line; unexpected unindent.

</tal:rss>

System Message: WARNING/2 (<string>, line 34)

Definition list ends without a blank line; unexpected unindent.

</div>

Change feed1 and feed2 to your RSSFeedRecipe ids.

Updating the feeds

There is external method updateAllFeeds in Extensions/toolbox.py. Call this method from crontab or use PloneMaintentance or another "cron-like" scripting tool. This method updates only published RSSFeedRecipes by default.

Todo

make portlet_all get feeds from one folder.

Changelog

0.1 - (2011-03-02)

  • Change: cleaned up tests and ensured they passed [ichimdav]
  • Change: eggified product [ichimdav #2931]