Changeset 1751

Show
Ignore:
Timestamp:
09/01/08 01:55:44 (4 months ago)
Author:
lmajano
Message:

rss reader

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • coldbox/trunk/testharness/config/coldbox.xml.cfm

    r1741 r1751  
    4545                <Setting name="MyArray"  value="[1,2,3,4,5,6]"/> 
    4646                <Setting name="MyBaseURL"  value="apps.jfetmac" /> 
     47                 
     48                <!-- RSS REader --> 
     49                <Setting name="feedReader_useCache"  value="true" /> 
     50                <Setting name="feedReader_cacheType"  value="ram" /> 
     51                <Setting name="feedReader_cacheTimeout"  value="10" /> 
    4752        </YourSettings> 
    4853         
  • coldbox/trunk/testharness/handlers/default.cfc

    r1739 r1751  
    4747        </cffunction> 
    4848         
     49        <!--- RSS ---> 
     50        <!--- rss ---> 
     51        <cffunction name="rss" access="public" returntype="void" output="false" hint=""> 
     52                <cfargument name="Event" type="coldbox.system.beans.requestContext" required="yes"> 
     53            <cfset var rc = event.getCollection()> 
     54            <cfscript> 
     55                        //get rss feed 
     56                        rc.feed = getPlugin("feedReader").readFeed(feedURL="http://news.google.com/nwshp?hl=en&tab=wn&output=rss"); 
     57                </cfscript>           
     58        </cffunction> 
     59         
    4960        <!--- onMissingAction ---> 
    5061        <cffunction name="onMissingAction" access="public" returntype="void" output="false" hint="on missing action"> 
  • coldbox/trunk/testharness/views/navigation.cfm

    r1739 r1751  
    1515<p><a href="index.cfm?#getController().getSetting("eventName")#=ehSecure.dspUser">Security Int Test</a></p> 
    1616<p><a href="index.cfm?#getController().getSetting("eventName")#=default.implicit">Implicit Views</a></p> 
     17<p><a href="index.cfm?#getController().getSetting("eventName")#=default.rss">RSS Reader</a></p> 
    1718</cfoutput> 

Copyright 2006 ColdBox Framework by Luis Majano