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
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.
-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
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
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
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
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
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
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
: 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
: 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
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
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
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
,
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
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
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
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
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
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
.
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
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
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
23 matches
Mail list logo