I break my header and footer into separate files:
dsp_header.cfm - HTML that is constant for all pages
dsp_banner.cfm - HTML that includes CF variables to dynamically set text and
graphics. This is also the file that is edited to customize the layout of
text and graphics along the top of the Web page.
dsp_footer.cfm - HTML to close off a few tags for all pages
Scott
----------
Scott Knaub
Web & Database Developer
Benefit Planners
194 S. Main Street
Boerne, TX 78006
Phone: 210-558-2100 x-1475
Fax: 210-558-2151
E-mail: [EMAIL PROTECTED]
Web: http://www.benplan.com
----- Original Message -----
From: "Brad Roberts" <[EMAIL PROTECTED]>
To: "Fusebox List" <[EMAIL PROTECTED]>
Sent: Tuesday, August 08, 2000 12:01 PM
Subject: header.cfm and footer.cfm
> Does anyone break apart your header and footer content into two files?
>
> Such as:
>
> <!--------------------------- dsp_Header.cfm -->
>
> <HTML>
> <HEAD>
> <TITLE>My Title</TITLE>
> </HEAD>
> <BODY>
>
> <!--------------------------- dsp_Top.cfm -->
>
> <TABLE width="100%" cellspacing="0" cellpadding="0" border="0">
> <TR>
> <TD>
> My Header
> </TD>
> </TR>
> <TR>
> <TD>
>
> <!--------------------------- dsp_Bottom.cfm -->
>
> </TD>
> </TR>
> <TR>
> <TD>
> Credits
> </TD>
> </TR>
> </TABLE>
>
> <!--------------------------- dsp_Footer.cfm -->
>
> </BODY>
> </HTML>
>
> Would this make it easier to include the dsp_header.cfm (which may never
> change) and optionally include the dsp_top.cfm and dsp_bottom.cfm?
>
> The reason I ask is because I have a site where the header and footer may
> change from page to page. Instead of duplicating everything between the
> <html> and <body> tags over and over in different header files, would it
> make more since to separate it into one file all together?
>
> I know that you would have to change app_layout.cfm to include the
> dsp_top.cfm and bottom.cfm, but it could work.
>
> Has anyone done something different? I'd like to see some other methods.
>
> Thanks,
>
> Brad Roberts
>
> --------------------------------------------------------------------------
----
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
>
----------------------------------------------------------------------------
--
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.