Raymond,

If you have nested CFMODULE tags like the following:

<CFMODULE TEMPLATE="BUTTONS.cfm">
     <CFMODULE TEMPLATE="BUTTON_ITEM.cfm" />
</CFMODULE>


Then in your button_item.cfm file you need to use the following:
<CFASSOCIATE BASETAG="CF_BUTTON">

instead of
<CFASSOCIATE BASETAG="CF_BUTTONS"> or
<CFASSOCIATE BASETAG="BUTTONS"> or
<CFASSOCIATE BASETAG="BUTTON">


Also, in the child CFMODULE call: <CFMODULATE TEMPLATE="BUTTON_ITEM.cfm />
the ending slash is very important.  You CAN NOT use <CFMODULATE
TEMPLATE="BUTTON_ITEM.cfm"> without using an end </CFMODULE> tag or closing
that tag with />.  

So you can write 
<CFMODULE TEMPLATE="BUTTON_ITEM.cfm" /> or
<CFMODULE TEMPLATE="BUTTON_ITEM.cfm"></CFMODULE>


--
Reuben Poon
Programmer
[EMAIL PROTECTED]
PINT - Powell Internet

Tel: 858.270.2086
Fax: 858.270.0410

http://www.pint.com
http://www.democompany.com




-----Original Message-----
From: Raymond K. Camden [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 08, 2000 9:23 AM
To: [EMAIL PROTECTED]
Subject: RE: CFModule Parent/Child Tags


What bug? Your saying you can't do:

<CFMODULE TEMPLATE="buttons.cfm"> and that you have to use:

<CFMODULE TEMPLATE="buttons."> ?? I've never seen that before. Are you sure
or am I misreading you.

=======================================================================
Raymond Camden, Cold Fusion Jedi Master for Syntegra (www.syntegra.com)
Allaire Certified Instructor and Member of Team Allaire

Email   : [EMAIL PROTECTED]
ICQ UIN : 3679482

"My ally is the Force, and a powerful ally it is." - Yoda


> -----Original Message-----
> From: Reuben Poon [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 08, 2000 11:59 AM
> To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
> Subject: RE: CFModule Parent/Child Tags
>
>
> For everyone interested, I fixed my problem with the nested CFMODULE tags.
> Thank you very much James Sleeman for your help.
>
> The solution is two-fold.  First, Cold Fusion has a bug that truncates the
> last character of the custom tag so when my custom tag file name is
> "buttons.cfm" the CFMODULE tag name becomes "button."  Second, when using
> CFASSOCIATE to associate a child tag with its parent tag (which are both
> CFMODULE calls), you need to prepend CF_ to the custom tag name.
> Therefore,
> the CFASSOCIATE tag becomes
>
> <CFASSOCIATE BASETAG="CF_BUTTON">
>

----------------------------------------------------------------------------
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to