Forum Moderators: mack
I have been told that I cannot use SSI on a particular server because it is a Windows, not a Linux server.
This is a major nuisance because I often need to update the menu which is shared across all the pages. On my own site I do this with SSI - fantastic.
Is there any other way of doing this short of using an extended search and replace function within an html hand-coding tool (which mine performs very clumsily)?
They told me I could use Front Page Extensions - YUK!
Thanks
<!--webbot bot="include" u-include="http://www.example.com/file.htm" tag="body" --> In reference to the ASP include mentioned above. You can also use a virtual include command which does not require that the file be at the same directory level...
<!-- #include virtual="http://www.example.com/file.asp" --> P.S. The <!--webbot--> command is probably going to be much easier to manage than SSI. Also, it does not require that you change any file extensions.
<!--webbot--> is a FrontPage include and is understood by Windows Servers. Basically you build your include files as you would with any other include. With FP includes or <!--webbot-->s, you build the page just like any other page leaving in all of the head data (<head></head>). The webbot will only include what is between the <body></body> tags of the include file. P.S. I would make one and test first before diving in.
here is the code I used for the page:
--------------------------------------------------
<html>
<head>
<title></title>
<meta name="Description" content="">
<meta name="Keywords" content="">
<meta name="Author" content="Alasdair Broun">
<meta name="Generator" content="AceHTML 4 Pro">
</head>
<body>
This is a test document to see if the webbot include system works.
<p>
<!--webbot bot="include" u-include="http://www.whatever.co.uk/testincl.htm" tag="body" -->
</p>
<p>
<!-- #include virtual="http://www.whatever.co.uk/testincl.htm" -->
</p>
The test include contains an image and text which should appear above.
</body>
</html>
-----------------------------------------------------
and here is the included page:
-------------------------------------------------------
<html>
<head>
<title></title>
<meta name="Description" content="">
<meta name="Keywords" content="">
<meta name="Author" content="Alasdair Broun">
<meta name="Generator" content="AceHTML 4 Pro">
</head>
<body>
<img src="images/button.jpg" border="0" width="95" height="49" alt="back to home page">
This image and this text is part of the include
</body>
</html>
---------------------------------------------------
hav I omitted something?
Thanks