How to create a simple Website using Publisher.
This how to is based on some materials from the source code, as well as examples of the templates used to make up the OpenGroupware.org website. Thanks to all those who've contributed to this how-to by contributing source to the projects I've based parts of this how-to on.
This will also assume you know your way around OGo's web interface, and know how to create projects, new files, etc.
First things first, you will need to create a project. If it's a company wide project (like the corporate website, or an intra-net) you might want your OGo admin to create the project and set permissions, so it shows up in the common projects.
Publisher uses templates to create the content that is output as HTML. Templates allow you to customize the information, create default layouts and override them as needed, and do some other fancy stuff. We'll be keeping it simple for now.
First, you'll want to create the Main.xtmpl template. This is the first, and most important template, since publisher will not work without it.
Here's what we're going to put into our Main.xtmpl today.
<!--**Remove these comment tags**
<?xml version="1.0" encoding="iso-8859-1"?>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:var="http://www.skyrix.com/od/binding"
xmlns:js="http://www.skyrix.com/od/javascript"
>
<SKYOBJ insertvalue="template" name="head" />
<SKYOBJ insertvalue="var" name="body" />
</html>
**Remove these comment tags**-->
Well, seems to be interesting, but a little imcomplete...