Glad to have helped. 
 Hopefully the info I gave along with the info to dynamically create mappings (someone else posted) was exactly what you needed. 


At 08:15 AM 5/26/2004, you wrote:
Thanks, It's the first real answer I got so far. I must really suck at asking the right questions ;o)
I'll give it a go, but it still looks like I'm going to have to add the mapping "MyMapping" in the admin. Or am I missing something ?
 
Lucian
----- Original Message -----
From: Jeffry Houser
To: [EMAIL PROTECTED]
Sent: Wednesday, May 26, 2004 3:10 PM
Subject: Re: [CFCDev] component extends object with relative path

At 02:38 AM 5/26/2004, you wrote:

 >>> however there's a big difference between setting an
>>> "extends" attribute as a variable and setting it as a relative path
 
I couldn't of said it better myself. That's the real issue for me.
 
>>> Basically if you don't got admin, you can't really use
>>>CFCs.
 
I could not agree more. But the question is: is there a way around it ?

 One way is to keep all CFCs in the same directory as a package.  The first place CF looks to find a CFC is in the package.  No relative pathing needed. 
 
Cand you at least set mappings dynamically ? Can it be done or you're stuck with the admin ?

  Sort of.  You can hard code "MyMapping.object"  in the extends attribute or when creating a component instance.  And on any given CF server you can create a CF Mapping called "MyMapping" to point anywhere you want. 

  In my development, when components reference components they have been a part of a package so I don't have to worry about directory levels. 
 When code creates a component, it refers to a mapping directory. 
 
  Both are easily portable from one server to another. 

 

--
Jeffry Houser, Web Developer, Writer, Songwriter, Recording Engineer
<mailto:[EMAIL PROTECTED]>
--
AIM: Reboog711  | Phone: 1-203-379-0773
--
My Books: <http://www.instantcoldfusion.com>
Recording Music: <http://www.fcfstudios.com>
Original Energetic Acoustic Rock: <http://www.farcryfly.com>

--
Jeffry Houser, Web Developer, Writer, Songwriter, Recording Engineer
<mailto:[EMAIL PROTECTED]>
--
AIM: Reboog711  | Phone: 1-203-379-0773
--
My Books: <http://www.instantcoldfusion.com>
Recording Music: <http://www.fcfstudios.com>
Original Energetic Acoustic Rock: <http://www.farcryfly.com>

Reply via email to