Personal tools
You are here: Home Products sdot News Documentation How-tos Integrating feedfeeder
Document Actions

Integrating feedfeeder

This How-to applies to: 1.5, 1.6

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

see also:

Feedfeeder
A product which pulls down remote syndicated feed items. Those items can be easily integrated into sdotNews (see howto section)
by Christian Ledermann last modified January 9, 2007 - 09:06

For any issues with the web site functionality, please file a ticket.

Please consult the policy on plone.org content if you want your content published on this site.

Servers and hosting by