Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Create RSS

LEGEND ,
Aug 20, 2008 Aug 20, 2008
I am trying to create a feed of events pulled from our query.

I found the following example:

<cfscript>
myStruct = StructNew();
mystruct.link = " http://www.garyrgilbert.com/tutorials/coldfusion/advanced/index.cfm?tutorial=";
myStruct.title = "Gary Gilbert's Advanced Coldfusion Tutorials";
mystruct.description = "Coldfusion Tutorials from beginner to Advanced";
mystruct.pubDate = Now();
mystruct.version = "rss_2.0";

<!--- Map the orders column names to the feed query column names. --->
columnMapStruct = StructNew();
columnMapStruct.publisheddate = "createDate";
columnMapStruct.content = "body";
columnMapStruct.title = "title";
columnMapStruct.rsslink = "ID";
</cfscript>
<cffeed action = "create"
query= "#getAdvancedCf#"
meta="#mystruct#"
columnMap="#columnMapStruct#"
outputFile = "AdvancedTutorialsFeed.xml"
overwrite = "yes"
xmlVar = "myXML">

And have replaced what I thought was the appropriate info, for example, I
have changed the columnMapStruct.publisheddate="query.itemdate" where query
is my query (duh!)

I changed the query="#getAdvancedCf#" to my query name as well.

When I run this though, I keep getting a:

Context validation error for the cfscript tag.
The start tag must have a matching end tag. An explicit end tag can be provided
by adding </cfscript>. If the body of the tag is empty, you can use the shortcut
<cfscript .../>.
The CFML compiler was processing:

A cfscript tag beginning on line 11, column 2.

What am I doing wrong????



434
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 20, 2008 Aug 20, 2008
You have a CFML-style comment in the middle of your CFScript block.

Usually when you get that error, keep an eye out for a stray CFML
statement, comment, or angle bracket.

--
Adam
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 20, 2008 Aug 20, 2008
Hello Adam,

Ok, how about this one?

Attribute validation error for the CFFEED tag.

I have the <cffeed> tag set up as:
<cffeed action="create"
query="#TournamentList#"
columnMap="#columnMapStruct#"
outputFile="AdvancedTutorialsFeed.xml"
overwrite="yes"
xmlVar="myXML">


> You have a CFML-style comment in the middle of your CFScript block.
>
> Usually when you get that error, keep an eye out for a stray CFML
> statement, comment, or angle bracket.
>


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 20, 2008 Aug 20, 2008
LATEST
> Attribute validation error for the CFFEED tag.

I suspect there's more to the error message than that? Like which column,
and what it's expecting?

Check the docs and verify you're passing the correct attributes and value
data types to it.

I suspect it wants the NAME of a query, not the data within the query
object (I've never used the CFFEED tag, and you're as capable of RTFM as I
am to work out the answer to this).

--
Adam
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources