You could hack around something like that with <cfsavecontent>...
<cfsavecontent var="body">
...
</cfsavecontent>
<cfsavecontent var="header">
...
</cfsavecontent>
<cfoutput>
#header#
#body#
</cfoutput>
I dunno if PHP has anything analogous to cfsavecontent but if so that
might be a good option. It modularizes your layout too, which is nice.
kam
-----Original Message-----
From: Jim Davis [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 25, 2005 1:57 PM
To: CF-Talk
Subject: RE: OT: PHP equivalent of cfhtmlhead
> -----Original Message-----
> From: Figy, Kam [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 25, 2005 4:48 PM
> To: CF-Talk
> Subject: RE: OT: PHP equivalent of cfhtmlhead
>
> It's also convenient if you want to have a global header include but
> have page titles on a per-page basis.
I use CFHTMLHEAD a lot - but I do wish there was a more generic
processing for it.
I'd like to be able to set an "include point" someplace on the page then
later throw some content to it.
For example I grab a tickcount from the beginning of application.cfm and
at the end of OnRequestEnd.cfm. I then dump that to the output. But of
course that information is outside the HTML tags (since I use Custom
Tags to include Headers and Footers outside of the auto-includes).
It would be nice to set a place for that information: something like:
<cfOutputInsertion name="MetricsData">
And then later use something like:
<cfOutputInsertion name="MetricsData" Content="My Stuff" Append="True">
(Or something like that)
This is clearly what CFHTMLHEAD is doing already - I'd just like to make
it more generic.
Jim Davis
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:191996
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54