Theming

Theming for Travelsized CMS is a simple process, involving only knowledge of HTML (or WML or XHTML or whichever type of web-technology you wish to use). The only requirement is a specific set of styles used by the management interface. The CSS can be found in the sample theme, and is the only content of the CSS file in that folder. In this CSS file is also a set of options for customising the logout, setupsite and editthispage buttons and links.

To make a theme, simply make the layout for a web-site as you would normally and then put in placeholders where the actual content will go. A placeholder in Travelsized CMS is an all-capitals set of characters encapsulated in a set of hash marks, for example ##THISTHEME##, which translates into the directory where the current theme is contained (for example "setup/themes/default").

The best thing for learning how to do this is by example. Thus, here is the sample theme included with Travelsized:

Special CSS ids and selectors:

List of Travelsized CMS Theme placeholders:

Internal placeholders:

General placeholders

Page related placeholders

Internationalisation placeholders

The following is a simple list, where the placeholders are shown with their English language translation. Some may seem banale, but they are nessecary for internationalisation reasons. They enable the entire site to be translated, including the interface and not just the content.

Special placeholders

Language placeholders:

Used for example as this: <a href="#LANGUAGELINK_EN##">##LANGUAGENAME_EN##\</a> | \<a href="#LANGUAGELINK_DK##">#LANGUAGENAME_DK

Theme placeholders

This set of placeholders is rather special, and allows you to i18n your themes. By creating a number of files named messages.??.txt, where ?? is the country code for the language the file contains, each line in these files are read by Travelsized and put into a set of placeholders named ##THEME_1##, ##THEME_2## and so on, the numbers being the line number in the file.

Step by Step guide to Theming for Travelsized CMS

  1. Make a new web-site somewhere on your filesystem using your favorite web development environment (Dreamweaver, Quanta+, Kate, emacs...)
  2. Edit this web-site to suit you, using the place-holders described above.

Generated on Sun Oct 26 20:33:14 2008 for The Travelsized Content Management System by  doxygen 1.5.5