RE: Virtual Directories and cfinclude
Thanks for the insight, Den. Rick -Original Message- From: denstar [mailto:valliants...@gmail.com] Sent: Monday, July 19, 2010 2:20 PM To: cf-talk Subject: Re: Virtual Directories and cfinclude The virtual directory will take care of the .css and image files, but you'll need to add a mapping for the CFML to work, I think. :Den -- In those days spirits were brave, the stakes were high, men were real men, women were real women and small furry creatures from Alpha Centauri were real small furry creatures from Alpha Centauri. Douglas Adams On Mon, Jul 19, 2010 at 10:26 AM, Rick Faircloth wrote: > > Recently, I've been trying to "modularize" all code needed > > for a particular function with a directory that exists outside > > the root directory of a website. > > > > I have some functionality that is common to many websites > > and need to reference the files on if a site uses said functionality. > > > > For instance, I have a real estate website that uses a > > "subdivision" function. Not all do, but this one does. > > > > I decided to move the "subdivision" folder outside the root > > of all the websites that might use it and put it under its own > > directory in the webroot. > > > > I can create a virtual directory in IIS easily enough to reference > > files within the "subdivision" folder. > > > > However, if I try to reference files within the main websites > > structure from within the "subdivision" folder under the webroot > > using cfinclude, I can't. At least not using relative links, as far as > > I can tell. > > > > I want to keep all content, .cfm's, .cfc's, .css files etc., outside of the > > main website folder structure so that if that function ("subdivisions", in > this case) > > is not used, then none of the files and assets need be part of > > the website's directory structure and content. > > > > Make any sense? > > > > In the end, it amounts to wanting to have a way for referencing cfincludes, > > such as menu structure file, from within the folder structure of the > external > > directory "subdivisions" as I can reference files from within "subdivisions" > folder > > by using a virtual directory in IIS. > > > > Maybe I'm missing something very obvious. > > > > Any feedback would be appreciated. > > > > Thanks, > > > > Rick > > > > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335487 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Virtual Directories and cfinclude
The virtual directory will take care of the .css and image files, but you'll need to add a mapping for the CFML to work, I think. :Den -- In those days spirits were brave, the stakes were high, men were real men, women were real women and small furry creatures from Alpha Centauri were real small furry creatures from Alpha Centauri. Douglas Adams On Mon, Jul 19, 2010 at 10:26 AM, Rick Faircloth wrote: > > Recently, I've been trying to "modularize" all code needed > > for a particular function with a directory that exists outside > > the root directory of a website. > > > > I have some functionality that is common to many websites > > and need to reference the files on if a site uses said functionality. > > > > For instance, I have a real estate website that uses a > > "subdivision" function. Not all do, but this one does. > > > > I decided to move the "subdivision" folder outside the root > > of all the websites that might use it and put it under its own > > directory in the webroot. > > > > I can create a virtual directory in IIS easily enough to reference > > files within the "subdivision" folder. > > > > However, if I try to reference files within the main websites > > structure from within the "subdivision" folder under the webroot > > using cfinclude, I can't. At least not using relative links, as far as > > I can tell. > > > > I want to keep all content, .cfm's, .cfc's, .css files etc., outside of the > > main website folder structure so that if that function ("subdivisions", in > this case) > > is not used, then none of the files and assets need be part of > > the website's directory structure and content. > > > > Make any sense? > > > > In the end, it amounts to wanting to have a way for referencing cfincludes, > > such as menu structure file, from within the folder structure of the > external > > directory "subdivisions" as I can reference files from within "subdivisions" > folder > > by using a virtual directory in IIS. > > > > Maybe I'm missing something very obvious. > > > > Any feedback would be appreciated. > > > > Thanks, > > > > Rick > > > > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335477 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Virtual Directories and cfinclude
Recently, I've been trying to "modularize" all code needed for a particular function with a directory that exists outside the root directory of a website. I have some functionality that is common to many websites and need to reference the files on if a site uses said functionality. For instance, I have a real estate website that uses a "subdivision" function. Not all do, but this one does. I decided to move the "subdivision" folder outside the root of all the websites that might use it and put it under its own directory in the webroot. I can create a virtual directory in IIS easily enough to reference files within the "subdivision" folder. However, if I try to reference files within the main websites structure from within the "subdivision" folder under the webroot using cfinclude, I can't. At least not using relative links, as far as I can tell. I want to keep all content, .cfm's, .cfc's, .css files etc., outside of the main website folder structure so that if that function ("subdivisions", in this case) is not used, then none of the files and assets need be part of the website's directory structure and content. Make any sense? In the end, it amounts to wanting to have a way for referencing cfincludes, such as menu structure file, from within the folder structure of the external directory "subdivisions" as I can reference files from within "subdivisions" folder by using a virtual directory in IIS. Maybe I'm missing something very obvious. Any feedback would be appreciated. Thanks, Rick ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335469 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm