Template for ColdFusion not work

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default Template for ColdFusion not work

    We are trying to create a Coldfusion template with Dreamweaver MX 2004 and 2003
    (we though the problem was maybe in the version of Dreamweaver). This step is
    going well, we obtained our template "file.dwt.cfm".

    But, when we try to create a CFM page based on the template we created for it
    - and we run it on the browser, we obtained a blank page.

    What is weird is when we create a simple HTM page (file.htm) based on the
    template, it work and show everything on screen but not for dynamic page.

    Did somebody have this kind of problem before? We searched this problem on the
    net and it seems that we are alone in that issue!!!
    :confused;

    Here is the source code generated for file.cfm:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML><HEAD>
    <META http-equiv=Content-Type content="text/html; charset=utf-8"></HEAD>
    <BODY></BODY></HTML>


    Here is the code for file.cfm:

    <html><!-- InstanceBegin template="/Templates/table.dwt.cfm"
    codeOutsideHTMLIsLocked="false" -->
    <head>
    <!-- InstanceBeginEditable name="doctitle" -->
    <title>Untitled Document</title>
    <!-- InstanceEndEditable -->
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <!-- InstanceBeginEditable name="head" -->
    <!-- InstanceEndEditable -->
    </head>

    <body>
    <table width="555" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td width="143"><cfif DateFormat(now(), 'hh') gt 0 and DateFormat(now(),
    'hh') lt 12>Bonjour<cfelse>Bonsoir</cfif></td>
    <td width="412">Francois-Yanick<!-- InstanceBeginEditable name="nom" -->
    c&lt;est
    une tes<!-- InstanceEndEditable --></td>
    </tr>
    </table>
    </body>
    <!-- InstanceEnd --></html>

    And here is the code for file.dwt.cfm:

    <html>
    <head>
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>Untitled Document</title>
    <!-- TemplateEndEditable -->
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <!-- TemplateBeginEditable name="head" -->
    <!-- TemplateEndEditable -->
    </head>

    <body>
    <table width="555" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td width="143"><cfif DateFormat(now(), 'hh') gt 0 and DateFormat(now(),
    'hh') lt 12>Bonjour<cfelse>Bonsoir</cfif></td>
    <td width="412">Francois-Yanick<!-- TemplateBeginEditable name="nom"
    -->nom<!-- TemplateEndEditable --></td>
    </tr>
    </table>
    </body>
    </html>

    francois-yanick Guest

  2. Similar Questions and Discussions

    1. Pop-up Menu's don't work when using Dreamweaver template
      Hi, I have created a pop-up menu in Firewords, as everything I have read tells me not to do it in Dreamweaver. HOwever, the problem is when I...
    2. Media Playback doesnt work in template
      It's easy to use to play an FLV when I create it on it's own new document. It's own document, I repeat. However when I create one on a temlate...
    3. Calling an coldfusion template from a ASP script
      G'day, On the server i am using a asp script to loop thru an xml file that contains a number of email addresses. When i pick up a email address i...
    4. ClintID does not work for datagrid template columns controls
      Hello I have a datagrid "dg" which has two template columns. The first template column contains a button denoted "b" and the second template column...
    5. Page inheritance (template) doesn't work in virtual directory
      An update on my original message seens like virtual directory doesn't like page inheritance I have taken my form in my Secure folder and made a...
  3. #2

    Default Re: Template for ColdFusion not work

    You are view the CFM page using the webserver rather than simply browing to
    it.

    --
    Regards

    Paul Whitham
    Macromedia Certified Professional for Dreamweaver MX2004
    Valleybiz Internet Design
    [url]www.valleybiz.net[/url]

    Team Macromedia Volunteer for Ultradev/Dreamweaver MX
    [url]www.macromedia.com/support/forums/team_macromedia[/url]

    "francois-yanick" <fybourassa@ccemtl.org> wrote in message
    news:d3j31h$cs7$1@forums.macromedia.com...
    > We are trying to create a Coldfusion template with Dreamweaver MX 2004 and
    2003
    > (we though the problem was maybe in the version of Dreamweaver). This step
    is
    > going well, we obtained our template "file.dwt.cfm".
    >
    > But, when we try to create a CFM page based on the template we created
    for it
    > - and we run it on the browser, we obtained a blank page.
    >
    > What is weird is when we create a simple HTM page (file.htm) based on the
    > template, it work and show everything on screen but not for dynamic page.
    >
    > Did somebody have this kind of problem before? We searched this problem
    on the
    > net and it seems that we are alone in that issue!!!
    > :confused;
    >
    > Here is the source code generated for file.cfm:
    >
    > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    > <HTML><HEAD>
    > <META http-equiv=Content-Type content="text/html; charset=utf-8"></HEAD>
    > <BODY></BODY></HTML>
    >
    >
    > Here is the code for file.cfm:
    >
    > <html><!-- InstanceBegin template="/Templates/table.dwt.cfm"
    > codeOutsideHTMLIsLocked="false" -->
    > <head>
    > <!-- InstanceBeginEditable name="doctitle" -->
    > <title>Untitled Document</title>
    > <!-- InstanceEndEditable -->
    > <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    > <!-- InstanceBeginEditable name="head" -->
    > <!-- InstanceEndEditable -->
    > </head>
    >
    > <body>
    > <table width="555" border="0" cellspacing="0" cellpadding="0">
    > <tr>
    > <td width="143"><cfif DateFormat(now(), 'hh') gt 0 and
    DateFormat(now(),
    > 'hh') lt 12>Bonjour<cfelse>Bonsoir</cfif></td>
    > <td width="412">Francois-Yanick<!-- InstanceBeginEditable
    name="nom" -->
    > c&lt;est
    > une tes<!-- InstanceEndEditable --></td>
    > </tr>
    > </table>
    > </body>
    > <!-- InstanceEnd --></html>
    >
    > And here is the code for file.dwt.cfm:
    >
    > <html>
    > <head>
    > <!-- TemplateBeginEditable name="doctitle" -->
    > <title>Untitled Document</title>
    > <!-- TemplateEndEditable -->
    > <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    > <!-- TemplateBeginEditable name="head" -->
    > <!-- TemplateEndEditable -->
    > </head>
    >
    > <body>
    > <table width="555" border="0" cellspacing="0" cellpadding="0">
    > <tr>
    > <td width="143"><cfif DateFormat(now(), 'hh') gt 0 and
    DateFormat(now(),
    > 'hh') lt 12>Bonjour<cfelse>Bonsoir</cfif></td>
    > <td width="412">Francois-Yanick<!-- TemplateBeginEditable name="nom"
    > -->nom<!-- TemplateEndEditable --></td>
    > </tr>
    > </table>
    > </body>
    > </html>
    >

    Paul Whitham TMM Guest

  4. #3

    Default Re: Template for ColdFusion not work

    I do not know exactly what is the real explication for the problem. But I deleted the site and recreated it. Then, I rebooted the system (machine) and it now work.
    francois-yanick Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139