Thanks for the reply.  The reason I ask is because I have the following
setup:

request.root = "/ldh"

This is the name of the mapping in CFAM.  I have been using #request.root#
in all of my tags, including <a>, etc...  Well, this hasn't been a problem
because is just so happens that the name of the directory that I am
developing under is ldh.  What I realized today was that once I move the
site over and it becomes the root site all my links won't work.  So I
figured I would simply setup two root variables: one that is the name of the
mapping in CFAM, and another that can be used with those tags that don't
require the CFAM mapping but can simply use "/".  I'll have something like:

request.root = "/ldh"
request.absolute = "/ldh"

Now I can use #request.absolute# for all the tags that don't require the
CFAM mapping, and once I move the site (and it isn't a subdirectory) I can
change request.absolute to "/".  So now I'm trying to figure out which tags
will need to use the CFAM mapping and which will accept "/".

Does this make any sense?

Jared

----- Original Message -----
From: "Jennifer Larkin" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, January 16, 2002 5:02 PM
Subject: Re: Mapped Paths and Absolute Paths


| At 05:01 PM 1/16/02 -0700, you wrote:
| >Ok, I know this subject was discussed a little bit earlier, and it got
| >me thinking about a site I am currently developing.  As it is, I am
| >developing it as a subdirectory but it will eventually be moved over as
| >the root site.  My question is, which tags require the mapped root, as
| >opposed to simply using /?  The wrox book says the following:
| >
| >"Planning is required to make the best use of maps, as their use is
| >limited to template references only through <cfinclude>..."
| >
| >So is <cfinclude> the ONLY tag that requires the mapped root?  What
| >about <cfmodule>?  Can I do <cfmodule template="/module.cfm">, or
| >would I need to do <cfmodule template="/mappedroot/module.cfm">.
|
| Mapping applies to both CFINCLUDE and CFMODULE. I went through the custom
| tag and UDF info in Professional ColdFusion 5 a while back and some of it
| was inaccurate. I'm not sure what your last question is asking. If you are
| asking about the default webroot mapping and it's availability for use
with
| CFMODULE, you shouldn't have a problem. But you can always try it and see.
|
|
| Now available in a San Francisco Bay Area near you!
| http://www.blivit.org/mr_urc/index.cfm
| http://www.blivit.org/mr_urc/resume.cfm
| 
______________________________________________________________________
Get Your Own Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to