RE: Quick question on custom tags

2002-06-02 Thread Raymond Camden

One thing to watch out for - if you use cfmodule between a begin/end
cfmodule tag, you MUST use / notation of CF will get confused by the
/cfmodule call. IE:

cfmodule template=foo.cfm

cfmodule template=goo.cfm /

/cfmodule

(Sorry if someone else already pinged this - digging myself out from 2
weeks of email.)

===
Raymond Camden, ColdFusion Jedi Master for Macromedia

Email: [EMAIL PROTECTED]
Yahoo IM : morpheus

My ally is the Force, and a powerful ally it is. - Yoda 

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, May 30, 2002 1:17 PM
 To: CF-Talk
 Subject: RE: Quick question on custom tags
 
 
 Actually, you can..
 
 cfmodule template=whatever
 blah blah
 /cfmodule
 
 Works well.
 
 
 On Thu, 30 May 2002, Rob Baxter wrote:
 
  One problem with cfmodule is that you cannot take advantage 
 of the ThisTag
  type functionality you get from using the different 
 execution modes. In
  other words you can't have tags like
  
  cf_MyCustomTag
  blah blah
  /cf_MyCustomTag
  
  I think someone else alluded to it, but starting with CF5 
 you can add
  additional custom tag paths via the CF administrator. when you call
  cf_MyCustomTag CF will search the depth of the custom tag 
 tree(s) looking
  for a file called MyCustomTag.cfm.
  If you have 2 tags with the same name it will use the first 
 one it finds
  (you will see warnings about this in one of the server logs).
  
  /rob
  
  -Original Message-
  From: Eric J Hoffman [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, May 30, 2002 11:14 AM
  To: CF-Talk
  Subject: RE: Quick question on custom tags
  
  
  Use cfmodule to call it.Regards,
  
  Eric J. Hoffman
  Director of Internet Development
  DataStream Connexion, LLC
  (formerly Small Dog Design)
  
  -Original Message-
  From: Brian Eckerman [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, May 30, 2002 10:05 AM
  To: CF-Talk
  Subject: Quick question on custom tags
  
  
  Is it possible to call a custom tag that resides in a 
 folder other than
  the current folder.
  
  I am using cf_cf_formurl2attributes but I would like to 
 have one copy
  residing in a commonfiles folder at root.
  This would take something like 
 ../cf_cf_formurl2attributes  right?  It
  doesn't seem to work.
  
  Any help is appreciated.
  
  
  
 
__
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Quick question on custom tags

2002-05-31 Thread Philip Arnold - ASP

 Are there any internal implemenation details which make
 cfmodule faster than the cf_ syntax, or was this what you
 were refering to? Just curious...

CFMODULE naturally runs faster than CF_, it's to do with the way it's
calling the custom tag

There are general issues with using CF_ and the server caching the code,
but that can be got around

General advice is to use CFMODULE anyways, it doesn't look as pretty
in the code, but it does work better

Philip Arnold
Technical Director
Certified ColdFusion Developer
ASP Multimedia Limited
Switchboard: +44 (0)20 8680 8099
Fax: +44 (0)20 8686 7911

www.aspmedia.co.uk
www.aspevents.net

An ISO9001 registered company.

**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**


__
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Quick question on custom tags

2002-05-30 Thread Paul Giesenhagen

cfmodule template=../customtags/formurl2attributes.cfm
attribute=...

/cfmodule

Hope that helps!

Paul Giesenhagen
QuillDesign

- Original Message -
From: Brian Eckerman [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Thursday, May 30, 2002 10:05 AM
Subject: Quick question on custom tags


 Is it possible to call a custom tag that resides in a folder other than
 the current folder.

 I am using cf_cf_formurl2attributes but I would like to have one copy
 residing in a commonfiles folder at root.
 This would take something like ../cf_cf_formurl2attributes  right?  It
 doesn't seem to work.

 Any help is appreciated.
 
__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Quick question on custom tags

2002-05-30 Thread todd

Unless it's in the global custom tags directory, no.

The only other way is to call it via CFMODULE tag.


On Thu, 30 May 2002, Brian Eckerman wrote:

 Is it possible to call a custom tag that resides in a folder other than
 the current folder.
 
 I am using cf_cf_formurl2attributes but I would like to have one copy
 residing in a commonfiles folder at root.
 This would take something like ../cf_cf_formurl2attributes  right?  It
 doesn't seem to work.
 
 Any help is appreciated.
 
__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Quick question on custom tags

2002-05-30 Thread Kreig Zimmerman

  - Original Message - 
  From: Brian Eckerman 
  To: CF-Talk 
  Sent: Thursday, May 30, 2002 11:05 AM
  Subject: Quick question on custom tags


  Is it possible to call a custom tag that resides in a folder other than
  the current folder.

  I am using cf_cf_formurl2attributes but I would like to have one copy
  residing in a commonfiles folder at root.
  This would take something like ../cf_cf_formurl2attributes  right?  It
  doesn't seem to work.

  Any help is appreciated.
  
__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Quick question on custom tags

2002-05-30 Thread Joshua Tipton

Put it in your custom tags directory on your server or use cfmodule.

-Original Message-
From: Brian Eckerman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 30, 2002 11:05 AM
To: CF-Talk
Subject: Quick question on custom tags


Is it possible to call a custom tag that resides in a folder other than
the current folder.

I am using cf_cf_formurl2attributes but I would like to have one copy
residing in a commonfiles folder at root.
This would take something like ../cf_cf_formurl2attributes  right?  It
doesn't seem to work.

Any help is appreciated.

__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Quick question on custom tags

2002-05-30 Thread Philip Arnold - ASP

 Is it possible to call a custom tag that resides in a folder
 other than
 the current folder.

 I am using cf_cf_formurl2attributes but I would like to
 have one copy
 residing in a commonfiles folder at root.
 This would take something like ../cf_cf_formurl2attributes
 right?  It doesn't seem to work.

You can only call tags with CF_, you can't tell it the path (it works
it out)

Why not use CFMODULE ?

CFMODULE TEMPLATE=../cf_formurl2attributes

Philip Arnold
Technical Director
Certified ColdFusion Developer
ASP Multimedia Limited
Switchboard: +44 (0)20 8680 8099
Fax: +44 (0)20 8686 7911

www.aspmedia.co.uk
www.aspevents.net

An ISO9001 registered company.

**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**


__
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Quick question on custom tags

2002-05-30 Thread Tony_Petruzzi

cfmodule template=

Anthony Petruzzi
Webmaster
954-321-4703
[EMAIL PROTECTED]
http://www.sheriff.org


-Original Message-
From: Brian Eckerman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 30, 2002 11:05 AM
To: CF-Talk
Subject: Quick question on custom tags


Is it possible to call a custom tag that resides in a folder other than
the current folder.

I am using cf_cf_formurl2attributes but I would like to have one copy
residing in a commonfiles folder at root.
This would take something like ../cf_cf_formurl2attributes  right?  It
doesn't seem to work.

Any help is appreciated.

__
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Quick question on custom tags

2002-05-30 Thread Eric J Hoffman

Use cfmodule to call it.Regards,

Eric J. Hoffman
Director of Internet Development
DataStream Connexion, LLC
(formerly Small Dog Design)

-Original Message-
From: Brian Eckerman [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, May 30, 2002 10:05 AM
To: CF-Talk
Subject: Quick question on custom tags


Is it possible to call a custom tag that resides in a folder other than
the current folder.

I am using cf_cf_formurl2attributes but I would like to have one copy
residing in a commonfiles folder at root.
This would take something like ../cf_cf_formurl2attributes  right?  It
doesn't seem to work.

Any help is appreciated.

__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Quick question on custom tags

2002-05-30 Thread Christine Lawson

An alternative way is to specify the folder in the registry's 
HKEY_LOCAL_MACHINE\SOFTWARE\Allaire\ColdFusion\CurrentVersion\CustomTags\CFMLTagSearchPath
 Key.

Best Regards,
Christine 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 30, 2002 11:12 AM
To: CF-Talk
Subject: RE: Quick question on custom tags


cfmodule template=

Anthony Petruzzi
Webmaster
954-321-4703
[EMAIL PROTECTED]
http://www.sheriff.org


-Original Message-
From: Brian Eckerman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 30, 2002 11:05 AM
To: CF-Talk
Subject: Quick question on custom tags


Is it possible to call a custom tag that resides in a folder other than
the current folder.

I am using cf_cf_formurl2attributes but I would like to have one copy
residing in a commonfiles folder at root.
This would take something like ../cf_cf_formurl2attributes  right?  It
doesn't seem to work.

Any help is appreciated.


__
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Quick question on custom tags

2002-05-30 Thread Stephen Moretti

Brian,


 I am using cf_cf_formurl2attributes but I would like to have one copy
 residing in a commonfiles folder at root.
 This would take something like ../cf_cf_formurl2attributes  right?  It
 doesn't seem to work.


If you've only got one copy of the tag in your custom tags directory,
regardless of what subdirectory its in cf_formurl2attributes will still
work.

If you have more than one copy then cfmodule
name=commonfiles.formurl2attributes  will do the trick...

Regards

Stephen


__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Quick question on custom tags

2002-05-30 Thread Rob Baxter

One problem with cfmodule is that you cannot take advantage of the ThisTag
type functionality you get from using the different execution modes. In
other words you can't have tags like

cf_MyCustomTag
blah blah
/cf_MyCustomTag

I think someone else alluded to it, but starting with CF5 you can add
additional custom tag paths via the CF administrator. when you call
cf_MyCustomTag CF will search the depth of the custom tag tree(s) looking
for a file called MyCustomTag.cfm.
If you have 2 tags with the same name it will use the first one it finds
(you will see warnings about this in one of the server logs).

/rob

-Original Message-
From: Eric J Hoffman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 30, 2002 11:14 AM
To: CF-Talk
Subject: RE: Quick question on custom tags


Use cfmodule to call it.Regards,

Eric J. Hoffman
Director of Internet Development
DataStream Connexion, LLC
(formerly Small Dog Design)

-Original Message-
From: Brian Eckerman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 30, 2002 10:05 AM
To: CF-Talk
Subject: Quick question on custom tags


Is it possible to call a custom tag that resides in a folder other than
the current folder.

I am using cf_cf_formurl2attributes but I would like to have one copy
residing in a commonfiles folder at root.
This would take something like ../cf_cf_formurl2attributes  right?  It
doesn't seem to work.

Any help is appreciated.


__
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Quick question on custom tags

2002-05-30 Thread Stephen Moretti


 If you have more than one copy then cfmodule
 name=commonfiles.formurl2attributes  will do the trick...


Whoops... meant to say...

where commonfiles is the directory under CustomTags where the file
formurl2attributes.cfm lives.

You can have multiple levels of directories by adding them with dot notation
eg.

CustomTags/parentfolder/childone/grandchildtwo/formurl2attributes.cfm
is
cfmodule name=parentfolder.childone.grandchildtwo.formurl2attributes


Hope that helps

Stephen


__
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Quick question on custom tags

2002-05-30 Thread Pascal Peters

This is not true. You can perfectly use the ThisTag scope with cfmodule.
In fact, I do it all the time. You have to be carefull with nesting
cfmodules.

Pascal Peters
Certified ColdFusion Advanced Developer
Macromedia Certified Instructor
LR Technologies
Av. E. De Mot, 19
1000 BRUSSELS, BELGIUM
Tel: +32 2 639 68 70
Fax: +32 2 639 68 99
Email: [EMAIL PROTECTED]
Web: www.lrt.be


-Original Message-
From: Rob Baxter [mailto:[EMAIL PROTECTED]] 
Sent: donderdag 30 mei 2002 17:47
To: CF-Talk
Subject: RE: Quick question on custom tags


One problem with cfmodule is that you cannot take advantage of the
ThisTag type functionality you get from using the different execution
modes. In other words you can't have tags like

cf_MyCustomTag
blah blah
/cf_MyCustomTag

I think someone else alluded to it, but starting with CF5 you can add
additional custom tag paths via the CF administrator. when you call
cf_MyCustomTag CF will search the depth of the custom tag tree(s)
looking for a file called MyCustomTag.cfm. If you have 2 tags with the
same name it will use the first one it finds (you will see warnings
about this in one of the server logs).

/rob

-Original Message-
From: Eric J Hoffman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 30, 2002 11:14 AM
To: CF-Talk
Subject: RE: Quick question on custom tags


Use cfmodule to call it.Regards,

Eric J. Hoffman
Director of Internet Development
DataStream Connexion, LLC
(formerly Small Dog Design)

-Original Message-
From: Brian Eckerman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 30, 2002 10:05 AM
To: CF-Talk
Subject: Quick question on custom tags


Is it possible to call a custom tag that resides in a folder other than
the current folder.

I am using cf_cf_formurl2attributes but I would like to have one copy
residing in a commonfiles folder at root. This would take something
like ../cf_cf_formurl2attributes  right?  It doesn't seem to work.

Any help is appreciated.



__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Quick question on custom tags

2002-05-30 Thread Rob Baxter

you're right, I just poorly phrased my answer. What I meant was that you
lose the ability to take action between the start and end execution modes.
Because I don't think when you call cfmodule there is an end execution mode.

To me, the real benefit of having start/end tags in your custom tags is that
you can just embed content between them and then you have access to it in
the end execution mode of your tag. You lose this functionality when using
cfmodule.

/rob




-Original Message-
From: Pascal Peters [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 30, 2002 11:57 AM
To: CF-Talk
Subject: RE: Quick question on custom tags


This is not true. You can perfectly use the ThisTag scope with cfmodule.
In fact, I do it all the time. You have to be carefull with nesting
cfmodules.

Pascal Peters
Certified ColdFusion Advanced Developer
Macromedia Certified Instructor
LR Technologies
Av. E. De Mot, 19
1000 BRUSSELS, BELGIUM
Tel: +32 2 639 68 70
Fax: +32 2 639 68 99
Email: [EMAIL PROTECTED]
Web: www.lrt.be


-Original Message-
From: Rob Baxter [mailto:[EMAIL PROTECTED]]
Sent: donderdag 30 mei 2002 17:47
To: CF-Talk
Subject: RE: Quick question on custom tags


One problem with cfmodule is that you cannot take advantage of the
ThisTag type functionality you get from using the different execution
modes. In other words you can't have tags like

cf_MyCustomTag
blah blah
/cf_MyCustomTag

I think someone else alluded to it, but starting with CF5 you can add
additional custom tag paths via the CF administrator. when you call
cf_MyCustomTag CF will search the depth of the custom tag tree(s)
looking for a file called MyCustomTag.cfm. If you have 2 tags with the
same name it will use the first one it finds (you will see warnings
about this in one of the server logs).

/rob

-Original Message-
From: Eric J Hoffman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 30, 2002 11:14 AM
To: CF-Talk
Subject: RE: Quick question on custom tags


Use cfmodule to call it.Regards,

Eric J. Hoffman
Director of Internet Development
DataStream Connexion, LLC
(formerly Small Dog Design)

-Original Message-
From: Brian Eckerman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 30, 2002 10:05 AM
To: CF-Talk
Subject: Quick question on custom tags


Is it possible to call a custom tag that resides in a folder other than
the current folder.

I am using cf_cf_formurl2attributes but I would like to have one copy
residing in a commonfiles folder at root. This would take something
like ../cf_cf_formurl2attributes  right?  It doesn't seem to work.

Any help is appreciated.




__
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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Quick question on custom tags

2002-05-30 Thread Paul Giesenhagen

Rob,

You are incorrect, you can use the start stop ... cfmodule template =
../modules/custom_tag.cfmBlah Blah /cfmodule works just fine with the
execution modes.

Paul Giesenhagen
QuillDesign



 One problem with cfmodule is that you cannot take advantage of the ThisTag
 type functionality you get from using the different execution modes. In
 other words you can't have tags like

 cf_MyCustomTag
 blah blah
 /cf_MyCustomTag

 I think someone else alluded to it, but starting with CF5 you can add
 additional custom tag paths via the CF administrator. when you call
 cf_MyCustomTag CF will search the depth of the custom tag tree(s)
looking
 for a file called MyCustomTag.cfm.
 If you have 2 tags with the same name it will use the first one it finds
 (you will see warnings about this in one of the server logs).

 /rob

 -Original Message-
 From: Eric J Hoffman [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, May 30, 2002 11:14 AM
 To: CF-Talk
 Subject: RE: Quick question on custom tags


 Use cfmodule to call it.Regards,

 Eric J. Hoffman
 Director of Internet Development
 DataStream Connexion, LLC
 (formerly Small Dog Design)

 -Original Message-
 From: Brian Eckerman [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, May 30, 2002 10:05 AM
 To: CF-Talk
 Subject: Quick question on custom tags


 Is it possible to call a custom tag that resides in a folder other than
 the current folder.

 I am using cf_cf_formurl2attributes but I would like to have one copy
 residing in a commonfiles folder at root.
 This would take something like ../cf_cf_formurl2attributes  right?  It
 doesn't seem to work.

 Any help is appreciated.


 
__
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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Quick question on custom tags

2002-05-30 Thread Dave Watts

 you're right, I just poorly phrased my answer. What I meant 
 was that you lose the ability to take action between the start 
 and end execution modes. Because I don't think when you call 
 cfmodule there is an end execution mode.

That's not correct either, though. You have an end execution mode in any
custom tag that has an end tag:

cf_foo.../cf_foo
cf_foo /
cfmodule template=foo.cfm.../cfmodule
cfmodule template=foo.cfm /

In addition, you can have whatever stuff you like between the start and end
tags in either case.

 To me, the real benefit of having start/end tags in your custom 
 tags is that you can just embed content between them and then 
 you have access to it in the end execution mode of your tag. You 
 lose this functionality when using cfmodule. 

Again, just for clarification, this isn't correct. You don't lose that
functionality with CFMODULE.

Dave Watts, CTO, Fig Leaf Software 
http://www.figleaf.com/ 
phone: 202-797-5496 
fax: 202-797-5444
__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Quick question on custom tags

2002-05-30 Thread Rob Baxter

Ah, thanks guys. I wasn't aware you could have /cfmodule tag. Good to
know.

One question, and maybe this is what Pascal meant in his original reply.
What happens if in my custom tag I call another cfmodule  /cfmodule?
Will the parser barf?

/rob

-Original Message-
From: Paul Giesenhagen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 30, 2002 12:27 PM
To: CF-Talk
Subject: Re: Quick question on custom tags


Rob,

You are incorrect, you can use the start stop ... cfmodule template =
../modules/custom_tag.cfmBlah Blah /cfmodule works just fine with the
execution modes.

Paul Giesenhagen
QuillDesign



 One problem with cfmodule is that you cannot take advantage of the ThisTag
 type functionality you get from using the different execution modes. In
 other words you can't have tags like

 cf_MyCustomTag
 blah blah
 /cf_MyCustomTag

 I think someone else alluded to it, but starting with CF5 you can add
 additional custom tag paths via the CF administrator. when you call
 cf_MyCustomTag CF will search the depth of the custom tag tree(s)
looking
 for a file called MyCustomTag.cfm.
 If you have 2 tags with the same name it will use the first one it finds
 (you will see warnings about this in one of the server logs).

 /rob

 -Original Message-
 From: Eric J Hoffman [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, May 30, 2002 11:14 AM
 To: CF-Talk
 Subject: RE: Quick question on custom tags


 Use cfmodule to call it.Regards,

 Eric J. Hoffman
 Director of Internet Development
 DataStream Connexion, LLC
 (formerly Small Dog Design)

 -Original Message-
 From: Brian Eckerman [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, May 30, 2002 10:05 AM
 To: CF-Talk
 Subject: Quick question on custom tags


 Is it possible to call a custom tag that resides in a folder other than
 the current folder.

 I am using cf_cf_formurl2attributes but I would like to have one copy
 residing in a commonfiles folder at root.
 This would take something like ../cf_cf_formurl2attributes  right?  It
 doesn't seem to work.

 Any help is appreciated.




__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Quick question on custom tags

2002-05-30 Thread Dave Watts

 What happens if in my custom tag I call another cfmodule 
 /cfmodule? Will the parser barf?

The only situation where you might have a problem is when you convert
something like this to CFMODULE:

cf_foo
  cf_bar
/cf_foo

Of course, if you do this:

cfmodule template=foo.cfm
  cfmodule template=bar.cfm
/cfmodule

then CF will think that the closing CFMODULE goes with the second opening
CFMODULE, not the first. You can address that by making sure that each
opening tag has a closing tag. If the nested tag is empty, you can use the
XML syntax for designating an empty element:

cfmodule template=foo.cfm
  cfmodule template=bar.cfm /
/cfmodule

Dave Watts, CTO, Fig Leaf Software 
http://www.figleaf.com/ 
phone: 202-797-5496 
fax: 202-797-5444
__
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Quick question on custom tags

2002-05-30 Thread Philip Arnold - ASP

 Ah, thanks guys. I wasn't aware you could have /cfmodule
 tag. Good to know.

 One question, and maybe this is what Pascal meant in his
 original reply.
 What happens if in my custom tag I call another cfmodule
  /cfmodule?
 Will the parser barf?

Nah, it works happily - in fact, CFMODULE is faster than CF_ so it
should work better for you

Philip Arnold
Technical Director
Certified ColdFusion Developer
ASP Multimedia Limited
Switchboard: +44 (0)20 8680 8099
Fax: +44 (0)20 8686 7911

www.aspmedia.co.uk
www.aspevents.net

An ISO9001 registered company.

**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**


__
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Quick question on custom tags

2002-05-30 Thread todd

Actually, you can..

cfmodule template=whatever
blah blah
/cfmodule

Works well.


On Thu, 30 May 2002, Rob Baxter wrote:

 One problem with cfmodule is that you cannot take advantage of the ThisTag
 type functionality you get from using the different execution modes. In
 other words you can't have tags like
 
 cf_MyCustomTag
 blah blah
 /cf_MyCustomTag
 
 I think someone else alluded to it, but starting with CF5 you can add
 additional custom tag paths via the CF administrator. when you call
 cf_MyCustomTag CF will search the depth of the custom tag tree(s) looking
 for a file called MyCustomTag.cfm.
 If you have 2 tags with the same name it will use the first one it finds
 (you will see warnings about this in one of the server logs).
 
 /rob
 
 -Original Message-
 From: Eric J Hoffman [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, May 30, 2002 11:14 AM
 To: CF-Talk
 Subject: RE: Quick question on custom tags
 
 
 Use cfmodule to call it.Regards,
 
 Eric J. Hoffman
 Director of Internet Development
 DataStream Connexion, LLC
 (formerly Small Dog Design)
 
 -Original Message-
 From: Brian Eckerman [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, May 30, 2002 10:05 AM
 To: CF-Talk
 Subject: Quick question on custom tags
 
 
 Is it possible to call a custom tag that resides in a folder other than
 the current folder.
 
 I am using cf_cf_formurl2attributes but I would like to have one copy
 residing in a commonfiles folder at root.
 This would take something like ../cf_cf_formurl2attributes  right?  It
 doesn't seem to work.
 
 Any help is appreciated.
 
 
 
__
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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Quick question on custom tags

2002-05-30 Thread todd

Yes you can.

#thistag.executionmode# will always return a start / end.

~Todd


On Thu, 30 May 2002, Rob Baxter wrote:

 you're right, I just poorly phrased my answer. What I meant was that you
 lose the ability to take action between the start and end execution modes.
 Because I don't think when you call cfmodule there is an end execution mode.
 
 To me, the real benefit of having start/end tags in your custom tags is that
 you can just embed content between them and then you have access to it in
 the end execution mode of your tag. You lose this functionality when using
 cfmodule.
 
 /rob
 
 
 
 
 -Original Message-
 From: Pascal Peters [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, May 30, 2002 11:57 AM
 To: CF-Talk
 Subject: RE: Quick question on custom tags
 
 
 This is not true. You can perfectly use the ThisTag scope with cfmodule.
 In fact, I do it all the time. You have to be carefull with nesting
 cfmodules.
 
 Pascal Peters
 Certified ColdFusion Advanced Developer
 Macromedia Certified Instructor
 LR Technologies
 Av. E. De Mot, 19
 1000 BRUSSELS, BELGIUM
 Tel: +32 2 639 68 70
 Fax: +32 2 639 68 99
 Email: [EMAIL PROTECTED]
 Web: www.lrt.be
 
 
 -Original Message-
 From: Rob Baxter [mailto:[EMAIL PROTECTED]]
 Sent: donderdag 30 mei 2002 17:47
 To: CF-Talk
 Subject: RE: Quick question on custom tags
 
 
 One problem with cfmodule is that you cannot take advantage of the
 ThisTag type functionality you get from using the different execution
 modes. In other words you can't have tags like
 
 cf_MyCustomTag
 blah blah
 /cf_MyCustomTag
 
 I think someone else alluded to it, but starting with CF5 you can add
 additional custom tag paths via the CF administrator. when you call
 cf_MyCustomTag CF will search the depth of the custom tag tree(s)
 looking for a file called MyCustomTag.cfm. If you have 2 tags with the
 same name it will use the first one it finds (you will see warnings
 about this in one of the server logs).
 
 /rob
 
 -Original Message-
 From: Eric J Hoffman [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, May 30, 2002 11:14 AM
 To: CF-Talk
 Subject: RE: Quick question on custom tags
 
 
 Use cfmodule to call it.Regards,
 
 Eric J. Hoffman
 Director of Internet Development
 DataStream Connexion, LLC
 (formerly Small Dog Design)
 
 -Original Message-
 From: Brian Eckerman [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, May 30, 2002 10:05 AM
 To: CF-Talk
 Subject: Quick question on custom tags
 
 
 Is it possible to call a custom tag that resides in a folder other than
 the current folder.
 
 I am using cf_cf_formurl2attributes but I would like to have one copy
 residing in a commonfiles folder at root. This would take something
 like ../cf_cf_formurl2attributes  right?  It doesn't seem to work.
 
 Any help is appreciated.
 
 
 
 
 
__
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Quick question on custom tags

2002-05-30 Thread Rob Baxter

Why is cfmodule faster? I assume it might be a bit faster on the first call
to a tag since the cf_ method requires that CF search the tree of installed
tags to find the correct template to run, whereas with cf module you can
specify the exact location. However, I've noticed that CF seems to cache the
location of recently used custom tags, probably to address this very issue.
So presumably, subsequent calls using cf_ or cfmodule would perform the
same. Of course I have no idea on how long this cache persists or what it's
maximum size might be, so in general it's probably safe to say cfmodule is
slightly faster.

Are there any internal implemenation details which make cfmodule faster than
the cf_ syntax, or was this what you were refering to? Just curious...

/rob

-Original Message-
From: Philip Arnold - ASP [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 30, 2002 12:54 PM
To: CF-Talk
Subject: RE: Quick question on custom tags


Nah, it works happily - in fact, CFMODULE is faster than CF_ so it
should work better for you

Philip Arnold
Technical Director
Certified ColdFusion Developer
ASP Multimedia Limited
Switchboard: +44 (0)20 8680 8099
Fax: +44 (0)20 8686 7911

www.aspmedia.co.uk
www.aspevents.net

An ISO9001 registered company.

**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**



__
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Quick question on custom tags

2002-05-30 Thread todd

I would have to say because in CF module, you're telling the CFServer 
exactly where it is.  Otherwise, CFServer has to hunt locally and then 
hunt globally for the tag you just called.

I could be wrong.

~Todd


On Thu, 30 May 2002, Rob Baxter wrote:

 Why is cfmodule faster? I assume it might be a bit faster on the first call
 to a tag since the cf_ method requires that CF search the tree of installed
 tags to find the correct template to run, whereas with cf module you can
 specify the exact location. However, I've noticed that CF seems to cache the
 location of recently used custom tags, probably to address this very issue.
 So presumably, subsequent calls using cf_ or cfmodule would perform the
 same. Of course I have no idea on how long this cache persists or what it's
 maximum size might be, so in general it's probably safe to say cfmodule is
 slightly faster.
 
 Are there any internal implemenation details which make cfmodule faster than
 the cf_ syntax, or was this what you were refering to? Just curious...
 
 /rob
 
 -Original Message-
 From: Philip Arnold - ASP [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, May 30, 2002 12:54 PM
 To: CF-Talk
 Subject: RE: Quick question on custom tags
 
 
 Nah, it works happily - in fact, CFMODULE is faster than CF_ so it
 should work better for you
 
 Philip Arnold
 Technical Director
 Certified ColdFusion Developer
 ASP Multimedia Limited
 Switchboard: +44 (0)20 8680 8099
 Fax: +44 (0)20 8686 7911
 
 www.aspmedia.co.uk
 www.aspevents.net
 
 An ISO9001 registered company.
 
 **
 This email and any files transmitted with it are confidential and
 intended solely for the use of the individual or entity to whom they
 are addressed. If you have received this email in error please notify
 the system manager.
 **
 
 
 
 
__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists