> -----Original Message-----
> From: Troy Simpson [mailto:[EMAIL PROTECTED] 
> Sent: Monday, November 21, 2005 3:58 PM
> To: CF-Talk
> Subject: Re: Why do I need a Custom Tag Path for Components?
> 
> Assuming that my coldfusion components and include files are outside
> the web root and the mapping root (/), how would mappings and custom
> tag paths be searched for?
> 
> I know that cfinclude used the mappings to find an included file. 
> What order are the mapping referenced?  Are mappings referenced like a
> path in DOS or UNIX to find an executable?
> 
> What about coldfusion components?  When do they use a mapping and/or
> custom tag path?
> 
> We are testing to few things here, and we are getting inconsistent
> results when using components.  Sometimes the right component is found
> and something it is not.  I don't want to go too deep into it unless I
> have to.

I set up a mapping for each project that maps the the projects root
directory.  Inside the root directory is my cfc directory.  Also inside the
root directory is a www directory which is the only web-accessible directory
in the application.  Everything else that resides outside the www directory
can be accessed using the mapping (cfincludes, custom tags using cfmodule,
CFCs, etc.)

Mappings can be set up like so in the cfmx administrator (this is for 6.1):

Logical Path: /webprojectroot

Directory Path: C:\projects\webproject

Then you could put your CFCs in:

C:\projects\webproject\cfc

And access them like:

<cfinvoke component="webprojectroot.cfc.component_name" method="method_name"
....>


--Andy



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:224880
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to