| Web News |
France Telecom's Orange says no deal yet on Apple... France Telecom mobile phone unit Orange has not won the rights to market the Apple iPhone in France, and with various mobile operators still in talks with the US...
Windows Live suite debuts … on cell phones Microsoft has been promising for a couple of months now that it’s going to bundle a bunch of its core Windows Live offerings into a suite. Yet Microsoft still hasn’t made that kind of an announcement. But if you dig into...
Bolloré Telecom selects Alca-Lu's WiMax solution Alcatel-Lucent is deploying a next-generation pilot network for France's Bolloré Telecom, a communications provider and a holder of 12 WiMax licences in France.
France ready to break European patents obstacle France is poised to break a linguistic obstacle that has for decades burdened patent applicants wanting to use their inventions across Europe. The move will not only make multinational European patent applications easier...
|
|
08.23.07 Metadata Properties For CFFEED By
Raymond Camden
When creating RSS feeds with the CFFEED tag, you can specify metadata properties for the feed that help describe the feed in general. The docs though aren't very clear on what metadata properties you can provide.
The docs say that for RSS 2.0 feeds the title, link, description, and version properties are required, but all others are optional. What others? I was never able to find documentation that describes what fields you can use. At the same time though CFFEED is smart enough to recognize valid fields. If you pass a field named "ray" for example, it ignores it when creating the feed. So what is available? I did some Googling and I found a specification for RSS 2:
RSS 2.0 at Harvard Law
The docs here listed a bunch of items all of which worked. In general they were all simple to use. For example, here was my initial metadata based on what I had to pass:
<!--- Struct to contain metadata --->
<cfset meta = structNew()>
<cfset meta.title = "Orange Whip Studio Films">
<cfset meta.link = "http://localhost/ows">
<cfset meta.description = "Latest Films">
Next I added additional fields:
<cfset meta.language = "Klingon">
<cfset meta.copyright = "I own you.">
<cfset meta.managingEditor = "ray@camdenfamily.com">
<cfset meta.webmaster = "ray@camdenfamily.com">
<cfset meta.pubDate = now()>
<cfset meta.lastBuildDate = now()>
This worked fine until I hit categories. Categories have been an array of a structs:
<cfset meta.category = []>
<cfset meta.category[1] = structNew()>
<cfset meta.category[1].value = "Boogers">
Why? Because categories support an optional domain field. To supply the domain just add it as a key:
Continue reading this article.
About the Author: Raymond Camden, ray@camdenfamily.com
http://ray.camdenfamily.com
Raymond Camden is Vice President of Technology for roundpeg, Inc. A long
time ColdFusion user, Raymond has worked on numerous ColdFusion books
and is the creator of many of the most popular ColdFusion community web
sites. He is an Adobe Community Expert, user group manager, and the
proud father of three little bundles of joy.
|
|