I tagify everything so I use a tag that I call act_htmltags.cfm like this:

<cfdefaultcase>
  <cf_act_htmltags>
  <cfinclude template="dsp_home.cfm">
  </cf_act_htmltags>
</cfdefaultcase>

---act_htmltags.cfm---

<cfparam name="caller.title" default="My website">
<cfswitch expression="#thistag.executionmode#">
 <cfcase value="start">
  <html>
  <head>
  <title><cfoutput>#caller.title#</cfoutput></title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <style type="text/css">

 body {  font-family: arial, verdana, helvetica; color: #434343;
text-decoration: none; font=11;}
 td {  font-family: arial, verdana, helvetica; color: #434343;
text-decoration: none; font=11;}
 td.msg {  font-family: verdana, arial, helvetica; color: #327e98;
text-decoration: none; font=14;}
 th {  font-family: verdana, arial, helvetica; color: #737373;
text-decoration: bold; font=11;}
 a {  font-family: verdana, arial, helvetica; color: #330099;
text-decoration: underline; cursor: hand; font=11;}
 a:hover {  font-family: verdana, arial, helvetica; color: #DE8C12;
text-decoration: underline; cursor: hand; font=11;}
 p { font-family: arial, verdana, helvetica; color: #434343;
text-decoration: none; font=11;}

</style>
  </head>

  <body bgcolor="#ffffff">

 </cfcase>

 <cfcase value="end">
 <table align="left"  vspace="10">
  <tr>
  <cfoutput>
   <td><a href="index.cfm?fuseaction=forum&#urltoken#">Forums</a></td>
   <td><a href="index.cfm?#urltoken#">Home</a></td>
  </cfoutput>
  </tr>
 </table>
  </body>
  </html>
 </cfcase>
</cfswitch>

And if you wanted to be too cool for school, you could use cfassociate to
make structures for your links and fonts and stuff.

----- 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.

Reply via email to