Skip to main content
July 2, 2012
Question

template not pulling includes

  • July 2, 2012
  • 3 replies
  • 770 views

We have a working website that starts from a template. In trying to set up a test site, I copied the file structure as is into another folder and created a site linked to that folder. When the test site url is input, the template comes up but nothing else is included; even index.cfm and even if it's added to the url manually. What am I missing?

    This topic has been closed for replies.

    3 replies

    Inspiring
    July 3, 2012

    "We have a working website that starts from a template"

    What exactly do you mean by "template" in this context?  In CF parlance, a "template" is an outdated term meaning basically "a file with a CFM or CFC extension" (and accordingly, it's a term that would seldom be used in the context you're using it).  However given your wording I am wondering whether you are using the word "template" in some other way.  DreamWeaver has a notion of templates, doesn't it?  Is this what you mean?

    --

    Adam

    BKBK
    Community Expert
    Community Expert
    July 3, 2012

    When you said "website that starts from a template" I thought immediately of index.cfm. That is usually the template to start with. A design that includes index.cfm later on raises questions..

    itisdesign
    Inspiring
    July 3, 2012

    NasMigwenok wrote:

    We have a working website that starts from a template. In trying to set up a test site, I copied the file structure as is into another folder and created a site linked to that folder. When the test site url is input, the template comes up but nothing else is included; even index.cfm and even if it's added to the url manually. What am I missing?

    Hi NasMigwenok,

    Three questions:

    1) What version of ColdFusion?

    2) What web server? (ex: IIS, Apache, etc)

    3) Is any error displayed or logged?

    Thanks,

    -Aaron

    July 3, 2012

    First, let me clarify what I mean by template. I’m referring to a .dwt file.

    I did not develop this site, so I’m trying to work my way through the existing code. Header and footer display around this piece of code from the .dwt file:

    <!--- End of Header --->

    <!--- Start of all include pages --->

    <!-- TemplateBeginEditable name="includes" -->

    <!-- TemplateEndEditable -->

    <!--- End of all include pages --->

    <!--- Start of Footer --->

    Error message displays inside Template…Table tags above instead of any called page.

    Aaron:

    1) 9

    2) IIS

    3) See above

    Thanks,

    NM

    itisdesign
    Inspiring
    July 4, 2012

    NasMigwenok wrote:

    Error message created error.cfm file displays inside Template…Table tags above instead of any called page.

    Hi NasMigwenok,

    Please check C:\ColdFusion9\logs\exception.log for any error messages thrown.

    Thanks,

    -Aaron