You can use thistag.generatedcontent to decide what to do with the content
of tag.

Russ 

-----Original Message-----
From: Barney Boisvert [mailto:[EMAIL PROTECTED] 
Sent: 24 August 2005 18:49
To: CF-Talk
Subject: Re: Stupid custom tag question

I want to execute the start tag, then OPTIONALLY execute the body of the
tag, and then execute the close tag.  thistag.executionmode will only tell
me which part of the tag (opening or closing) is currently execution, and
doesn't tell me anything about the body of the tag.

As near as I can tell, this is impossible with CF (though trivial with JSP).

cheers,
barneyb

On 8/24/05, Snake <[EMAIL PROTECTED]> wrote:
> <cfif thistag.executionmode is "end">
> Do this
> </cfif>
> 
> Will only do anything on the closing tag.
> 
> 
> -----Original Message-----
> From: Barney Boisvert [mailto:[EMAIL PROTECTED]
> Sent: 24 August 2005 18:34
> To: CF-Talk
> Subject: Re: Stupid custom tag question
> 
> Whoops, I screwed up.  I want to skip the body, but still execute the 
> closing tag.  So that should be method="goToJustBEFOREClosingTag".
> Not sure what I was thinking.  To complete the thought, method="exittag"
> does what I described below, but that's NOT what I want.
> 
> On 8/24/05, Barney Boisvert <[EMAIL PROTECTED]> wrote:
> > Is there a way to, in the opening tag of a custom tag, tell the 
> > custom tag to skip evaluation of it's body?
> >
> > <p:mytag>
> >   i don't want to do this
> > </p:mytag>
> >
> > mytag.cfm:
> > <cfif this.executionMode EQ "start">
> >   <cfexit method="goToJustAfterClosingTag" /> </cfif>
> >
> > Thanks,
> > barneyb
> >
> > --
> > Barney Boisvert
> > [EMAIL PROTECTED]
> > 360.319.6145
> > http://www.barneyb.com/
> >
> > Got Gmail? I have 50 invites.
> >
> 
> 
> --
> Barney Boisvert
> [EMAIL PROTECTED]
> 360.319.6145
> http://www.barneyb.com/
> 
> Got Gmail? I have 50 invites.
> 
> 
> 
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:216221
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to