andreas02 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 1 text file. TXP comes with 2 page templates already, "default" and "archive". We will only be modifying the default page template.
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.
That's the page templates done!
Form Templates
In the folder called "forms" you should find 2 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. This Readme is a .txt file. In fact the only things that aren't are the image files.
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.
Sections
You will only need to change one setting in the "Presentation/Sections" area of the admin panel. Scroll down to find the "article" section's settings and change "Uses Page:" to default.
Images
Simply upload the "images" directory directly into your installation, so that the images are in the directory containing your "index.php" and "textpattern" files.
CSS
Throughout Leaf 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.
Next, create a new stylesheet by using the "Copy style sheet as" box at the bottom of the page. Type in print and click the copy button. Now, copy the print.css contents into the new stylesheet and save it.
Done!