Yea, I realized after I sent the last message that my description of how to implement 
it was a little off -- really you should create a wrapper function for getRelative 
that returns the path argument relative to the absolute path containing your tags or 
cfc's or whatever... Incidentally I'm not the first to create a function to do this -- 
I think there's another one on cflib.org with slightly different syntax, and there's 
an even better version (than mine) in the onTap framework that includes some inherent 
caching of relative paths in the server scope (I think the cflib.org tag only caches 
in the request scope if at all) that will improve performance on MX. Also, if you 
download the onTap Framework core files, the cf_core/tag function will show you 
exactly how to create a wrapper for getRelative() to do what you want... Although I 
think it also uses getPath() which uses some of the native architecture of the 
framework that you probably won't need or want, but hopefully it'll be enough to get 
you going. I'm always available if you have any questions. :) 

http://www.turnkey.to/ontap 

download page is here: 

http://www.turnkey.to/ontap/docs/index.cfm?netaction=projects

hth

ike 


------ Original Message ------ 
From: Mauricio Giraldo <[EMAIL PROTECTED]>
To: CF-Talk <[EMAIL PROTECTED]>
Sent: Aug 29, 2003 02:07 PM
Subject: Re: Multiple sites...

>>All you'd need to do is replace instances of template="#map#/blah.cfm"
>>with template="#getRelative('blah.cfm')#" and I can help you write a
>>multi-file regular expression to do that if you like. Let me know if
>>you'd like to go that route and you want some help, I'd be glad to
>>lend a hand. :)
>
>WOW! This is a really nice UDF. I wonder why MM didn't include on in MX in the first 
>place (given that relative paths are so important for CFINCLUDES). I am going to give 
>it a try.
>
>Regards
>
>
>- mga
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

Reply via email to