I have pretty much consistently used mappings in my applications to 
include things from the document root, regardless of where the file 
being accessed is located.  I often do it for UDFs and template files.

Ie,

<cfinclude template="/rickroot/udf.cfm"

or

<cfinclude template="/rickroot/above.cfm">
<!--- body content --->
<cfinclude template="/rickroot/above.cfm">

What are my options if I choose NOT to use mappings?  For example, my 
blog application dynamically creates files in subdirectories, and 
currently includes the root index.cfm using a <cfinclude> tag with the 
mapping.

The index.cfm will not always be in the document root, but it will 
always be 3 directories ABOVE the specific file in question.

The index.cfm itself also uses <cfinclude> to include the template 
files, as exampled above.

Thanks!

Rick Root


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:205364
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to