All you need to do is wrap all the code which generates output inside a
bodycontent tag with a name - so it doesn't conflict with the top one used
in index.cfm :
<CF_bodycontent name="HTMLOut">
...
...
...
</CF_bodycontent>
and voila you'll have all the output in the variable request.HTMLOut (based
on the name attribute supplied to the bodycontent tag)
For more info on custom tags it is covered not too badly in the CF 4.5 docs
- search on "thistag"
HTH,
Noam
----------
From: Ben Lowndes [SMTP:[EMAIL PROTECTED]]
Sent: Wednesday, 06 September 2000 17:03
To: Fusebox
Subject: bodycontent & customtags
Hi,
this isn't directly Fusebox related but I hope you can help.
I'm writing a custom tag and want to load all of the HTML generated
by it
into a variable so that it can be out put by the calling template at
a later
point on the page.
The HTML that is generated is made by a few loops and a couple of
ifs so
it's not a simple as doing <CFSET TheCode = TheCode & "Lots of
HTML">... as
they'd have to be all over the place, not to mention the problems
caused by
the " in the table attributes etc..
So I'd like to do something like bodycontent does, but after looking
at the
code I don't understand how it does it:
<cfif not thistag.HasEndTag>
<cfset thistag.generatedcontent="">
You must have an end Tag
<cfabort>
</cfif>
<cfparam name="attributes.name" default="bodycontent">
<cfif thistag.executionmode is "end">
<cfset "request.#attributes.name#"=thistag.generatedcontent>
<cfset thistag.generatedcontent="">
</cfif>
Can anyone explain to me what's going on here?
Also, at the weekend I was on site doing some work and forgot to
bring the
Fusebox custom tags with me. So I went to Fusebox.org to download
the
URLToken tag and noticed it wasn't there. Infact there are quite a
few less
tags than before, is there a reason for these missing tags?
Thanks
Ben.
----------------------------------------------------------------------------
--
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.