Posted in ColdFusion | Posted on 05-22-2008 | 6,579 views
I had decided to not work anymore on BlogCFC 5, but with 6 being delayed so long, I gave some love to the 5.X code base tonight. BlogCFC 5.9.003 was released tonight. Nothing major was changed, but I did switch to ColdFish, the code syntax highlighter written by Jason Delmore. This replaces the ancient code I had in there before.
Also released was an update to Galleon. This release fixes an issue related to the past security changes as well as a case sensitivity issue. (Sorry, but you will never convince me case sensitive file systems make sense. Who in the heck wants a file named foo.txt and Foo.txt??)
I also want to point out an interesting article by Ike: Porting Galleon Forums. He is porting Galleon to various frameworks and will be posting about the process.


After I upgraded, I'm experiencing a new problem when using // in the code. What's strange is some of my code sections have disappeared and others have merged together.
Thanks for your help earlier today. I appreciate it.
Thanks for all you do, Ray. Cya at CFUNITED!
(indentation is off on the below cut and paste)
Blog Archive
? 2008 (100)
? June (5)
Weekend Video
Let Freedom Bling
A Conundrum
Not Alexander Rodchenko (but almost)
Pictures from a Train
? May (22)
Weekend Video
The First Mugshot
Assisted
Erupted
Memorial Day Weekend Video
More P.J.s!
Puzzled
75,000
The Greatest
Comfort and Joy
Weekend Video
Covered
Truth and Beauty
Spirit Pictures
Masked
Weekend Video - The Raveonettes
More Freedom
Alluring Images
Freedom Riders
Thinking Pink
Weekend Video - Dylan Tribute
A Short History of Subway Pictures
? April (23)
OMG!
Popel Coumou
Different but Equal
Weekend Video - Flying Ducks
All Colors Together
Bringing Sexy Back
Jose Picayo
Speed Racer
Mark Wyse
Weekend Video - Crouching Tiger/Hooverphonic
Seen off the Street
How I Spent Last Sunday
Cherry Blossoms - Part Deux
The Polk County 8
Weekend Video (and prologue) - Hair
The Fun of the Fair...
Creativity
A Big Question
Weekday Update
Weekend Video - Casey Knowles
We Love the 90s!
Spanning the Globe
Be There (or be square)
? March (13)
? February (17)
? January (20)
? 2007 (37)
Here's the code for magazine.cfm:
<cfcontent reset="true"><cfsetting enablecfoutputonly="true"><cfcontent type="application/xml; charset=utf-8">
<cfquery name="magazine_rss" datasource="mydsn">
Select * from magazine_rss order by datepublished desc
</cfquery>
<cfoutput><?xml version="1.0" encoding="ISO-8859-1" ?>
<rss version="2.0">
<channel>
<title>mysite | Magazine RSS Feeds</title>
<link>http://www.mysite.com/magazine</link>
<description>mysite Magazine Latest News Feeds</description>
<language>en-us</language>
<copyright>Copyright 2008, mysite , All Rights Reserved</copyright>
<docs>http://backend.userland.com/rss</docs>
<lastBuildDate>#magazine_rss.datepublished#</lastBuildDate>
<image>
<title>mysite Magazine RSS Feeds</title>
<url>http://test.mysite.com/global/images/PElogosmall.j...;
<link>http://mysite.com</link>
</image>
<cfloop query="magazine_rss">
<item>
<title>#title#</title>
<description><![CDATA[#blurb#]]></description>
<link>http://mysite.com/magazine/#link#</link>
<author>#author#</author>
<category>#category#</category>
<pubDate>#datepublished#</pubDate>
</item>
</cfloop>
</channel>
</rss></cfoutput><cfsetting enablecfoutputonly="false">
New York Times feed works great, however it has a file extension of .xml
Do I need to compile this magazine.cfm and output it as a magazine.xml file? If so, how is that done?
Many thanks.
www.goo.com/magazine.cfm" target="_blank">www.goo.com/magazine.cfm
<cfset theURL = "http://mysite.com/rss/magazine.cfm">
@Richard Steele - Ok, so open that URL in your browser. If you see a valid RSS feed then it should work in the blog too. Don't forget that we cache the front end, so hit your blog with ?reinit=1.
I had the same problem: couldn't get the newsfeed pod to correctly display a .cfm feed. The feed is completely valid and works in all feed readers. The quick solution I used was to save the output of that .cfm file and write a .xml file just like Richard mentioned above. The code I used is quite simple:
<!--- save the output of our feed.cfm into a variable --->
<cfsavecontent variable="myFeed"><cfinclude template="feed.cfm"></cfsavecontent>
<!--- display it (optional) --->
<cfoutput>
#myFeed#
</cfoutput>
<!--- write the variable into a .xml file --->
<cffile action="write"
output="#myFeed#"
file="#ExpandPath('path/feed.xml')#">
You can run this with a scheduler or attach it to the operation that adds items to your original feed. Then configure the pod to read from the .xml file and it will work just fine.
(I realize this is months late and a clunky solution, but oh well)
[Add Comment] [Subscribe to Comments]