Tally List : mailing list management, archiving, and analysis
click for archive home
 
Archive of:
Fusebox
Cold Fusion Fuse Box List
 
home
24 hour view
quick stats
weekly updates
 
all tallylists
corporate solutions
archive your favorite
help / feedback


Search the Tallylist search by keyword:

About CF Fusebox Methods :
product's home
product's list home
 
  Archived TallyList / Fusebox: 
Subject: RE: A question of links in Circuits
lee borkman (48p/+0r)     Posted: Sunday 13 May 2001
This post: 118 views, +0 rating

Hi Ben,

Hardcoding paths doesn't necessarily help you when you are moving applications around. It makes some things easier, and some things harder, eg: * If I use hard-coded paths, and I move application X, then I have to change all of X's internal links, as well as links from Y and Z to X. * If I use relative links, and I move application X, then I don't have to change any of X's internal links, although I do have to change all of the links from X to Y and Z.

That's why I use relative links for internal links, and hard-coded for links to other apps. When I move an app, all of my internal links go on working, and I just have to adjust my inter-app links, usually by changing a single variable somewhere in my config.

As for custom tags, I would usually have a set of request-scope variables defining the webroot, the filesystemroot and the application root. My custom tags can use all of these values to build URLs, etc as necessary. I would rarely, if ever, try to refer directly to "index.cfm" from within a custom tag.

Best of luck, LeeBB

>From: "Ben Koshy" <ben@w3media.net> > >Hi Lee, > >I'm using standard Fusebox. Its always bothered me (this question) as I >know when I'm calling these circuits as Custom Tags or with includes I'm >hoping the behavior won't thrown an error or something. Why not use >hardcoded paths? Just in case you want to move the circuit to another >folder? > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/fusebox@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists


Similar Subject Line Posts (+/- two weeks of this post)
RE: A question of links in Circuits  13 May 2001 (this post)   (118 v/ +0 r)
RE: A question of links in Circuits  12 May 2001   (74 v/ +0 r)
Re: A question of links in Circuits  12 May 2001   (70 v/ +0 r)
A question of links in Circuits  12 May 2001   (81 v/ +0 r)
 

Send a reply to the Fusebox list!
click to send a reply! NOTE: Many lists will reject your post unless you have already registered with them. Also - don't forget the right account to send from (for those with multiple emails!)

Feedback: If this post was exceptionally helpful, please help by giving this post a positive review.

 

TallyList : copyright Ububik - 2000