Im just starting to read the books about Custom tags, and im wondering if
the file in the C:\CFUSION\CustomTags folder has to contain the
actual code
of the tag?
Or is the file there just to name the tag??
The file has to contain the code. You pass data into the tag using the
Attribute scope and you return data using the caller scope.
Example:
sample.cfm
--
html
headtitle/title/head
body
cf_mytag attrib1="hello" attrib2="world"
br
cfoutput#mytag.success#/cfoutput
/body
/html
mytag.cfm
--
cfoutput#Attributes.attrib1# #Attributes.attrib2#/cfoutput
caller.mytag.success=true
Output:
--
hello world
true
HTH,
Duane Boudreau,
eMPower Project Manager
Director, Web Technologies
Ektron, Inc.
http://www.ektron.com
5 Northern Blvd, Suite 6
Amherst, NH 03031
Tel: 603-594-0249 x114
Fax: 603-594-0258
--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.