Re: Using CFInclude. on Pages Placed in Subfolders

2011-06-26 Thread Russ Michaels

yes you would need to get rid of the / mapping, which we always do anyway as
most people do use / for referencing the root of their site.

On Sun, Jun 26, 2011 at 12:05 AM, Peter Donahue pdonah...@satx.rr.comwrote:


 Hello Russ and everyone,

We tried your suggestion. As long as the pages were in the same folder
 as the includes everyone was happy but when pages in subfolders called
 cfinclude template=includeme.cfm That's when we got the 500 Internal
 Server Errors. Dave Watts gave me great suggestions to try. I'll need to do
 some experimentation on my own to come up with the best solution for this
 situation. Thanks again.

 Peter Donahue


 - Original Message -
 From: Russ Michaels r...@michaels.me.uk
 To: cf-talk cf-talk@houseoffusion.com
 Sent: Saturday, June 25, 2011 4:58 PM
 Subject: Re: Using CFInclude. on Pages Placed in Subfolders



 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.comwrote:

 
  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:345734
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Using CFInclude. on Pages Placed in Subfolders

2011-06-25 Thread Peter Donahue

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:345701
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Using CFInclude. on Pages Placed in Subfolders

2011-06-25 Thread Dave Watts

    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.

The syntax you're using is relative syntax, and should work if you
have a correct relative relationship. For example, if your root
directory is c:\website, and you create a page in that directory that
should include files in c:\website\folder1\folder2, you'd use this:

cfinclude template=folder1/folder2/includeme.cfm

If you want to traverse up levels - for example, if you create a page
in c:\website\folder1\folder2 and you want it to include files in
c:\website, you'd use double dots:

cfinclude template=../../includeme.cfm

Now, I'm not entirely sure from your question where both the file
doing the include and the target of that include happen to be located.

Also, you might find it useful to see the exact error message. It
sounds like your browser is showing you just the HTTP status code. If
you're using IE, uncheck Friendly HTTP Errors or whatever that
option is called to see the real error message, or use a different
browser.

        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.

You can use absolute paths, which do exactly this. To use an absolute
path, you need a mapping within CF Administrator that points to the
appropriate directory. For example, if you have a directory at
c:\website, and you want to include files from that directory within
files in c:\website\folder1 and c:\website\folder1\folder2, you could
create a mapping that points to that directory, then use that:

cfinclude template=/website/includeme.cfm

Also, when you install CF, it creates a mapping to the root directory
of the website - if you set CF up to use IIS during the initial
install, for example, it will point to the IIS web root directory. If
you set CF to use its own internal web server, it'll point to that
instead. If you'd set it up to use IIS, and IIS was in turn configured
to use c:\website, you could include files from that directory from
any file on the server using this:

cfinclude template=/includeme.cfm

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, onlin

~|
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:345702
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Using CFInclude. on Pages Placed in Subfolders

2011-06-25 Thread Russ Michaels

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.comwrote:


 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


RE: Using CFInclude. on Pages Placed in Subfolders

2011-06-25 Thread Bobby Hartsfield

Isn't that only relative to the webroot if the default / cfmapping doesn't
exist?
 
I always forget which one wins since the first thing I usually do is delete
that default / CF mapping.

.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
http://cf4em.com



-Original Message-
From: Russ Michaels [mailto:r...@michaels.me.uk] 
Sent: Saturday, June 25, 2011 5:58 PM
To: cf-talk
Subject: Re: Using CFInclude. on Pages Placed in Subfolders


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.comwrote:


 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:345706
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Using CFInclude. on Pages Placed in Subfolders

2011-06-25 Thread Peter Donahue

Hello Russ and everyone,

We tried your suggestion. As long as the pages were in the same folder 
as the includes everyone was happy but when pages in subfolders called 
cfinclude template=includeme.cfm That's when we got the 500 Internal 
Server Errors. Dave Watts gave me great suggestions to try. I'll need to do 
some experimentation on my own to come up with the best solution for this 
situation. Thanks again.

Peter Donahue


- Original Message - 
From: Russ Michaels r...@michaels.me.uk
To: cf-talk cf-talk@houseoffusion.com
Sent: Saturday, June 25, 2011 4:58 PM
Subject: Re: Using CFInclude. on Pages Placed in Subfolders



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.comwrote:


 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:345710
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm