> You could set an application variable that points to the images directory.
> then just reference it where ever you need it through the directory
> structure.

Thanks,  Worked like a charm.

--=@ greg @=--
----- Original Message -----
From: "David Livingston" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, January 11, 2001 12:02 PM
Subject: RE: image root resolving


> You could set an application variable that points to the images directory.
> then just reference it where ever you need it through the directory
> structure.
>
> <cfset application.root = "C:\inetpub\wwwroot\images\">
> <cfset application.webRoot = "http://yourdomain.com/images/">
> EX:
> <img name="b2" src="#application.webroot#1.gif" width=147 height=20
> border=0>
> OR
> <CFFILE ACTION="UPLOAD" nameconflict="MAKEUNIQUE"
> FILEFIELD="FileContents"
> DESTINATION="#Application.root#images\"
> Attributes="Archive, Normal">
>
> I hope that helps.
>
> David Livingston
> General Bandwidth
> 512.681.5794
> [EMAIL PROTECTED]
>
>
> -----Original Message-----
> From: Greg Wolfinger [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 11, 2001 10: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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to