application.cfc subdirectories and links

2009-04-17 Thread Elizabeth Meyer
I have used the Application.cfc onRequestStart and onRequestEnd for the layout of my site, i.e. common header, mainnavigation and footer on all pages. Now the problem comes in where I have some files in a subdirectory: (The application.cfc is only in the root directory) the main navigation

Re: application.cfc subdirectories and links

2009-04-17 Thread Ben Nadel
Liz, This is not a great solution, but you could put a dynamic Base tag in the head: Main directory: base href=./ / Sub directory: base href=../ / I think that would work as a stop-gap. -- Ben Nadel Adobe Community Expert Adobe Certified Advanced ColdFusion Developer Manager New York

Re: application.cfc subdirectories and links

2009-04-17 Thread Peter Boughton
Create a mapping to the siteroot, and do cfinclude template=/siterootmapping/afile.cfm/ ? ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial

Re: application.cfc subdirectories and links

2009-04-17 Thread Adrian Moreno
IMO, your best option is going to be setting your header, footer, etc. links to absolute paths. Meaning if your application root is www.mysite.com, then all of your primary links need to point to /aboutUs.cfm. The ensures that no matter how deep you are in the site, that link will always