cfimport vs. cfmodule/cf_MyTag for Custom Tag Calls
I (think) I've seen folks recommending cfimport over cf_MyTag and cfmodule template=MyTag for custom tag calls. I usually use a custom tag for header/footer inclusion like this cf_MySiteHeadFoot ... my body /cf_MySiteHeadFoot But was wondering if there's an advantage to cfimport. (Also, does cfimport allow cf-mapped paths now? I read that it didn't used to, at least.) Can someone straighten me out as to the pros and cons of cfimport, cf_MyTag, and cfmodule? Thanks, Jamie ~| ColdFusion MX7 by AdobeĀ® Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. Free Trial. http://www.adobe.com/products/coldfusion Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:272394 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: cfimport vs. cfmodule/cf_MyTag for Custom Tag Calls
CFImport allows you to create tag prefixes. You can also use a template path (which cf_tagname does not have). I think it's a very elegant way to group tag functionality. .. Ben Nadel Certified Advanced ColdFusion MX7 Developer www.bennadel.com Need ColdFusion Help? www.bennadel.com/ask-ben/ -Original Message- From: Jamie Jackson [mailto:[EMAIL PROTECTED] Sent: Monday, March 12, 2007 3:39 PM To: CF-Talk Subject: cfimport vs. cfmodule/cf_MyTag for Custom Tag Calls I (think) I've seen folks recommending cfimport over cf_MyTag and cfmodule template=MyTag for custom tag calls. I usually use a custom tag for header/footer inclusion like this cf_MySiteHeadFoot ... my body /cf_MySiteHeadFoot But was wondering if there's an advantage to cfimport. (Also, does cfimport allow cf-mapped paths now? I read that it didn't used to, at least.) Can someone straighten me out as to the pros and cons of cfimport, cf_MyTag, and cfmodule? Thanks, Jamie ~| Macromedia ColdFusion MX7 Upgrade to MX7 experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:272396 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfimport vs. cfmodule/cf_MyTag for Custom Tag Calls
As a negative to this positive, every CFM that wants to use this format has to have a cfimport, while cf_/cfmodule just works fine. This is a very minor negative though. Just making sure you know. On 3/12/07, Ben Nadel [EMAIL PROTECTED] wrote: CFImport allows you to create tag prefixes. You can also use a template path (which cf_tagname does not have). I think it's a very elegant way to group tag functionality. .. Ben Nadel Certified Advanced ColdFusion MX7 Developer www.bennadel.com Need ColdFusion Help? www.bennadel.com/ask-ben/ -Original Message- From: Jamie Jackson [mailto:[EMAIL PROTECTED] Sent: Monday, March 12, 2007 3:39 PM To: CF-Talk Subject: cfimport vs. cfmodule/cf_MyTag for Custom Tag Calls I (think) I've seen folks recommending cfimport over cf_MyTag and cfmodule template=MyTag for custom tag calls. I usually use a custom tag for header/footer inclusion like this cf_MySiteHeadFoot ... my body /cf_MySiteHeadFoot But was wondering if there's an advantage to cfimport. (Also, does cfimport allow cf-mapped paths now? I read that it didn't used to, at least.) Can someone straighten me out as to the pros and cons of cfimport, cf_MyTag, and cfmodule? Thanks, Jamie ~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 Flex 2. Free Trial http://www.adobe.com/products/coldfusion/flex2/ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:272397 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: cfimport vs. cfmodule/cf_MyTag for Custom Tag Calls
Very true. Also, I know that CFImport cannot have dynamic template path (ie. No ## in the template attribute). Not sure if CFModule is the same way (but I guess that it probably is). .. Ben Nadel Certified Advanced ColdFusion MX7 Developer www.bennadel.com Need ColdFusion Help? www.bennadel.com/ask-ben/ -Original Message- From: Raymond Camden [mailto:[EMAIL PROTECTED] Sent: Monday, March 12, 2007 4:08 PM To: CF-Talk Subject: Re: cfimport vs. cfmodule/cf_MyTag for Custom Tag Calls As a negative to this positive, every CFM that wants to use this format has to have a cfimport, while cf_/cfmodule just works fine. This is a very minor negative though. Just making sure you know. ~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 Flex 2. Free Trial http://www.adobe.com/products/coldfusion/flex2/ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:272398 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfimport vs. cfmodule/cf_MyTag for Custom Tag Calls
Jamie Jackson wrote: I (think) I've seen folks recommending cfimport over cf_MyTag and cfmodule template=MyTag for custom tag calls. I usually use a custom tag for header/footer inclusion like this cf_MySiteHeadFoot ... my body /cf_MySiteHeadFoot But was wondering if there's an advantage to cfimport. cfimport is a compile-time directive and does not have an execution time overhead (but your compiled template will be inflated). (Also, does cfimport allow cf-mapped paths now? I read that it didn't used to, at least.) It does as long as they are defined at compile time. Jochem ~| Upgrade to Adobe ColdFusion MX7 The most significant release in over 10 years. Upgrade see new features. http://www.adobe.com/products/coldfusion Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:272399 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfimport vs. cfmodule/cf_MyTag for Custom Tag Calls
cfmodule has no problem whatsoever with dynamic template paths. :-) Very true. Also, I know that CFImport cannot have dynamic template path (ie. No ## in the template attribute). Not sure if CFModule is the same way (but I guess that it probably is). .. Ben Nadel Certified Advanced ColdFusion MX7 Developer www.bennadel.com Need ColdFusion Help? www.bennadel.com/ask-ben/ ~| Macromedia ColdFusion MX7 Upgrade to MX7 experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:272484 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4