I've noticed this behaviour before with cfsavecontent.  If you don't have a
<cfoutput> tag inside it, it won't work.  I do believe our pages are wrapped
in <cfsetting cfoutputonly="true">, but I'm not 100% on that.  



-----Original Message-----
From: daniel kessler [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 12, 2005 12:45 PM
To: CF-Talk
Subject: Re: no /channel for my rss

>Do you have CFSETTING ENABLECFOUTPUTONLY enabled by chance?  Those
>tags are outside CFOUTPUT tags, so if that setting is enabled, they
>won't be emitted.

hmm. well I don't know where to find that and I don't see anything for
"enablecfoutputonly".  But because of what you've said, I wrapped that part
in a set of cfoutput tags and they now appears.

Still I don't understand.  I have beginning rss tags above the cfoutput code
that displays in the file fine.  It's just the stuff below the cfoutput code
that doesn't.  Not that I need to understand, but I would prefer to.

<cfsavecontent variable="xml"><?xml version="1.0" ?> 
<rss version="2.0">

<channel>

<title>Health and Human Performance - What's New</title>
<description>This is the University of Maryland's College of Health and
Human Performance list of What's new items.</description>
<link>http://hhp.umd.edu</link>

<cfoutput query="retrieve_xml">
        <cfset desc_length = 400>
        <CFIF LEN(description) gt desc_length>
                <CFSET desc = LEFT(description,desc_length)>
                <cfset desc = ListDeleteAt(desc, ListLen(desc, " "), " ")>
<!--- deletes to the last full word --->
                <cfset desc = desc & "...">
        <cfelse> 
                <CFSET desc = description>
        </CFIF>
        <CF_RENoTags
                input="#desc#"
                variable="desc"
        >
        
        <cfset the_header = header>
        
        <CF_RENoTags
                input="#header#"
                variable="the_header"
        >
<item>
<title>#the_header#</title>
<description>#desc#</description>
<link>http://hhp.umd.edu/whats_new.cfm?id=#id#</link>
</item>
</cfoutput>

<cfoutput>
</channel>
</rss>
</cfoutput>

</cfsavecontent>
<cffile action="write" file="#CurrentDir#rss/whats_new.xml" output="#xml#"
addnewline="no">



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226827
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to