|
You are here: Home / Documentation / How To: Templates in Sitellite |
How To: Templates in SitelliteNaming SchemeWhere Sitellite's template system gets interesting is in the ability to specify alternate templates within a set. This is done in one of two ways:
The second part of the template name is considered its actual name (the mode could be called a prefix if you like, and ".tpl" is simply a suffix that tells you the file is a template file). The actual name corresponds either to the "template" attribute of the page object (accessible under the "Properties" tab in the page editor, or via the page_template() function inside boxes and actions), to the template attribute of a parent page that is marked as a section root (also under the "Properties" tab), or the name specified in the "default_template" setting in inc/conf/config.ini.php (which you should leave as "default"). This allows you to specify additional templates in the same set that alter the look of specific pages, or of entire sections of your web site. With all of these naming options, Sitellite's template system offers undoubtedly the most flexible and advanced template selection structure available in any PHP-based system today. Next up: Custom Template Sets Page 1: Introduction |
|
Copyright © 2008, SIMIAN systems Inc. All rights reserved. Privacy policy Some of the icons on this site were created by the Gnome Project. |