Maybe you can answer a problem I encounter now.

The pages of our website are full of includes and I would like to generate
automaticly the same site to set on the server all the pages files without
includes in the cfm textfile of the pages
for example

a page like that :

<cfinclude template="includes/toppub/toppub.cfm">
<cfinclude template="includes/topnavhaut/topnavhaut.cfm">
<cfinclude template="includes/topnavbas/topnavbas_pellicule.cfm">
<cfinclude template="includes/topaction/topaction_vide.cfm">
<cfinclude template="includes/center/center_acceptcondgen.cfm">
<cfinclude template="includes/bottom/bottom.cfm">

could be transformed into a file like that to optimise the cold fusion
server work :

//content of includes/toppub/toppub.cfm
<HTML><HEAD><TITLE>LIBERTY SURF</TITLE><meta http-equiv="content-type"
content="text/html;charset=iso-8859-1">
<META NAME="Description" CONTENT="Libertysurf fournisseur d'accès internet
gratuit : créez vos pages personnelles, votre adresse e-mail gratuite et
accédez à l'actualité en ligne">
<META NAME="Keywords" CONTENT="libertysurf, fournisseur, accès, internet,
gratuit, actualité, sélection, site, information, petites, annonces,
connexion, provider, email">
<SCRIPT LANGUAGE="JavaScript">var agent = navigator.userAgent.toLowerCase();
var ver = parseInt(navigator.appVersion); if ((agent.indexOf("mozilla")
!= -1) && (ver >= 4) && (navigator.appName.indexOf("Netscape") != -1))
document.write('<LINK href="../liberty_ns.css" REL="stylesheet"
TYPE="text/css">'); else document.write('<LINK href="../liberty.css"
REL="stylesheet" TYPE="text/css">'); function MM_reloadPage(init) { if
(init==true) with (navigator) {if
((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW ||
innerHeight!=document.MM_pgH) location.reload();}
MM_reloadPage(true);</SCRIPT>
</HEAD>
<BODY bgcolor="#ffffff" leftmargin="0" topmargin="0" MARGINHEIGHT="0"
MARGINWIDTH="0">
<a name="#up"></a>

<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=720 bgcolor=000000
align="center" height=68>
<TR><TD WIDTH=15 valign=top>
<img src="http://www.libertysurf.fr/img/ang_noir.gif"; WIDTH=15 HEIGHT=15>
</TD><TD ROWSPAN="2" WIDTH=133 VALIGN=middle>
<a href="http://www.libertysurf.fr";><img
src="http://www.libertysurf.fr/img/logolshome.gif"; WIDTH=127 HEIGHT=37
BORDER=0 ALT="Liberty Surf"></a>
<BR><DIV ALIGN=right><!-- <FONT SIZE=4
COLOR=white>PHOTO</FONT> --></DIV></TD>

<script language="Javascript">
<!--
function spc(_serial, _page, _class)
{
        var estat = new Image;
        estat.src = "http://prof.estat.com/cgi-bin/ft/"+ _serial+ "?"+
        "&n="+ Math.round (Math.random () * 1000000000000000)+
        "&page="+ _page+
        "&class="+ _class+
        "&referer="+ escape(document.referrer);
}
spc("10000021651","LibertyPhoto","LibertyPhoto");
//-->
</script>

<TD width=470 ROWSPAN="2">
<IFRAME WIDTH=468 HEIGHT=60 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0
FRAMEBORDER=0 SCROLLING=no BORDERCOLOR="#000000"
SRC="http://pub.libertysurf.fr/html.ng/category=/liberty_photo&site=liberty";
>
<SCRIPT LANGUAGE="JavaScript1.1"
SRC="http://pub.libertysurf.fr/js.ng/Params.richmedia=yes&category=/liberty_
photo&site=liberty"></SCRIPT>
<NOSCRIPT>
<A
HREF="http://pub.libertysurf.fr/click.ng/Params.richmedia=yes&category=/libe
rty_photo&site=liberty">
<IMG
SRC="http://pub.libertysurf.fr/image.ng/Params.richmedia=yes&category=/liber
ty_photo&site=liberty"></A>
</NOSCRIPT>
</IFRAME></TD></TR></TABLE>

<TABLE border=0 cellPadding=0 cellSpacing=0 height=1 width=1 align="center">
<TR><TD></TD></TR></TABLE>
<TABLE bgColor=#CC0000 border=0 cellPadding=0 cellSpacing=0 height=8
width=720 ALIGN=center>
<TR>
<TD><IMG src="../images/toppub/dot.gif" width=1 height=1></TD>
</TR>
</TABLE>

//end of content
//content of includes/topnavhaut/topnavhaut.cfm
etc...
....
//end of html page


If you have any ideas using any software.
You maybe have more experienced.
Thank for any reply

Christophe Glaudel


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to