Your custom tags need to use Attributes.Foo instead of Foo. For example, change bxwidth to attributes.bxwidth.
======================================================================= Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc Member of Team Macromedia Email : [EMAIL PROTECTED] Blog : www.camdenfamily.com/morpheus/blog Yahoo IM : morpheus "My ally is the Force, and a powerful ally it is." - Yoda > -----Original Message----- > From: FlashGuy [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 11, 2003 7:15 AM > To: CF-Talk > Subject: Re: Creating custom tag? > > > I'm not sure where to define the attributes. Below is my code > split up into files (dialog_start.cfm, dialog_end.cfm) and > test.cfm contains the <CFMODULE stuff. > > What am I doing wrong? The <CFMODULE attributes (bxtext, > bxwidth) are not being inserted. > > > dialog_start.cfm > ------------------- > > <!--- Start Date Created Box ---> > <table border="0" cellpadding="12" cellspacing="0" width="#bxwidth#"> > <tr> > <td> > <table border="0" cellpadding="0" cellspacing="0"> > <td><img > src="<cfoutput>#Request.App.image_root#</cfoutput>tbxl.gif" > width="2" height="17" border="0"></td> > <td><img > src="<cfoutput>#Request.App.image_root#</cfoutput>tbxm.gif" > width="12" height="17" border="0"></td> > <td > class="dialoghead"><cfoutput> #bxtext# </cfoutput></td> > <td width="bxwidth#"><img > src="<cfoutput>#Request.App.image_root#</cfoutput>tbxm.gif" > width="100%" height="17" border="0"></td> > <td><img > src="<cfoutput>#Request.App.image_root#</cfoutput>tbxr.gif" > width="2" height="17" border="0"></td> > </tr> > <tr> > <td><img > src="<cfoutput>#Request.App.image_root#</cfoutput>mbxl.gif" > width="2" height="100%" border="0"></td> > <td colspan="3" width="#Request.Att.bxwidth#" height="100%"> > <table border="0" cellpadding="8" cellspacing="0"> > <tr> > <td class="binputtype"> > > dialog_end.cfm > ------------------- > </td> > </tr> > </table> > </td> > <td><img > src="<cfoutput>#Request.App.image_root#</cfoutput>mbxr.gif" > width="2" height="100%" border="0"></td> > </tr> > <tr> > <td><img > src="<cfoutput>#Request.App.image_root#</cfoutput>bbxl.gif" > width="2" height="2" border="0"></td> > <td colspan="3"><img > src="<cfoutput>#Request.App.image_root#</cfoutput>mbxb.gif" > width="100%" height="2" border="0"></td> > <td><img > src="<cfoutput>#Request.App.image_root#</cfoutput>bbxr.gif" > width="2" height="2" border="0"></td> > </tr> > </table> > </td> > </tr> > </table> > <!--- End Date Created Box ---> > > > test.cfm > ------------------- > <CFMODULE TEMPLATE="dialog_start.cfm" BXTEXT="Wicked" > BXWIDTH="140"> <cfoutput> <input type="text" name="theTime" > value=" #DateFormat(todayDate, "dddd, mmmm dd, yyyy")#" > size="30" class="inputfield" onfocus="this.blur();"> <input > type="hidden" name="theTime" value="#DateFormat(todayDate, > "dddd, mmmm dd, yyyy")#"> </cfoutput> <CFMODULE > TEMPLATE="dialog_end.cfm"> > > > On Tue, 11 Mar 2003 07:52:50 -0500, FlashGuy wrote: > > > > > Opps...not quite. > > > > Would I put these in my application.cfm along with my APPLICATION. > > stuff? > > > > > > > referenced in the ATTRIBUTE Scope: > > > > > ATTRIBUTE.TEXT > > > > > ATTRIBUTE.BXHEIGHT > > > > > ATTRIBUTE.BXWIDTH > > > > > > On Tue, 11 Mar 2003 07:48:47 -0500, FlashGuy wrote: > > > > > Correct. It works great. > > > > > > Thanks > > > > > > > > > On Tue, 11 Mar 2003 07:47:01 -0500, Randell B Adkins wrote: > > > > > > > Yes just considering that the dialog_start would be > > > > the beginning part of your tabel then your inputs are > within that > > > > table elements itself. > > > > > > > > Then you will need to close your tables thus I am > > > > assuming that is the reason for the dialog_end > > > > > > > > > > > > > > > > >>> [EMAIL PROTECTED] 03/11/03 07:25AM >>> > > > > OK...so I don't have to do anything "fancy". Just cut my code > > > > below into two files. Like so: > > > > > > > > <CFMODULE TEMPLATE="../CustomTags/dialog_start.cfm" > TEXT="Whatever > > > > you want to say" BXHEIGHT="100" BEWIDTH="200"> <input... > > > > <input... > > > > <input... > > > > <CFMODULE TEMPLATE="../CustomTags/dialog_end.cfm"> > > > > > > > > > > > > ?? > > > > > > > > > > > > On Tue, 11 Mar 2003 07:20:11 -0500, Randell B Adkins wrote: > > > > > > > > > Sure. > > > > > > > > > > You can call the CustomTag such as CF_MyTag or using CFModule: > > > > > > > > > > CustomTag: > > > > > <CF_MyTag Text="Whatever you want to say" bxheight=100 > > > > > bxwidth=200> > > > > > > > > > > CFMODULE TEMPLATE="../CustomTags/MyTag.cfm" > TEXT="Whatever you > > > > > want > > > > to > > > > > say" BXHEIGHT="100" BEWIDTH="200"> > > > > > > > > > > Just remember now in your custom tag that the values of TEXT, > > > > BXHEIGHT > > > > > and BXWIDTH should be > > > > > referenced in the ATTRIBUTE Scope: > > > > > ATTRIBUTE.TEXT > > > > > ATTRIBUTE.BXHEIGHT > > > > > ATTRIBUTE.BXWIDTH > > > > > > > > > > The good thing about CFModule is the tag can reside anywhere. > > > > > Using the CF_MyTag approach, the tag must be in the > custom tags > > > > > directory specified in CF Administator. > > > > > > > > > > > > > > > > > > > > >>> [EMAIL PROTECTED] 03/11/03 06:56AM >>> > > > > > Hi, > > > > > > > > > > I have a box that I created that appears multiple times in my > > > > template. > > > > > The only thing that gets modified is the text and the width in > > > > pixels > > > > > based on ths ize on my <input> box. > > > > > > > > > > Is it possible to create a custom tag where I can > enter in only > > > > > the text and width measurements? For examle: > > > > > > > > > > <dialog text="Date Created" width="156"> > > > > > <input .... > > > > > <input .... > > > > > <input .... > > > > > </dialog> > > > > > > > > > > The above would draw a box around the <input tags and > insert the > > > > text > > > > > appropriately. Below is the code I current;y use. > > > > > > > > > > > > > > > <!--- Start Date Created Box ---> > > > > > <table border="0" cellpadding="12" cellspacing="0" > width="156"> > > > > > <tr> > > > > > <td> > > > > > <table border="0" cellpadding="0" cellspacing="0"> > > > > > <td><img > > > > > src="<cfoutput>#Request.App.image_root#</cfoutput>tbxl.gif" > > > > width="2" > > > > > height="17" border="0"></td> > > > > > <td><img > > > > > src="<cfoutput>#Request.App.image_root#</cfoutput>tbxm.gif" > > > > width="12" > > > > > height="17" border="0"></td> > > > > > <td > class="dialoghead"> Date Created </td> > > > > > <td width="156"><img > > > > > src="<cfoutput>#Request.App.image_root#</cfoutput>tbxm.gif" > > > > width="100%" > > > > > height="17" border="0"></td> > > > > > <td><img > > > > > src="<cfoutput>#Request.App.image_root#</cfoutput>tbxr.gif" > > > > width="2" > > > > > height="17" border="0"></td> > > > > > </tr> > > > > > <tr> > > > > > <td><img > > > > > src="<cfoutput>#Request.App.image_root#</cfoutput>mbxl.gif" > > > > width="2" > > > > > height="100%" border="0"></td> > > > > > <td colspan="3" width="100%" height="100%"> > > > > > <table border="0" cellpadding="8" cellspacing="0"> > > > > > <tr> > > > > > <td class="binputtype"> > > > > > <input type="hidden" > name="theTime" value="#now()#"> > > > > > <cfoutput> > > > > > <input type="text" > name="theTime" > > > > > value=" #DateFormat(todayDate, "dddd, mmmm dd, yyyy")#" > > > > size="30" > > > > > class="inputfield" READONLY> > > > > > </cfoutput> > > > > > </td> > > > > > </tr> > > > > > </table> > > > > > </td> > > > > > <td><img > > > > > src="<cfoutput>#Request.App.image_root#</cfoutput>mbxr.gif" > > > > width="2" > > > > > height="100%" border="0"></td> > > > > > </tr> > > > > > <tr> > > > > > <td><img > > > > > src="<cfoutput>#Request.App.image_root#</cfoutput>bbxl.gif" > > > > width="2" > > > > > height="2" border="0"></td> > > > > > <td colspan="3"><img > > > > > src="<cfoutput>#Request.App.image_root#</cfoutput>mbxb.gif" > > > > width="100%" > > > > > height="2" border="0"></td> > > > > > <td><img > > > > > src="<cfoutput>#Request.App.image_root#</cfoutput>bbxr.gif" > > > > width="2" > > > > > height="2" border="0"></td> > > > > > </tr> > > > > > </table> > > > > > </td> > > > > > </tr> > > > > > </table> > > > > > <!--- End Date Created Box ---> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------- > > > > > Colonel Nathan R. Jessop > > > > > Commanding Officer > > > > > Marine Ground Forces > > > > > Guatanamo Bay, Cuba > > > > > --------------------------------------------------- > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

