I would default a MetaData struct in your application.cfm or config file:
<cfset REQUEST.MetaData = StructNew() />
<cfset REQUEST.MetaData.Title = "Default title" />
<cfset REQUEST.MetaData.Description ="" />
<cfset REQUEST.MetaData.Keywords = "" />
Then in your files update these values as necessary.
Then when you write your actual HEAD code, check for those values.
<head>
<cfif Len(REQUEST.MetaData.Title)> ... </cfif>
<cfif Len(REQUEST.MetaData.Description)> ... </cfif>
<cfif Len(REQUEST.MetaData.Keywords)> ... </cfif>
</head>
......................
Ben Nadel
Web Developer
Nylon Technology
6 West 14th Street
New York, NY 10011
212.691.1134
212.691.3477 fax
www.nylontechnology.com
"Vote for Pedro"
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Robert Blackburn
Sent: Tuesday, November 29, 2005 2:18 PM
To: [email protected]
Subject: [CFCDev] Undoing CFHTMLHEAD
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]
----------------------------------------------------------
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]