ssailer wrote:
> Actually, I played around with CFFILE and got it to
output all of the articles
> as a separate HTML file, but the formatting sucks. I
can't figure out a way to
> include formatting within the CFFILE tag. Any ideas? If
there was a way to
> attach a template to these newly created pages, that
would work, but I can't
> figure it out...
>
Method one. Run the CFML code like you normally do, but
capture the
output with <cfsaveconent...> and save that string.
<cfinclude...>
would probably simplify this.
<cfsavecontent variable="htmlOutput">
...
CFML
OR
<cfinclude ...>
...
</cfsavecontent>
<cffile ... output="#htmlOutput#">
Method two. Configure your web server to process the HTM|HTML
extension
with the ColdFusion application server. Then all the search
engine
don't know that these pages are static.