> > Application.cfm seems like a good place to LINK in external
> > style sheets. This works fine, but this means that the LINK
> > tag comes before each page's HTML and HEAD tags. According
> > to my O'Reilly HTML book the LINK tag belongs *within* the
> > HEAD tag. I wonder if putting LINK in Application.cfm is
> > inviting trouble. Any thoughts?
...
> cfheader should do the trick
>
> <cfheader text="<link rel=......>">
The CFHEADER tag creates HTTP response headers; it doesn't write to the
document HEAD. For that, you need to use CFHTMLHEAD:
<CFHTMLHEAD TEXT="put me in the head">
However, you might find it difficult to put complex strings in the TEXT
attribute; you'll have to escape quotes, and you won't be able to have line
breaks. You can work around this by creating a custom tag with a start and
end execution mode, which reads its contents and calls CFHTMLHEAD:
<!--- CF_HTMLHEAD custom tag --->
<CFIF ThisTag.ExecutionMode IS "End">
<CFHTMLHEAD TEXT="#ThisTag.GeneratedContent#">
<CFSET ThisTag.GeneratedContent = "">
</CFIF>
<!--- end CF_HTMLHEAD custom tag --->
...
<!--- using CF_HTMLHEAD custom tag in application.cfm --->
<CF_HTMLHEAD>
<META NAME="foo" VALUE="bar">
<META NAME="foo2" VALUE="bar2">
...
</CF_HTMLHEAD>
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.