Integrating feedfeeder

by Christian Ledermann last modified Dec 30, 2008 05:50 PM
Integrate external news with the feedfeeder product
  1. Download feedfeeder.
  2. Add FeedfeederFolder to the 'allowed content types' of sdotNewsFolder (in the ZMI in portal_types).
  3. Add Image to the 'allowed content types' of FeedfeederFolder (in the ZMI in portal_types).
  4. In 'Site Setup' goto 'sdotNews configuration' and add 'FeedFeederItem' to the 'Types listed in News'.
  5. Add a 'sdotNews folder' to your site.
  6. Inside the Newsfolder add a FeedfeederFolder.
  7. If you want the items to display a newscategory icon add an image with the id sdot_folder_icon.
only 2 of the 7 simple steps require you to go into the ZMI :) everything else can be done TTP.

If you import the feeds for the first time you may see that the imported Items are all displayed at the date you first imported them - so if you want to import lots of 'legacy' information you might just set the 'effective' date to the feeds last updated date with this simple python script:

# set the items effective date to the rss date
request = container.REQUEST
RESPONSE = request.RESPONSE

# Return a the dates to which the feeditems are set

feeditems = container.portal_catalog(portal_type = 'FeedFeederItem' ,path='/'.join(container.getPhysicalPath()));
for feeditem in feeditems:
item = feeditem.getObject()
print item.feedItemUpdated
item.setEffectiveDate (item.feedItemUpdated)
print item.EffectiveDate()

return printed
Name this script feedfolder-set-effective and append the name to your Feedfolder url.

Example: http://www.iwlearn.net/News