In that case I'll often set Request.urlroot or Request.imageroot in my
application.cfm file and then call images with
img src="#request.urlroot#/images/blah.gif"
or
img src="#request.imageroot#/blah.gif"
inside a cfoutput.
Take care,
Evan
> -----Original Message-----
> From: Greg Wolfinger [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 11, 2001 11:43 AM
> To: CF-Talk
> Subject: Re: image root resolving
>
>
> > Assuming your webroot is pointing at c:\inetpub\wwwroot\ (IE
> > http://www.yoursite.com/index.cfm is really
> > c:\inetpub\wwwroot\index.cfm), then you don't need to do anything to
> > do what you want.
>
> What if this isn't the case and the site begins in a sub directory?
>
> --=@ greg @=--
> ----- Original Message -----
> From: "Zachary Bedell" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Thursday, January 11, 2001 10:42 AM
> Subject: RE: image root resolving
>
>
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > Assuming your webroot is pointing at c:\inetpub\wwwroot\ (IE
> > http://www.yoursite.com/index.cfm is really
> > c:\inetpub\wwwroot\index.cfm), then you don't need to do anything to
> > do what you want.
> >
> > /images will be /images no matter what. Now... images without the
> > slash will get you a relative path, but /images (with the leading
> > slash) will always get files from c:\inetpub\wwwroot\images\.
> >
> > Best regards,
> > Zac Bedell
> >
> > > -----Original Message-----
> > > From: Greg Wolfinger [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, January 11, 2001 10:35 AM
> > > To: CF-Talk
> > > Subject: image root resolving
> > >
> > >
> > > Hey Guys:
> > >
> > > I was wondering if there is a way to insert the server path
> > > (e.g. c:\inetpub\wwwroot\images) to just be /images. I need
> > > it to be able to resolve the image path even if its deep into
> > > a directory stucture such as the user is in
> > > /blocks/category/index.cfm, the images will resolve up to the
> > > /images folder. Understand?? I'm not good at explaining.
> > >
> > > --=@ greg @=--
> > >
> > >
> > >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists