English (United States) English (United Kingdom)
Thursday, March 11, 2010
Syndication for XMod

Syndication eCover 200

Web syndication is a form of syndication in which website material is made available to multiple other sites. Most commonly, web syndication refers to making web feeds available from a site in order to provide other people with a summary of the website's recently added content (for example, the latest news or forum posts).

The problem with using the DNN built-in syndication option is that it knows nothing about your XMod application, it cannot link a feed item to the correct detail view of your data it simply leads the user back to your list template.

Syndication for XMod is built specifically for XMod, with it you can generate RSS 2.0 feeds on a scheduled basis.

What's more because it's built for XMod it knows about your XMod data; to create a feed you use the provided XMod built application 'fg_RSS_Manager' to specify your portal, XMod form, which form fields to use for the feed's title,description and items.

RSS Admin add item

 

As you can see the fatgeorge Syndication for XMod add-in gives you complete control over the generation of your RSS feed, the example to the right is the configuration for the Ask The Xperts - Unanswered feed.

If you look at the contents of the feed you can see where the configuration items fit into the RSS feed.

To filter the feed so that only the un-answered questions are included we use the NoChildren (number of children) field with a filter value of 0.

ATX is a parent/child application, each Question (parent record) can have multiple Answers (child records); the ability for the parent record to track it's child records is one of the features provided by the fatgeorge HouseKeeper add-in.

To link a feed item to the correct page (detail view) on your portal you specify the URL in item link, the ATX application uses the XMod Detail View module on a separate page together with an XMod module to display the answers to the question therefore the item link is configured as:

http://www.fatgeorge.co.uk/AskTheXperts/ATEAnswers.aspx?xmid={xmid}

During the feed generation the {xmid} will be replaced with the correct xmodid for each record included in the feed.

If you are using the built-in XMod detail link your item link would look something like:

http://www.fatgeorge.co.uk/AskTheXperts/tabid/375/ctl/Detail/mid/1257/xmid/{xmid}/xmfid/51/Default.aspx

 

Installation

 

  1. From an Xmod administration screen simply install the package (syndication 1.0 release.zip).
  2. Create a new page only accessible to an Admin user.  Add an XMod module and configure:
    1. set the form as 'fg_RSS_Manager'
    2. set the detail view to anything (does not use a detail view)
    3. set the list template to 'fg_RSS_manager_list'
    4. add a new feed item and configure per your application.
  3. You now need to add a new scheduled job, select Host>Schedule>Add Item to Schedule
    1. the item's class and assembly name is fatgeorge.Syndication.xRss, fatgeorge.Syndication
    2. I have set the fatgeorge.co.uk job to run every 12 hours with a retry every 30 mins.

Syndication eCover 200

Web syndication is a form of syndication in which website material is made available to multiple other sites. Most commonly, web syndication refers to making web feeds available from a site in order to provide other people with a summary of the website's recently added content (for example, the latest news or forum posts).

The problem with using the DNN built-in syndication option is that it knows nothing about your XMod application, it cannot link a feed item to the correct detail view of your data it simply leads the user back to your list template.

Syndication for XMod is built specifically for XMod, with it you can generate RSS 2.0 feeds on a scheduled basis.

What's more because it's built for XMod it knows about your XMod data; to create a feed you use the provided XMod built application 'fg_RSS_Manager' to specify your portal, XMod form, which form fields to use for the feed's title,description and items.

RSS Admin add item

 

As you can see the fatgeorge Syndication for XMod add-in gives you complete control over the generation of your RSS feed, the example to the right is the configuration for the Ask The Xperts - Unanswered feed.

If you look at the contents of the feed you can see where the configuration items fit into the RSS feed.

To filter the feed so that only the un-answered questions are included we use the NoChildren (number of children) field with a filter value of 0.

ATX is a parent/child application, each Question (parent record) can have multiple Answers (child records); the ability for the parent record to track it's child records is one of the features provided by the fatgeorge HouseKeeper add-in.

To link a feed item to the correct page (detail view) on your portal you specify the URL in item link, the ATX application uses the XMod Detail View module on a separate page together with an XMod module to display the answers to the question therefore the item link is configured as:

http://www.fatgeorge.co.uk/AskTheXperts/ATEAnswers.aspx?xmid={xmid}

During the feed generation the {xmid} will be replaced with the correct xmodid for each record included in the feed.

If you are using the built-in XMod detail link your item link would look something like:

http://www.fatgeorge.co.uk/AskTheXperts/tabid/375/ctl/Detail/mid/1257/xmid/{xmid}/xmfid/51/Default.aspx

 

Installation

 

  1. From an Xmod administration screen simply install the package (syndication 1.0 release.zip).
  2. Create a new page only accessible to an Admin user.  Add an XMod module and configure:
    1. set the form as 'fg_RSS_Manager'
    2. set the detail view to anything (does not use a detail view)
    3. set the list template to 'fg_RSS_manager_list'
    4. add a new feed item and configure per your application.
  3. You now need to add a new scheduled job, select Host>Schedule>Add Item to Schedule
    1. the item's class and assembly name is fatgeorge.Syndication.xRss, fatgeorge.Syndication
    2. I have set the fatgeorge.co.uk job to run every 12 hours with a retry every 30 mins.

Copyright 2010 fatgeorge