Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Custom Tag Directory

Status
Not open for further replies.

khue

Programmer
Joined
Mar 6, 2001
Messages
112
Location
US
According to what I remember that when a new custom tag is placed in the <drive>:\CFUSION\CustomTags directory, and if a ColdFusion application request this custom tag, it automatically looks in this directory. Is this correct or not? Now, lets say that I added subdirectories for multiple projects in this CustomTags directory, and I have placed each custom tags in its different directory as accordingly to the project.

The problem I'm running into is that when I do put these custom tags into their own directory which are all subdirectories of the <drive>:\CFUSION\CustomTags directory, ColdFusion have a problem finding these custom tags. How to I fix this problem? I don't want these custom tags to go in the <drive>:\CFUSION\CustomTags directory. I don't want to use the <CFMODULE ...> tag to specify the custom tag but rather just the <CF_customtag>.

Any help or suggestings?
 
My understanding is that &quot;registered&quot; CFX_CustomTags (C++ or Java) go into the CFUSION/CustomTags directory. In fact, when you register these tags, you can choose to put them wherever you want; you just tell CF where they're at. When a custom tag is just a wrapper around cf code (CF_CustomTag), you can put that in the same directory as the caller template and CF will look there first.

I hope this answers your question. John Hoarty
jhoarty@quickestore.com
 
Oh, I've had this problem before. Maybe I'll think of my workaround eventually, it's been awhile, but you could add directory mappings in the administrator -- or provide links if you're running *NIX. I know I had a better solution... darn. If I think of it, I'll let you know. The dirmap solution can get convoluted, but it works, especially on a small, solo project that doesn't exist on your server =)

Personally, especially on group projects, I've found that a dirmap and CF_MODULE provide the best for project management, versioning, and source control.

__________________________________
&quot;This is our Stretchy-Relativistic-Ruler -- it allows us to read a moving measurement from a fixed point accurately during space contraction... How fast can you run down the hall?&quot; -- Overheard Physics Professor at the University of Oregon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top