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
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
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
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
4 matches
Mail list logo