Use caller.forceLinkTargetBlank from within your tag.
cheers,
barneyb
On 9/9/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hi,
I have a custom tag. It needs to have access to a UDF that I've created.
The UDF is stored in a file called application_udfs.cfm which is CFINCLUDED
in the
Could the problem be that this custom tag is being imported with CFIMPORT on
the page, and then it's being called? When you CFIMPORT would it then define
the UDF and then try again when you call the particular custom tag?
Dave
-Original Message-
From: Phillips, Dave
Sent: Friday,
Typically I have my udf library included - I have a check to first see if
that 'definition' already exists - that way I'm guarenteed to not include
multiple 'udf libraries' w/in any document like this
cfif not(isdefined('request.udf_SomeFn'))
cfscript
Function udf_SomeFN()
{
}
udfs...
DUH! My brain isn't functioning today!!!
Thanks BB.
Dave
-Original Message-
From: Barney Boisvert [mailto:[EMAIL PROTECTED]
Sent: Friday, September 09, 2005 3:49 PM
To: CF-Talk
Subject: Re: Custom Tag question
Use caller.forceLinkTargetBlank from within your tag.
cheers,
barneyb
http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/reusec22.htm
http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/reusec23.htm
-Original Message-
From: Thane Sherrington [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 20 April 2005 7:17
To: CF-Talk
Subject: Custom tag question
At 08:33 PM 19/04/2005, James Holmes wrote:
http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/reusec22.htm
http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/reusec23.htm
Thanks.
T
---
[This E-mail scanned for viruses by Declude Anti-Virus]
Just an FYI, but you can also build nested tags as well:
cf_parent
cf_child
cf_grandkid
/cf_child
/cf_parent
Of course, I've only rarely done this for a real custom tag.
On 4/19/05, Thane Sherrington [EMAIL PROTECTED] wrote:
At 08:33 PM 19/04/2005, James Holmes wrote:
I have a custom tag that has a start and end tag in cfml.
For example:
cf_mytag
some text
/cf_mytag
I can't seem to get the some text to stop appearing on the
page. I've tried enablecfoutputonly=yes and cfsilent in
the tag itself but I still see the text between the tags on
the
Thanks Dave!
That did the trick. I searched the cf docs and google and couldn't find this
info.
Regards,
Howie
~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and
Like this?
http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/reusec23.htm
-Original Message-
From: Howie Hamlin [mailto:[EMAIL PROTECTED]
Sent: Monday, 14 March 2005 10:05
To: CF-Talk
Subject: Re: Custom tag question
Thanks Dave!
That did the trick. I searched the cf docs
do I need to do anything special to make sure that the structure is
maintained between the start and end tags?
No, what you have created in the start section is available in the end section.
--
___
See some cool custom tags here:
do I need to do anything special to make sure that the structure is
maintained between the start and end tags?
No, what you have created in the start section is available in the end
section.
Excellent!I'm using the custom tag approach to interface with a UDF that
I've already written...
Evaluate is right - but when the evaluation is run, it's run in the
context of the custom tag, not the calling template. The tag has no idea
what get_data is unless you pass it. In your example below, you did not
pass it, so it can't use the query. Did you pass it and just forget to
include it in
What that is doing os converting the get_data.summary_id to
the actual value before it is past over to the customtag.
One being a string value and the other a value.
Might try to convert the ID to a VAL within the call to the customtag
cf_thistag condition=VAL(get_data.summary_id) eq 263012
, that my child may have
peace'...
- Thomas Paine, The American Crisis
Let's Roll
- Todd Beamer, Flight 93
-Original Message-
From: Randell B Adkins [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 11:58 AM
To: CF-Talk
Subject: Re: Custom Tag Question
What
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 2:22 PM
To: CF-Talk
Subject: RE: Custom Tag Question
Actually, you have two choices here:
you can either use pound signs:
cf_thistag condition=#get_data.summary_id# eq 263012
(this will dereferenc get_data.summary_id before passing
: Tuesday, June 03, 2003 2:03 PM
To: CF-Talk
Subject: RE: Custom Tag Question
I don't think so. That would execute when the tag calls. I _believe_ he
wants the condition to be run inside the tag, in this case, every time
for every row in a query
Thanks, but I get the error : cannot convert the value
VAL(get_data.summary_id) eq 263012 to a boolean
-Original Message-
From: Randell B Adkins [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 2:58 PM
To: CF-Talk
Subject: Re: Custom Tag Question
What that is doing os converting
Brian, thanks so much.this worked: cfif
evaluate(caller.#attributes.collinkcondition#)
-Original Message-
From: Bryan Love [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 4:22 PM
To: CF-Talk
Subject: RE: Custom Tag Question
Actually, you have two choices here:
you can either
That is because you did not pass the query to the custom tag, but the
name of the query. You can fix this two ways.
1) In your custom tag, do cfoutput
query=caller.#attributes.queryname#, however, in general, it's not
good practice to refer to variables outside the custom tag.
2) Pass the actual
Try something LIKE this inside of your custom tag:
cfset theQuery = caller.#attributes.queryname#
cfoutput query=theQuery
blah blah
/cfoutput
Thanks,
André
-Original Message-
From: John Stanley [mailto:[EMAIL PROTECTED]
Sent: 11 March 2003 14:29
To: CF-Talk
Subject: Custom
Raymond, thank you very much for your help. that was it.
-Original Message-
From: Raymond Camden [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 11, 2003 9:38 AM
To: CF-Talk
Subject: RE: Custom Tag Question
That is because you did not pass the query to the custom tag, but the
name
cf_mytag queryname=#get_users#
Looks like you need to put # around the variable that you are passing to the
tag
otherwise the tag will see it as a text string.
- Original Message -
From: John Stanley [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, March 11, 2003 7:28 AM
#
td
img src=../catImages/#ThumbNail# border=0 alt=#ID#
/td
/cfoutput
cfset BeginRow = BeginRow + NumOfCol
/tr
/cfloop
/table
-Original Message-
From: Chad Gray [mailto:[EMAIL PROTECTED]]
Sent: donderdag 11 april 2002 22:45
To: CF-Talk
Subject: RE: Custom Tag
I am trying to write a super simple custom tag but im running into problems
getting CFQuery information into the custom tag. Is it possible to pass
Query data into a custom tag?
Yes. The trick is evaluating it before passing it, you can't pass it by reference.
It becomes an attribute of
I am trying to write a super simple custom tag but im
running into problems getting CFQuery information into
the custom tag. Is it possible to pass Query data into
a custom tag?
Yes. The trick is evaluating it before passing it, you can't
pass it by reference. It becomes an
Got this reply via email, and it does exactly what I needed... Thanks
Bryan.
Tuesday, July 17, 2001 1:03 PM
My posts don't seem to go through for a long time so I am sending this
to you
directly.
Try saving the content in a variable first.
cfset content = thistag.generatedContent
then clear
Simply do:
CFSET ThisTag.GeneratedContent =
Make sure you do it in ThisTag.ExecutionMode EQ End.
===
Raymond Camden, Principal Spectra Compliance Engineer for Macromedia
Email : [EMAIL PROTECTED]
ICQ UIN : 3679482
My ally
In the end portion of the tag you need to set ThisTag.GeneratedContent to
nothing. Do this after you output what you need to output.
At 11:38 AM 7/17/2001 -0400, you wrote:
Please tell me if the following is possible, and how: I want to stifle
the output of the area between cf_MyTag and
Please tell me if the following is possible, and how: I want to
stifle the output of the area between cf_MyTag and /cf_MyTag.
Yes, it's possible. Simply clear the value of ThisTag.GeneratedContent when
you're done with it.
### MyTag.cfm (custom tag) ###:
rush answer - sorry. but if I understand correctly...
== callingtemplate.cfm
cf_stripContent
This is the Content.
/cf_stripContent
cfoutput#PageContent#/cfoutput
== end callingtemplate.cfm
== stripcontent.cfm
cfif ThisTag.ExecutionMode is start
cfelse
cfset caller.PageContent =
Jamie Jackson wrote:
Please tell me if the following is possible, and how: I want to stifle
the output of the area between cf_MyTag and /cf_MyTag.
Here is a simplified example: I the following output: Hello World, I
do want to display this sentence.
### Calling script ###:
cf_MyTag
Try saving the content in a variable first.
cfset content = thistag.generatedContent
then clear the content.
cfset thistag.generatedContent =
then do your replacement.
cfoutput#ReplaceNoCase(content, 'do NOT',
'do')#/cfoutput
- Original Message -
From: Jamie Jackson [EMAIL
contracts, and sleep!
Work hard, play harder!
"You could try another approach."
My token Dave Watts quote (just trying to fit in. :)
From: "Leong Yew" [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: Custom tag question
Date: Sat, 13 May 2000 14
using
additional nested tags inside the custom tags?
-Original Message-
From: Larry Meadors [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 13, 2000 12:56 PM
To: [EMAIL PROTECTED]
Subject: Re: Custom tag question
Are you looking for thistag.generatedcontent?
Larry
[EMAIL PROTECTED] 5/12
Are you looking for thistag.generatedcontent?
Larry
[EMAIL PROTECTED] 5/12 8:07p
For instance if I use a custom tag like this:
cfset var = "text"
cf_customTag
Long #var# string with variables embedded...
/cf_CustomTag
How do I capture what is nested within the tags into a variable in
36 matches
Mail list logo