Thanks, Bryan. That solved it. Didn't realize I needed a leading "/".
David ------------------------------------ David Grabbe Manager, Information Systems Church of the Great God [EMAIL PROTECTED] http://www.cgg.org -----Original Message----- From: Bryan Love [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 19, 2002 2:08 PM To: CF-Talk Subject: RE: Need help with mappings in CF Admin could be many things. What's the value of attributes.page? Most likely you just need to add a "/" in front of the replace() function like this... <CFINCLUDE template="/#Replace(Attributes.page, ".", "/", "ALL")#.htm"> If the template in a CFINCLUDE tag begins with a "/" then CF looks for a CF mapping, otherwise it will try the file relative to it's current position in the file system. +-----------------------------------------------+ Bryan Love Macromedia Certified Professional Internet Application Developer Database Analyst Telecommunication Systems [EMAIL PROTECTED] +-----------------------------------------------+ "...'If there must be trouble, let it be in my day, that my child may have peace'..." - Thomas Paine, The American Crisis -----Original Message----- From: David Grabbe [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 19, 2002 9:38 AM To: CF-Talk Subject: Need help with mappings in CF Admin I'm stuck on getting these CF mappings to work. In CF Admin, I have set up a logical path called '/articles/', and a physical path of 'C:\Inetpub\wwwroot\test_domain1\literature\articles\'. I am trying to access this directory from a different domain: test_domain2 (same box). I set up a link to a file in this directory: <A href="index.cfm/page/articles.#file_name#"> and in my index.cfm I have the CF_INCLUDE line: <CFINCLUDE template="#Replace(Attributes.page, ".", "/", "ALL")#.htm"> So when I have the url http://www.test_domain2.com/index.cfm/page/articles.file0407.htm the index.cfm should map the 'articles' back to the 'C:\Inetpub\wwwroot\test_domain1\literature\articles\', and the filename (file0407.htm) should be included. But its not working that way. Can anyone see what's wrong here? Thanks in advance, David ------------------------------------ David Grabbe Manager, Information Systems Church of the Great God [EMAIL PROTECTED] http://www.cgg.org ----- Original Message ----- From: Dave Hannum Subject: Re: CFINCLUDE and virtual directories Date: Tue, 26 Feb 2002 10:48:19 -0800 You need to map the includes from a physical path in the CF Administrator: Click on "Mappings" in your CF Administrator Give the include a logical path and map it to the physical (directory) path. Voila - it works. Dave ----- Original Message ----- From: "David Grabbe" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Tuesday, February 26, 2002 1:48 PM Subject: CFINCLUDE and virtual directories I need to be able to CFINCLUDE files from a directory on a different website (same server though). In IIS I have set up a virtual mapping so the directory in question is available to both websites -- as a real directory in the first website (domain1) and a virtual directory in the second (domain2). The mapping works fine -- I can access the same files from the directory regardless of which domain I am under. The kink comes in when I try to CFINCLUDE a file listed in the virtual directory. That is, I can access http://domain2.com/dir1/dir2/filename.htm, but when I try to include that file in a template (http://domain2.com/index.cfm/page/dir1.dir2.filename.htm) I get the "template not found" error. But this works fine when the directory is being accessed as a standard directory rather than a virtual directory (http://domain1.com/index.cfm/page/dir1.dir2.filename.htm). Has anyone run into this before? What am I missing here? Thanks bunches, David ------------------------------------ David Grabbe Manager, Information Systems Church of the Great God [EMAIL PROTECTED] http://www.cgg.org ______________________________________________________________________ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. 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

