RE: Stupid custom tag question

2005-08-25 Thread Dan G. Switzer, II
Barney, Thanks for that, Dan, but I'd actually mistyped. I wanted the closing tag to still execute, just skipping the body. Not surprisingly, I was also writing a caching tag, the difference being that the cached content were generated Flash movies, so the output operation (which takes place in

Re: Stupid custom tag question

2005-08-25 Thread Barney Boisvert
A clever idea, but CF throws an error saying the variable is read-only, and can't be set by the user. Bummer. On 8/25/05, Dan G. Switzer, II [EMAIL PROTECTED] wrote: Barney, Thanks for that, Dan, but I'd actually mistyped. I wanted the closing tag to still execute, just skipping the body.

RE: Stupid custom tag question

2005-08-25 Thread Dan G. Switzer, II
-Original Message- From: Barney Boisvert [mailto:[EMAIL PROTECTED] Sent: Thursday, August 25, 2005 1:12 PM To: CF-Talk Subject: Re: Stupid custom tag question A clever idea, but CF throws an error saying the variable is read-only, and can't be set by the user. Bummer. On 8/25/05, Dan G

Re: Stupid custom tag question

2005-08-25 Thread Barney Boisvert
That sounds like it might work, but it makes the conditionals kind of nasty, because sExMode = end and thistag.ExMode = end is different than sExMode = end and thisTag.exMode = start. So you'd need a four-way conditional, in addition to a check for start mode at the top to check whether you

Re: Stupid custom tag question

2005-08-24 Thread Barney Boisvert
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

RE: Stupid custom tag question

2005-08-24 Thread Snake
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

Re: Stupid custom tag question

2005-08-24 Thread Daniel Mackey
You can do: cfif thisTag.executionMode eq Start Do Nothing cfelse Do your work /cfif Barney Boisvert wrote: 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

RE: Stupid custom tag question

2005-08-24 Thread Dave Francis
can't you just comment out? !--- cfif this.executionMode EQ start cfexit method=goToJustAfterClosingTag / /cfif --- -Original Message- From: Barney Boisvert [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 24, 2005 1:34 PM To: CF-Talk Subject: Re: Stupid custom tag question

Re: Stupid custom tag question

2005-08-24 Thread Barney Boisvert
: 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

RE: Stupid custom tag question

2005-08-24 Thread Dave Francis
: Wednesday, August 24, 2005 1:49 PM 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

RE: Stupid custom tag question

2005-08-24 Thread Snake
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

RE: Stupid custom tag question

2005-08-24 Thread Ian Skinner
Something wrong with the relatively trivial: Inside your custom tag: cfif attributes.doThis EQ TRUE Do what you want /cfif Called with a page like this: cf_myCustTag doThis=True -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA C code. C code

Re: Stupid custom tag question

2005-08-24 Thread Barney Boisvert
I don't want to ignore the content generated by the body, I want to skip execution of the body. In other words, it's the processing I want to avoid, not the output. Like how CFIF works, except that the closing tag still executes. cheers, barneyb On 8/24/05, Snake [EMAIL PROTECTED] wrote: You

Re: Stupid custom tag question

2005-08-24 Thread Daniel Mackey
, 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

Re: Stupid custom tag question

2005-08-24 Thread Daniel Mackey
I think your going to have to put a CFIF to decide as I cant see an alternative. cf_myTag cfif someExpression //Run body /cfif /cf_myTag Barney Boisvert wrote: I don't want to ignore the content generated by the body, I want to skip execution of the body. In other words, it's

Re: Stupid custom tag question

2005-08-24 Thread Barney Boisvert
The body of the tag is the stuff between the opening and closing tags in the calling markup. For example: c:mytag this is the tag body of the tag c:mytag /c:mytag cheers, barneyb On 8/24/05, Dave Francis [EMAIL PROTECTED] wrote: But any part of the body of the tag will be either start or

Re: Stupid custom tag question

2005-08-24 Thread Barney Boisvert
That doesn't work, because it forces the optional processing to be defined INSIDE the custom tag, rather than in the CALLING template. cheers, barneyb On 8/24/05, Ian Skinner [EMAIL PROTECTED] wrote: Something wrong with the relatively trivial: Inside your custom tag: cfif

RE: Stupid custom tag question

2005-08-24 Thread Dave Francis
Boisvert [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 24, 2005 2:22 PM To: CF-Talk Subject: Re: Stupid custom tag question The body of the tag is the stuff between the opening and closing tags in the calling markup. For example: c:mytag this is the tag body of the tag c:mytag /c:mytag

RE: Stupid custom tag question

2005-08-24 Thread Matt Osbun
Osbun Web Developer Health Systems, International -Original Message- From: Barney Boisvert [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 24, 2005 12:49 PM To: CF-Talk Subject: Re: Stupid custom tag question I want to execute the start tag, then OPTIONALLY execute the body of the tag

RE: Stupid custom tag question

2005-08-24 Thread Gaulin, Mark
. Mark -Original Message- From: Barney Boisvert [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 24, 2005 2:08 PM To: CF-Talk Subject: Re: Stupid custom tag question I don't want to ignore the content generated by the body, I want to skip execution of the body. In other words, it's

RE: Stupid custom tag question

2005-08-24 Thread Dan G. Switzer, II
Barney, 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 You should be able to do cancel the entire

Re: Stupid custom tag question

2005-08-24 Thread Barney Boisvert
Thanks for that, Dan, but I'd actually mistyped. I wanted the closing tag to still execute, just skipping the body. Not surprisingly, I was also writing a caching tag, the difference being that the cached content were generated Flash movies, so the output operation (which takes place in the