> 1) Between your custom tags do the following...
> this is <cfoutput>#variables.mytest#</cfoutput>
Right, the original question was whether there was any way to avoid having
to do this.
Basically, I want the functionality that <cfmail></cfmail> has in being able
to parse variables without <cfoutput></cfoutput> tags. Is this even
possible?
Thanks,
Evan
> > -----Original Message-----
> > From: Evan Lavidor [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, 4 August 2001 6:15 AM
> > To: CF-Talk
> > Subject: RE: Help with a <cf_custom></cf_custom> custom tag
> >
> > I don't quite get it.
> >
> > Let's say I have this as the custom tag:
> >
> > <cfif ThisTag.ExecutionMode IS "END">
> > <p><b><i>#ThisTag.GeneratedContent#<i></b></p>
> > <cfset ThisTag.ExecutionMode = "">
> > </cfif>
> >
> >
> > And my call to it is this:
> >
> > <cfset variables.mytest = "a test">
> >
> > <cf_mycustomtag>
> > this is #variables.mytest#
> > </cf_mycustomtag>
> >
> >
> > This will give me:
> >
> > this is this is #variables.mytest#
> >
> > in bold and italic font.
> >
> >
> > I want it to give me:
> >
> > this is a test
> >
> > in bold and italic font.
> >
> >
> > Can I get that without having to nest it in a <cfoutput> or something?
> I'm
> > thinking along the lines of <cfmail>, where it will automatically
> Evaluate
> > variables inside it. Is that sort of functionality possible?
> >
> > Thanks,
> >
> > Evan
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > > -----Original Message-----
> > > From: Ben Forta [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, August 03, 2001 3:35 PM
> > > To: CF-Talk
> > > Subject: RE: Help with a <cf_custom></cf_custom> custom tag
> > >
> > >
> > > You don't have to. Once ThisTag.ExecutionMode is "END" all
> > > expressions (and
> > > tags) in the body will have been processed. You'll have access to
> > > the output
> > > via ThisTag.GeneratedContent.
> > >
> > > --- Ben
> > >
> > >
> > > -----Original Message-----
> > > From: Evan Lavidor [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, August 03, 2001 2:58 PM
> > > To: CF-Talk
> > > Subject: Help with a <cf_custom></cf_custom> custom tag
> > >
> > >
> > > I'm working with my first ColdFusion custom tag that's a tag
> > > pair. I've got
> > > it working mostly the way I'd like, but I've come up against
> > > something that
> > > I don't think I'm going to be able to do, but thought I'd ask
> anyway.
> > >
> > > Usage is going to be:
> > >
> > > <cf_mycustomtag>
> > > I'll have some text here which the tag will do something with.
> > > </cf_mycustomtag>
> > >
> > >
> > > But what might be there is the following:
> > >
> > > <cf_mycustomtag>
> > > I'll have #variables.text# here which the tag will do something
> with.
> > > </cf_mycustomtag>
> > >
> > >
> > > How can I get the tag to Evaulate the CF variables in between it.
> Can I?
> > > Seems like I'd first have to prefix it with the caller scope
> > > (which doesn't
> > > seem very doable even with RegEx) and then throw an Evaluate
> statement
> > > around it.
> > >
> > > Any ideas?
> > >
> > > Thanks,
> > >
> > > Evan
> > >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists