Creating a front end tempate¶
This tutorial covers how to create a new TYPOlight template in one installation and import this template to another installation. Don't worry it's easy.
Create new template¶
First of all, create a new (default) installation of TYPOlight. Now you can create the root page, subpages, layouts and modules. Upload all of the necessary files (images, css files) to the tl_files folder, and if you use *.tpl files, upload them to the templates folder. Of course, you can also customize your settings and create the necessary users.
Prepare SQL file¶
This is the first step in preparing a new template to share with other TYPOlight installations. Most TYPOlight installations use a MySql database. The most popular application to manage MySql databases is phpMyAdmin. When you log into phpMyAdmin, you have to export the database as a .sql file. To do this, select the TYPOlight database and click the Export tab. There are a few export options. Note that you only need to export the TYPOlight tables from the database, so only select the tables starting with tl_.
The options in red frames must be off (in default these options are on). Save the sql file on your local computer and rename this file to
name_of_your_template.sql
To reduce the size of the sql file before exporting the database you can erase all system logs and delete all undo items in the TYPOlight backend.
Prepare new installation¶
Now we want to import our new template to another installation. So, we prepare a new installation and upload our sql file to the template folder and all necessary files (images, css and tpl files).
Next, open the TYPOlight installation page.
http://www.your-domain.com/typolight/install.php
Follow the instructions at the Import a template section. Now choose a new template to import directly to the new installation. Select your sql file and press the Import template button.
Now the new installation is ready to use with the imported template.
--- Tutorial created by qrczak