Don't feel too bad. The docs for CFFEED leave a _lot_ out.  This blog
article is a good example:

http://www.coldfusionjedi.com/index.cfm/2007/8/22/Metadata-properties-for-CFFEED

So as to your problem, I looked here:

http://feedvalidator.org/docs/rss2.html#ltguidgtSubelementOfLtitemgt

and I see one example has guid as a simple value. One has it like so:

http://feedvalidator.org/docs/rss2.html#ltguidgtSubelementOfLtitemgt

So this is what I'd try.

<cfset myStruct.item[i].guid = structNew()>
<cfset myStruct.item[i].guid.href = qrtRSS.permalink>

I believe href will then be used for the value. If not, try link perhaps.



On 9/14/07, Nathan C. Smith <[EMAIL PROTECTED]> wrote:
> I'm trying to use cffeed in ColdFusion 8 to create an RSS 2.0 feed.  I
> basically lifted the example from the docs.    I'm running into problems
> with the guid field.  I used Feed validator to check what I had
> (http://feedvalidator.org/docs/warning/MissingGuid.html) and it told me I
> was missing a GUID field.
>
> I added the field in my code:
> <cfset myStruct.item[i].guid = qryRSS.permalink>
>
> And CF told me it had to be a struct.  So if I create a new struct for guid,
> what do I use as names to refer to the fields?  I don't think it is clear in
> the docs.  Can someone correct me?
>
> I'm not entirely comfortable with structures so if I'm being daft please
> point that out gently.  Thanks.
>
> -Nate
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288514
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to