Re: RSS Feeds Added In r2148

Adam Tauno Williams <[email protected]> Tue, 26 Aug 2008 10:50:06 -0400
Newsgroups gmane.comp.cms.opengroupware.user
Message-ID <[email protected]>
On Tue, 2008-08-26 at 07:10 -0400, Adam Tauno Williams wrote:
> As of r2148 OpenGroupware now supports the following RSS 2.0 feeds:
>       * projectActions - Reports actions on tasks assigned to projects
>         of which the user is a member either directly or via team
>         membership.
>       * toDoActions - Reports actions on tasks of which the user is an
>         executor either directly or via team membership.
>       * delegatedActions - Reports actions on tasks created by the user.
> URLs access the RSS component, like:
> http://${HOST}/zidestore/so/${USER}/RSS?feed=projectActions
> http://${HOST}/zidestore/so/${USER}/RSS?feed=delegatedActions
> http://${HOST}/zidestore/so/${USER}/RSS?feed=toDoActions
> By default the 150 most recent task actions are included in the feed;
> this value can be adjusted by including a "limit" value in the URL.
> Screenshot of feeds in Thunderbird available at
> <http://www.whitemiceconsulting.com/node/158>

BTW, this introduces two new defaults:

RSSDefaultChannelLinkURL - Is the URL, by default, that is in the <link>
tag of the channel.   So you can set this to the URL of the WebUI or
whatever front-page you want/use.  Like:

  Defaults write NSGlobalDomain \
    RSSDefaultChannelLinkURL "http://opengroupware.mormail.com/"

RSSDefaultItemLinkURL - Is the URL that, by default, will be used in
the <link> tag of channel items.  So, again, you can set this to either
the WebUI or whatever front-page you want/use.  Like:

  Defaults write NSGlobalDomain RSSDefaultItemLinkURL \
'"http://opengroupware.mormail.com/OpenGroupware/wa/LSWViewAction/viewJob?jobId=$objectId"'

  * The above URL will work for driving tasks via the old direct action
support of the WebUI.
  * This URL is used as a pattern,  $objectId is the replaced by the
numeric id (primary key) of the referenced object and $GUID replaced by
the GUID of the item.  The GUID of a task action is
OGo-TaskActions-{objectId} where, in this case, {objectId} is the
primary key of the task action.   This should enable anyone to very
simply build any kind of redirect/bounce page they want.
  * Note the '"..."' quoting used when setting the default.  To set a
string value containing special characters like '=' this quoting must be
used.

If you set neither of these defaults then the feeds won't have <link>
elements in either the channel or the item.  This technically makes the
feed non-conforming and some RSS readers will refuse to process the
feed.

-- 
OpenGroupware.org Users
[email protected]
http://mail.opengroupware.org/mailman/listinfo/users