>> in my Application.cfm file, I have:
>> <cfset request.template_blocks =
>> "http://hhp.umd.edu/empower/template_blocks/";>
>>
>> On that page, I have the following code:
>> <cfoutput>
>>      <cfinclude
>>      template="#request.template_blocks#banner.cfm">
>>      <cfinclude
>>      template="#request.template_blocks#nav_none.cfm">
>> </cfoutput>
>>
>> I receive the error:
>> Could not find the included template
>> http://hhp.umd.edu/empower/template_blocks/banner.cfm.
>> But if I go to the url that it could not find, I find the
>> file fine.

> CFINCLUDE only works with file system paths (full path or
> relative, or with
> CF mappings).  It does not use URLs.  If you must use a
> URL, use CFHTTP to
> pull it down instead.

Except it's never worked with full paths that I know of.

There is a getRelative() function I posted to http://www.cflib.org to
get a relative path from the current template to an absolute path on
the same drive (or root directory on *nix). In the onTap framework
this function was changed to getPathTo() because getRelative() was
just too ambiguous, and I added some caching to make the function
operate faster. Something like this would allow you to use an absolute
path in a cfinclude tag, i.e. <cfinclude
template="#getPathTo(absolutepath)#">


s. isaac dealey   954.522.6080
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:205685
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