> Hi all,
>  
> I have another strange one for you.  I'm writing a custom tag and I want it
> to do a cfheader.  I can do this no problem, but what I'm looking to do is
> have it so if I call the tag more than once in a page, the cfheader is only
> done on the first call.  
>  
> Any ideas how I might get it to do this?

Inside the custom tag:

<cfif Not StructKeyExists(Request, "headerAdded")
   <cfheader name="...">
   <cfset Request.headerAdded = true>
</cfif>

--
<mack />
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to