Hi Matt,

Yes that did it, By adding a mapping to utils now I can use absolute
path for cfinclude.

All I have to do now is figure out what to do about javascript code and links.

I think I may have to go back and use relative paths a with a variable
set in the calling template so I know how many level deep like:
lDeep ="../" ;
or lDeep = "../../"

and then use that in the included page

Thank you so much
Cheers

Victor

On Sat, Apr 2, 2011 at 5:22 PM, Matt Quackenbush <[email protected]> wrote:
>
> On Sat, Apr 2, 2011 at 3:44 PM, Victor Moore wrote:
>
>>
>> The prod server is CF 8 enterprise (dev is 9 developer edition, my bad
>> I said in my first email that both of them are 9)
>>
>>  on the prod server (tested now)
>>  #expandPath("/myApp")# = D:\domain\myApp
>> the module in question is D:\domain\myApp\module1\submodule\user.cfm
>>
>> user.cfm has the following <cfinclude template="/utils/lib.cfm" >
>> included template path is :
>> D:\domain\myApp\utils\lib.cfm
>>
>> and I get the error
>>
>
> Do you have a mapping for "/utils"?  I don't remember you saying there was.
> And if there isn't, you're not using a mapping, you're asking for a
> root-absolute path ("/"), which will map to "D:\domain".  Since
> /utils/lib.cfm resides at D:\domain\myApp and not D:\domain, you are
> encountering the expected results: a file not found exception.
>
> <cfoutput>#expandPath("/")#</cfoutput>
>
> Run that and you'll see what I mean.
>
>
>
>>
>> Thank you both for your patience on a Saturday
>>
>
> NP :-)
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343503
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to