Maybe something like:
<cfset variables.fileExclusionList = "myFile1.cfm,
myFile2.cfm,
myFile3.cfm,
myFile4.cfm">
<cfif
listfindnocase(variables.fileExclusionList,getfilefrompath(cgi.path_translated),",")
eq 0>
<cfinclude template="myHeaderFile.cfm">
</cfif>
Cutter
Tony wrote:
> might be dumb, but this is what i would do.
>
> <cffunction name="onRequestStart" returnType="boolean" output="true">
> <cfif NOT (cgi.script_name contains "yourFilename1" or
> cgi.script_name contains "yourFileName1")>
> <!--- Display our Site Header at top of every page --->
> <cfinclude template="SiteHeader.cfm">
> <cfreturn true>
> <cfelse>
> <!--- DO NOT Display our Site Header at top of every page --->
> <cfreturn true>
> </cfif>
> </cffunction>
>
> tw
>
>
> On 3/1/06, Les Mizzell <[EMAIL PROTECTED]> wrote:
>
>>I'm using the below to call the header for all the main pages in a site:
>>
>><cffunction name="onRequestStart" returnType="boolean" output="true">
>> <!--- Display our Site Header at top of every page --->
>> <cfinclude template="SiteHeader.cfm">
>> <cfreturn true>
>></cffunction>
>>
>>Suddenly, I find I've got maybe one of two pages where I do *NOT* want
>>to call that specific header. Is there a good way to EXCLUDE a page from
>>using that header, but keep it in the same directory as all the others?
>>
>>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:233887
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