> Is there a way to call a custom tag that's in a subdirectory of ...
> \CFUSION\CustomTags ?
>
> In other words, I want to organize some custom tags into
> subdirectories:
> \CFUSION\CustomTags\Site1\CT1.cfm (+ CT1a.cfm , CT1b,cfm, ...)
> \CFUSION\CustomTags\Site2\CT2.cfm (+ CT2a.cfm, CT2b.cfm, ...)
>
> I have tried this, but apparently, CF won't look in subdirectories of
> the "CustomTags" directory. Is there a way to get CF to look in them?
> Alternatively, is there another way to manage custom tags?
If you've got a file "ct1.cfm" in \cfusion\customtags\site1\, and nowhere
else, this syntax should work:
<cf_ct1>
However, if you've got multiple files "ct1.cfm" in multiple subdirectories
of \cfusion\customtags\, you'll need to use CFMODULE to execute the specific
one you want:
<cfmodule name="site1.ct1">
Note the dot syntax - the above name would correspond to
\cfusion\customtags\site1\ct1.cfm.
If you want to call custom tags in directories either relative from the
current location of the calling page, or mapped in the CF Administrator, you
can use the TEMPLATE attribute of CFMODULE:
<cfmodule template="FileInSameDirectory.cfm">
<cfmodule template="../FileInDirectoryOneLevelUp.cfm">
<cfmodule template="/FileInDirectoryMappedToSlashInCFAdmin.cfm">
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists