If you are building a site from scratch, converting an existing site to GetSimple or you wish to use a static html template you need to create a GetSimple Theme. There is a Step-by-Step Tutorial for converting a static html template into a simple theme here.
Creating themes for GetSimple is extremely easy. GS uses template tags similar to WordPress (if you are familiar with that). All template pages are written in PHP. There is only one truly required theme file, and that's template.php. You then place that file within it's own unique folder name, and install it on your server.
template.php is the “Default Template” file used for most pages within your site, but you can make other files within your theme and set particular pages to use that new template file instead by choosing it within the Page Options → Template setting:
At the very minimum, a GetSimple theme consists of only one file: template.php. This file should reside inside a folder named specifically for your theme, and placed within the theme folder of your GetSimple installation such as: /path/to/getsimple/theme/my_theme/template.php You can rename a theme by renaming the folder that contains it.
By default all new pages use the template.php file when displayed. Developers have the ability to create other non-standard template files such as homepage.php or contact.php. The user of the cms would then choose that particular template when creating a new page.
Once you have the file layout and style created, the next step is to use our template tags to show the content that will come from GetSimple.
For example, if you want to show the title, link and body inside your template, use something like this:
<a href="<?php get_page_url(); ?>"><?php get_page_title(); ?></a> <?php get_page_content(); ?>
These are some tips to help development of themes for GetSimple
/path/to/getsimple/gsconfig.php file. Includes CKEditor, file upload, security, language and sitemap settings./path/to/getsimple/gsconfig.php to enable full PHP errors to help debug./path/to/getsimple/data/other/logs/errorlog.txt - It is automatically generated by the system regardless of the GSDEBUG setting./path/to/getsimple/theme/your-theme/functions.php into your theme to add custom functions that can be used within your theme./path/to/getsimple/theme/your-theme/images/screenshot.png to enable the theme image that shows when it s activated in the administrator panel. /images/ AND named screenshot.png<?php if(!defined('IN_GS')){ die('you cannot load this page directly.'); } ?>
Back to the GetSimple Wiki Contents Page