Doh.. Yeah I did not even think about the closing tags. I have those in a
footer.cfm
See what I get for not having morning coffee before typing. 

-----Original Message-----
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 20, 2006 8:10 AM
To: CF-Talk
Subject: RE: Including a file

That would result in:

<HTML><HEAD><TITLE></TITLE></HEAD><BODY>
This is the header.cfm
</BODY></HTML>
This is the index.cfm<BR>
This is the test.cfm<BR>

........which, of course, is invalid. If your main including template already
has the html and body tags, then no... the included template should not have
them. When you view source of the final HTML that it outputs to the browser,
you should only have one set each of <html></html> and <body></body> tags.





-----Original Message-----
From: Coldfusion [mailto:[EMAIL PROTECTED]
Sent: Friday, October 20, 2006 6:29 AM
To: CF-Talk
Subject: RE: Including a file

No you do not need a head/body tags, but then again it really depends on
what the included file does.

Example: this is an index.cfm file

INDEX.CFM
------------------------------------------
<cfinclude template="header.cfm">
This is the index.cfm<BR>
<cfinclude template="test.cfm">

HEADER.CFM
------------------------------------------
<HTML><HEAD><TITLE></TITLE></HEAD><BODY>
This is the header.cfm
</BODY></HTML>


TEST.CFM
------------------------------------------
This is the test.cfm<BR>

You will notice in this case my header.cfm file has the required tags not
the index.cfm or Test.cfm


-----Original Message-----
From: Pete [mailto:[EMAIL PROTECTED]
Sent: Friday, October 20, 2006 6:08 AM
To: CF-Talk
Subject: Including a file

Hi All

Just a really quick question - if I have a main program and I include
another file should I have the head and body tags in the included program ?

Thanks in advance for replies.

P









~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:257574
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to