> I am trying to create a tag that will encapsulate all of my
> page formatting that looks like this.
>
> <cf_PageFormat>
> This is a test
> </cf_PageFormat>
>
> Everything to do with formatting is inside of the custom tag.
> The problem is that when I run it, it outputs the "This is a
> test" , then it outputs the formatting and content in the
> correct place and so I have this stray content at the top.
> Is there a way to suppress the "This is a test" from the top
> page making it only output in the specified place in the
> custom tag where it is formatted.
Why yes, there is. Within the end execution mode of your custom tag, set
ThisTag.GeneratedContent equal to an empty string after doing what you want
to do. In the example below, cf_pageformat outputs its contents in
uppercase:
<!--- cf_pageformat --->
<cfif ThisTag.ExecutionMode is "END">
<cfoutput>#UCase(ThisTag.GeneratedContent)#</cfoutput>
<cfset ThisTag.GeneratedContent = "">
</cfif>
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message
with 'unsubscribe' in the body to [EMAIL PROTECTED]