The code looks like this: >From the calling page:
<myTarget:targetFile/> The content of targetFile.cfm has some CF code in it, but is designed to only display HTML. I ran the code without the self-terminating slash in the cfmodule tag and it ran as expected. Oh yeah...forgot to mention that I'm running CFMX 7.0. I should also note that the calling page is being called by a cfimport tag itself...so the trail looks like this: parentPage uses cfimport to invoke problemPage.cfm which in turn uses cfimport to invoke targetFile.cfm. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marlon Moyer Sent: Monday, November 07, 2005 2:24 PM To: Dallas/Fort Worth ColdFusion User Group Mailing List Subject: Re: [DFW CFUG] CFIMPORT repeating? Do you mean something like this: <cfimport taglib="mycustomtags" prefix="ct"/> <ct:coolcustomtag> HTML Stuff </ct:coolcustomtag> If so, it's just like any other kind of custom tag where you'll need to check whether or not your thistag.executionmode equals "start" or "end" you could verify this by using this syntax on your cfmodule call: <cfmodule template="mycustomtags/coolcustomtag" /> This syntax with the trailing / should also run your code twice. HTH Marlon On 11/7/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I'm running into a strange problem where I'm using cfimport to display a > file, but for some reason it's running the template twice, and thus > display the content inside the template twice. There's no looping logic > inside the template so I know it's not the template. If I use cfmodule > to use the template, it works as expected. > > > > Has anyone experienced this before? > > > > Thanks, > > > > Rick Law > > Thomson PPC > > > > > > _______________________________________________ > List mailing list > Reply to DFWCFUG: > [email protected] > Subscribe/Unsubscribe: > http://lists1.safesecureweb.com/mailman/listinfo/list > List Archive: > http://lists1.safesecureweb.com/mailman/private/list > -- Marlon "I am the eagle, I live in high country, In rocky cathedrals that reach to the sky" _______________________________________________ List mailing list Reply to DFWCFUG: [email protected] Subscribe/Unsubscribe: http://lists1.safesecureweb.com/mailman/listinfo/list List Archive: http://lists1.safesecureweb.com/mailman/private/list _______________________________________________ List mailing list Reply to DFWCFUG: [email protected] Subscribe/Unsubscribe: http://lists1.safesecureweb.com/mailman/listinfo/list List Archive: http://lists1.safesecureweb.com/mailman/private/list
