View Single Post

   
  #10 (permalink)  
Old 02-20-2008, 08:53 PM
Daniel de Kok
 
Posts: n/a
Default Re: Content Management software - how to choose?

On Sat, 03 Feb 2007 06:55:29 +1100, Grant wrote:
> You have the apache manual for SSI (server side includes) reference.
>
> Software? Vim! )


That sums it up , or to give an example (that pulls in just a part of
the content through SSI):

index.html:
---
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>My site: Home</title>
<link rel="stylesheet" href="/css/default.css" type="text/css" />
</head>

<body>
<div id="container">
<!--#include virtual="/share/logo.html" -->
<!--#include virtual="/share/menu.html" -->

<div id="content">
<p>Yadda</p>
</div>

</div>
</body>
</html>
---

This pulls in /share/logo.html and /share/menu.html, which are just HTML
snippets, e.g.:

/share/menu.html
---
<div id="menu">
<a href="/">Home</a>
<a href="/about.shtml">About</a>
<a href="/links.shtml">Links</a>
</div>
---

Pfew, that must be the first legitimate HTML post in this group . At any
rate, SSIs are one of the greatest things since sliced bread. Others
reinvented it poorly .

-- Daniel
Reply With Quote