Rob,

I don't have a direct answer for your question, but I do have a couple of thoughts.

If you move the cfhtmlhead to OnRequestEnd.cfm, you could have it check for a request variable set earlier (and therefore obviate the need to pass a URL variable).

Also (and this brings us back to CFCs), I wrote an article in CFDJ recently that covers how I handle layouts which also might obviate the need for the kinds of work-arounds you are doing.

http://coldfusion.sys-con.com/read/154231.htm
I have been using this approach for more than a year now and it has worked really well for me.

Hope that helps,

Steve Bryant.
Bryant Web Consulting LLC
http://www.BryantWebConsulting.com/
http://steve.coldfusionjournal.com/


At 01:18 PM 11/29/2005, Robert Blackburn wrote:
Hi everyone,
I have an application that has some meta tags automatically added by
an application.cfm using the CFHTMLHEAD tag (No harsh judgments, it
was a quick fix for a problem many moons ago :o) ).

However, I have a special instance where I don't what that header
information added.
Of course I can add this to the application.cfm...
        <cfif NOT structKeyExists( URL, "excludeMetaData") >
                <cfhtmlhead text=" <meta ...blah blah blah ...> ">
        </cfif>

But I would really like to not have to build in any special exception
logic just for this one scenario.

Does anyone know of an easy way to tell coldfusion to clear out the
CFHTMLHEADER buffer or to reset it to blank?

Thanks

--
Rob Blackburn
http://www.rbdev.net



----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to 
[email protected] with the words 'unsubscribe cfcdev' as the subject of the 
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
(www.cfxhosting.com).

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]


Reply via email to