You can kind of do it with the CFHTMLHEAD tag, but that's it.  Once the HTML
is rendered to the stream, it's stuck there forever, and can't be changed.
CFHTMLHEAD is the only exception.

CFSAVECONTENT could be used to get close, if you don't mind running your
code like this:

<cfsavecontent variable="sometagoutput">
  <cf_sometag>
</cfsavecontent>
<cf_header>
<cfoutput>#sometagoutput#</cfoutput>
<cf_footer>

Inside CF_SOMETAG, save some content to a variable, which CF_HEADER checks
to see if it exists and if it does, output it where you want.  The output
saved to the variable would not be included in #sometagoutput#, so you'd get
similar behaviour to what you want.  It's not perfect, but might suit your
need.

barneyb

---
Barney Boisvert, Senior Development Engineer
AudienceCentral
[EMAIL PROTECTED]
voice : 360.756.8080 x12
fax   : 360.647.5351

www.audiencecentral.com


> -----Original Message-----
> From: Jim McAtee [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 28, 2003 11:31 AM
> To: CF-Talk
> Subject: Write into preceding CF template
>
>
> Simple example.  mypage.cfm:
>
> <cfinclude template="header.cfm">
> <cf_sometag>
> <cfinclude template="footer.cfm">
>
> or, if it makes a difference:
>
> <cf_header>
> <cf_sometag>
> <cf_footer>
>
> Any way to have "cf_sometag" write output into "header.cfm"?  I'm
> certain you
> could do it with javascript, but considering that the CF page
> hasn't yet been
> completely rendered, I'm thinking it may be possible purely in CF.
>
> Thanks,
> Jim
>
>
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

Reply via email to