Ask a Question related to Dreamweaver AppDev, Design and Development.
-
JonesFC #1
DMX Template not displaying page content
I created a template in Dreamweaver MX 2004 that has some Coldfusion in it and
it has the extension dmx.cfm as it supposed to.
The template has the following:
1- it's an XHTML document
2- uses a <cfinclude> to include a file with some code for the head tag
content (css and JavaScript)
3- has a ColdFusion Custom Tag to display the header
4- has an editable area inside a DIV tag with ID= "page_content"
5- has a ColdFusion Custom Tag to display the footer inside a DIV tag with ID=
"footer_bar".
When I create a child page based on the template i can paste the page content
inside the editable area and see it in design view in Dreamweaver.
But when I try to see the page in the browser what happens is:
- The cfinclude works fine and inserts the css and Javascript code;
- The header and footer are displayed correctly
- However the page content is not displayed at all. When I try to see the code
the div tags used to contain the page content editable region are not in the
final HTML code, nor are the Div tags that were used for contain the footer.
I thought the problem could be with the DIV tags and I tried to use a similar
template without the DIV tags and still the page content does not show up in
the HTML code. I only get a page with the header and footer.
Am I missing something?
The code for the template follows:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- TemplateBeginEditable name="doctitle" -->
<title>[Doc title goes here]</title>
<!-- TemplateEndEditable -->
<!-- ***** include file with some content for the head tag ***** -->
<cfinclude template="/includes/HeadTag.cfm">
<cfset admin_code = "HR">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="ContentAdminCode" content="<cfoutput>#admin_code#</cfoutput>" />
<!-- TemplateBeginEditable name="head" -->
<meta name="ContentCreationDate" content="YYYY-MM-DD" />
<meta name="ContentEditDate" content="YYYY-MM-DD" />
<meta name="ContentPostDate" content="YYYY-MM-DD" />
<meta name="ContentProvider" content="[Content Provider Name]" />
<meta name="ContentDateExpire" content="YYYY-MM-DD" />
<!-- TemplateEndEditable -->
</head>
<body onload="page_initialize();">
<!-- include file with page header -->
<cf_test_header
title="401K Plan"
title_size="normal"
debug="no">
<div id="page_content">
<!-- TemplateBeginEditable name="Content" -->Page Content Goes here<!--
TemplateEndEditable -->
</div>
<div id="footer_bar">
<!-- custom tag with page footer -->
<cf_test_footer
content_admin_code="#admin_code#"
top_button="yes"
prev_url=""
prev_alt=""
next_url=""
next_alt=""
debug="no">
</div>
</body>
</html>
Thanks in advance for any help.
JonesFC Guest
-
Displaying External Content
Hi, I have long dealt with graphic design, but am fairly new to web design and am having a problem. I have a banner and left menu that I want to... -
displaying all file content properly
I want to display the entire contents of a cfm file so i can edit it, however using cffile and then cfoutput to display the contents means that all... -
Displaying template content in vs.net designer
hi, I'm trying to display the content within my "templated databound custom controls" templates at design time, in the vs.net designer. I'm able to... -
Displaying dbase content
I am retreiving information from a database and it works ok, but its rather a lot and I like to limit each web page to 10 rows of data, then put... -
problems displaying web content
I'm running Windows XP and both my IE6 and Netscape 7.1 browsers have simultaneously developed problems displaying the content of various web...



Reply With Quote

