andreas08 for Textpattern
Preamble
I will be using Stuart's (of The Bomb Site) Installation Instructions as a base for my own.
Please visit my website!
We are going to be overwriting existing templates so you should make a back-up of them in case you want to return to them at a later date.
Page Templates
In the folder called "pages" you will find two files. TXP comes with three page templates already, "default" and "archive". We will be modifying two of them: "default" and "archives".
In TXP go to "presentation/pages". This will normally show you the default page template. You can't delete this one so don't bother trying. What you can do is select all the text and delete it so you have an empty text box. Now open the "default page template.txt" file and copy/paste the whole thing into the text box and save it.
Do the same with the "archives" template.
That's the page templates done!
Form Templates
In the folder called "forms" you should find a few text files.
The difference between form templates and page templates is that you need to tell TXP what "type" of form it is so that it can parse it correctly. Below the main text box you will see 2 smaller boxes. The top one is for the Form name. The second one is for the Form type. Both are "required".
I have used a specific naming convention to name the form template text files included here.
First, all the files here end with the .txt suffix. You can ignore this completely. It is simply the type of file you are looking at.
The names of the forms are in a "form name () type" format. The first part of the name of the .txt file is the name of the form itself, while the part following the "()" is the form type.
Now just as you did with the page templates either overwrite any existing form templates or create new ones remembering to fill in the Form name and Form type boxes as well. If you are overwriting existing forms these boxes should already be filled in and I haven't changed these at all but do check! If you save a form without a name it will appear at the top of the form listing as a blank. You will not be able to select it. All you can do is delete and recreate it again. If you save a form with the wrong form type you will be able to change it and resave.
Images
No images are used in this template
CSS
Throughout this tutorial it is assumed that you are using the default CSS file. Go to "presentation/style" and you will be shown the "default" CSS. Just as you did with the templates, delete everything that is in the text box then open up the default.css file in the CSS folder here and copy/paste it into the text box then save it.
Done!