This document will help you to set up the feed configuration file.
Overview
feedconfig.xml is an xml document where you can set up any number of feeds that will be aggregated together and sorted by post date. You can group the feeds by category to avoid the fast turnover of having all the blogs aggregate together. You can also aggregate comments feeds.
The XML
See the example feedconfig.xml here.
Elements:
- category
-
- name (attribute)
- name used to referrence the category in your pages
- feed
- One for each feed being read
- type
- either post or comment based on the type of feed being read
- link
- URI for the feed
- title
- Name of the feed as you want it displayed
- site
- Optional - The URI of the site from which the feed is taken. If this element is left out, this site will not be included in the array that returns from a call to Config->getNameLinks().
- offset
- The feeds that you will aggregate will store the time based on the server time. This causes a problem when comparing the times for sorting. The offset is the number of hours to add to the feed time to get to a standard time zone. I use Greanwich Mean Time as the base. Negative numbers are permitted.
- sidebartitle
- Optional - Use this element if the title in the sidebar is supposed to be different than the title in the aggregation
- style
- Optional - This is a catch all type element. The name and value get stored in an associative array, called styles, in the feed object. The values can be used for any number of reasons including setting the css style differently for each feed.
- name (attribute)
- name of attribute
- parentfeed
- Optional - If this element is included in the definition of a comment feed, it will lookup the parent feed specified and retrieve the name of the post. Comment feeds don’t include the post name so this is a handy way to get it for display.
