RSS FEed of Portal ANnouncements

Hello
Some of the staff do not use the portal on a daily basis and may be missing some important portal announcements.
Has anyone been able to generate an RSS feed of portal announcements which users could subscribe to? Obviously they would only be able to subscribe to announcements that they would see when logging in.
Iain

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

RE: RSS FEed of Portal ANnouncements

Did you make on progress on this?

Seems like a great idea!

Mario

RSS feed portal announcements

 Shouldn't be too hard.  Something basic in cfml would look like:

test.cfm

<cfsetting enablecfoutputonly="true">

<cfquery datasource="portaldatabase" name="Talist">

select * from ta_message 

where target_entire_campus = 'Y'

and expirationdate >= some_epoch_time_variable

ORDER BY  TA_MESSAGE.CREATIONDATE DESC, TA_MESSAGE.EXPIRATIONDATE DESC, TA_MESSAGE.DELIVERYDATE DESC

</cfquery>

<cfoutput><?xml version="1.0"?>

<rss version="2.0">

  <channel>

    <title>Announcements</title>

    <link>http://myschool.edu/announce.rss</link>

    <description>Our Schools College Announcements</description>

</cfoutput>

<cfoutput query="talist">

    <item>

       <title>#subject#</title>

       <link>http://mycoldfusionappserver.edu/test2.cfm?messagesubject=#subject#</link>

       <description>#body#</description>

    </item>

</cfoutput>

<cfoutput>

  </channel>

</rss>

</cfoutput>

 

Links clicked on the above rss feed would then hit test2.cfm and return the body:

 

<cfif isDefined("messagesubject")>

<cfif messagesubject neq "">

<cfquery datasource="
portaldatabase" name="getmessage">

select body from ta_message 

where subject = '#messagesubject#'

</cfquery>

<cfoutput>#getmessage.body#</cfoutput>

</cfif>

</cfif>

 

 

Re: RSS

 

How could you set this up so that it would ready Juan Valdez’s messages and not Mario Pena’s while keeping it secure enough that I could now just alter the link and read some else’s such as:
 
 
Thoughts?

 

Thanks very much!!

I turns out that this solved our problem!

Mario

Syndicate content