Pure Software Knowledge Base Glossary    Contact Us
 
   
Browse by Category
Pure Software Knowledge Base > Lore > Styles/Templates > Understanding the styles system

Understanding the styles system

The entire user interface for Lore is built on a completely customizable template and style system. Each specific page (and some elements used in many pages) is contained in its own separate template file.

A style is a complete collection of templates with a CSS stylesheet. Your knowledge base can easily have several styles that you can instantly switch to using the control panel. Each style has its own directory in the /styles folder.

Lore uses Smarty for its templating engine. Smarty is an extremely fast and powerful templating engine in use on thousands of web sites. Each template used by Lore contains the static HTML with the variables containing the information that changes from page to page (such as the article title and content). Variables will appear like this in templates:

<b>{$articles.title}</b>

When the above template is rendered by smarty, {$articles.title} is replaced with the actual article title. When you are customizing your templates, you may want to move the variables around or change the HTML around them, but it is not recommended that you modify the actual variable name/tag itself unless you know what you are doing.

 


How helpful was this article to you?

Related Articles

System Requirements
Lore is designed to work on as many different systems as possible by...

 
Software Versioning System
All Pure Software products will follow the software...

 
Which operating systems does Lore support?
Please view the system requirements for more information.

User Comments

Comment David Elfstrom <david at elfstrom.com>
October 7, 2003 at 4:11am

Useful tips
1. when making your own style, keep the default folder untouched, but make a copy of it and rename it to your style name.



2. Make your changes to your style file



3. When a new version of Lore comes along, run a 'diff' on the new and the old default styles. A good, free Windows version is at http://www.componentsoftware.com/products/csdiff/index.htm.



4. Make any related changes to your own style file.


powered by Lore