var MENU_ITEMS = [<br />
<cfloop query='read_navigation'>
<cfif sublevel EQ '0'>
['#read_navigation.title#', '#read_navigation.link#',
{'tw':'_self'},<cfif
#read_navigation.lastitem# EQ '1'>],<br
/></cfif><br />
<cfelse>
['#read_navigation.title#',
'#read_navigation.link#',
{'tw':'_self'}],<br /><cfif
#read_navigation.lastitem# EQ '1'>],<br
/></cfif>
</cfif></cfloop>
];
You can't do an assignment like this. I'm not even sure where
to start
on this. What you need to do is build a string and then write
that
string to a file with the cffile attribute. I would look into
the
<cfsavecontent...> tag and|or string concactination.
Save Content Example
<cfsaveContent variable="Menu_Items">
TEXT and CFML that produces Text
#dateFormat(now(),"dd/mm/yyyy")#
</cfsaveContent>
String Concactination Example
Menu_Items = "Text "
Menu_Items = Menu_Items & "and CFML "
Menu_Items = Menu_Items & "that produces Text " &
dateFormat(now(),"dd/mm/yyyy")