why not just include the files relative to the root exactly as your are
doing with the SSI ?

<CFInclude template="/footer.cfm>

Russ
On Sat, Jun 25, 2011 at 10:41 PM, Peter Donahue <pdonah...@satx.rr.com>wrote:

>
> Hello everyone,
>
>    I just finished resurrecting a Web site belonging to one of the
> organizations we belong to. The site is running under CF9 Enterprise
> Edition. Because the site is very page and topic intensive I like to group
> related pages in subfolders under the root folder and in some cases place
> additional pages in subfolders under second-level subfolders.
>    Enter the use of <CFInclude>. I was able to successfully load pages
> placed in second-level subfolders (Subfolders place directly under the root
> folder) without any trouble once the syntax was adjusted. For example
> <CFInclude template="../menu.cfm"> or <CFInclude template="../footer.cfm>.
> This syntax caused the pages placed in the level II Subfolders to load
> without any problem but when I tried to access pages placed in third-level
> subfolders (http://www.website.com/folder1/folder2"; I received a 500
> Internal Server Error. Since we have a conference coming up next week I
> wrestled the content in the level II folders to the level 1 subfolders so
> everything worked correctly so the site would be live in time for the
> conference.
>
>        Server-Side Include has a nice feature that the includes can be
> found and loaded on to pages served from any folder regardless of how deep
> they are from the Web root. All site pages contain         <!--#include
> virtual="/menu.shtml" -->which adds the site's navigation menu to all pages
> no matter in what folders they reside in the directory tree.
>
>    My question then is how can I make CF behave the same way so the
> includes will be added to served pages no matter how deep they are stored
> from the root folder. If such a feature has yet to be added to CF I'll cast
> a vote for its inclusion in CF10. Otherwise is there a different syntax I
> should use  to cause Cf to locate includes on pages located in all folders
> in the site's directory tree? Your assistance with this will be welcome.
> All
> the best.
>
> Peter Donahue
>
>
>  ----- Original Message -----
> From: "Raymond Camden" <rcam...@gmail.com>
> To: "cf-talk" <cf-talk@houseoffusion.com>
> Sent: Saturday, June 25, 2011 4:01 PM
> Subject: Re: Problem with pound signs
>
>
>
> I'll forgive you - once. ;)
>
> I'm still waiting to here back from Steven to see if this method worked for
> him.
>
> On Sat, Jun 25, 2011 at 12:12 PM, Dave Watts <dwa...@figleaf.com> wrote:
> >
> >> > Here is a crazy idea - wouldn't what you are looking for be a runtime
> >> > error?
> >>
> >> I would expect that to be a compile-time error, actually. But the code
> >> analyzer might still find it.
> >
> > Aaaand now I've gotten to the bottom of the thread, and see this has
> > already been covered. D'oh!
> >
> > Dave Watts, CTO, Fig Leaf Software
> > http://www.figleaf.com/
> > http://training.figleaf.com/
> >
> > Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
> > GSA Schedule, and provides the highest caliber vendor-authorized
> > instruction at our training centers, online, or onsite.
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:345704
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to