Loyd,

/header.cfm is not a relative path and but rather, it would look in the root
directory.  A relative path to header.cfm in the same directory as the
calling template could be accessed like this:
<cfinclude template="header.cfm" />
or
<cfinclude template="./header.cfm" />



On 9/13/07, Loyd Campbell <[EMAIL PROTECTED]> wrote:
>
>  I've been writing CF since version 1, but have always been behind
> corporate firewalls or on dedicated servers. Now I'm working on a public
> site on a shared server and have a question that seems pretty basic to me,
> but I can't figure out the answer.
>
>
>
> To make a site more maintainable we use include files for headers,
> footers, navigation panels, etc.  In the past I have always been able to
> use this notation to get to a file on the root directory regardless of what
> directory the included file was called from: <cfinclude template="/
> header.cfm"> With a dedicated server that is not a problem. The problem is
> that the techs that work on the shared server say that this notation is not
> a "relative" path and cfinclude requires a relative path or a CF Admin
> mapped path. I asked if they could map "/" to the web root of our site and
> they said they cannot because of the shared status. I've tried several other
> techniques without success.
>
>
>
> I looked up the CF Docs and they say that "/header.cfm" is a relative
> path.  When I try it, though, it throws an error about using relative or
> CF mapped paths in cfinclude. Has anyone got a relatively simple solution to
> this problem? I hate to have multiple copies of a header, footer, or
> navigation file because that defeats the purpose.
>
>
>
> Thanks,
>
>
>
> Loyd Campbell
>
> Plano, TX
>
>
>
> _______________________________________________
> Reply to DFWCFUG:
>  [email protected]
> Subscribe/Unsubscribe:
>  http://lists1.safesecureweb.com/mailman/listinfo/list
> List Archives:
>    http://www.mail-archive.com/list%40list.dfwcfug.org/
>  http://www.mail-archive.com/list%40dfwcfug.org/
> DFWCFUG Sponsors:
>  www.instantspot.com/
>  www.teksystems.com/
>
>


-- 
~Dave Shuck
[EMAIL PROTECTED]
http://daveshuck.instantspot.com
_______________________________________________
Reply to DFWCFUG: 
  [email protected]
Subscribe/Unsubscribe: 
  http://lists1.safesecureweb.com/mailman/listinfo/list
List Archives: 
    http://www.mail-archive.com/list%40list.dfwcfug.org/             
  http://www.mail-archive.com/list%40dfwcfug.org/
DFWCFUG Sponsors: 
  www.instantspot.com/
  www.teksystems.com/

Reply via email to