Templates and stylesheets

A template is basically the HTML layout, or the design, of a page. This is the work of the designer. Whatever is in a template is used on every page that uses that template, meaning that the person editing the content doesn't need any web design skills.

In the template there are placeholders for content and navigation areas. When a user is visiting your site the page is automatically generated from the template and the placeholders are filled with the content.

The template is the HTML structure. It is then styled in one or more style sheets that are attached to each template. This styling is done with CSS. So to get a site look the way you want you should be familiar with HTML and CSS on at least a basic level. But don't worry, there are themes with ready-made templates and style sheets for you to download!

When you first install CMS Made Simple there are some basic templates that you can use and customize to your needs. Those templates are described in the section Default Templates Explained. The designer of your site can also add new templates to make the site look any way you want. The CMSMS community also shares themes for anyone to download and use at The CMSMS Themes site.

Templates and style sheets in the CMSMS Admin Panel

In the CMSMS Admin Panel you will find the templates and style sheets in the Layout menu.


Previous page: How CMSMS Works
Next page: Pages and navigation


Time: 0.045208 / SQL: 0.00812s for 33 queries / Net Memory: 1287000 / Peak: 1711352
Debug: (0.00020399999999998) - (net usage: 36928) - (peak: 397160)
Initialize Database
Debug: (0.00097099999999994) - (net usage: 81080) - (peak: 441312)
Done Initializing Database
Debug: (0.00098799999999999) - (net usage: 81240) - (peak: 441472)
initialize internal global cache
Debug: (0.0014949999999999) - (net usage: 190472) - (peak: 562472)
done initializing global cache
Debug: (0.001509) - (net usage: 190248) - (peak: 562472)
Loading Modules
Debug: (0.0025029999999999) - (net usage: 218912) - (peak: 587312)
End of Loading Modules
Debug: (0.0025769999999999) - (net usage: 219680) - (peak: 587312)
Initialize Smarty
Debug: (0.002586) - (net usage: 219832) - (peak: 587312)
Done Initialing Smarty
Debug: (0.0026269999999999) - (net usage: 236360) - (peak: 596592)
cms_content_cache: begin load needed content objects
Debug: (0.002728) - (net usage: 236904) - (peak: 597144)
cms_content_cache: end loading needed content objects
Debug: (0.00313) - (net usage: 285128) - (peak: 645368)
SELECT * FROM cms_content WHERE content_id = 3 LIMIT  1
Debug: (0.0035459999999999) - (net usage: 296256) - (peak: 656488)
process template top
Debug: (0.003898) - (net usage: 316888) - (peak: 677128)
SELECT * FROM cms_layout_templates WHERE id = 5 LIMIT  1
Debug: (0.005061) - (net usage: 361424) - (peak: 726232)
SELECT * FROM cms_content_props WHERE content_id = 3
Debug display of 'Start Load Smarty Plugin Search/function':(0.006473) - (net usage: 385408) - (peak: 752056)
Debug: (0.0067199999999999) - (net usage: 402792) - (peak: 763024)
SELECT * FROM cms_module_smarty_plugins ORDER BY module
Debug display of 'Start Load Smarty Plugin nav_breadcrumbs/function':(0.0070659999999999) - (net usage: 396064) - (peak: 763112)
Debug display of 'Start Load Smarty Plugin Navigator/function':(0.0074069999999999) - (net usage: 400472) - (peak: 763112)
Debug display of 'Start Load Smarty Plugin module_available/function':(0.0076569999999999) - (net usage: 401248) - (peak: 763112)
Debug display of 'End Load Smarty Plugin module_available/function':(0.007678) - (net usage: 402208) - (peak: 763112)
Debug: (0.0096769999999999) - (net usage: 426808) - (peak: 800288)
SELECT * FROM cms_content FORCE INDEX (cms_index_content_by_idhier) WHERE content_id IN (1,2,11,22) AND active = 1 ORDER BY hierarchy
Debug: (0.01018) - (net usage: 500896) - (peak: 861136)
SELECT * FROM cms_layout_tpl_type WHERE originator = 'Search' AND name = 'searchform' LIMIT  1
Debug: (0.010482) - (net usage: 503904) - (peak: 864144)
SELECT * FROM cms_layout_templates WHERE type_id = '10' AND type_dflt = 1 LIMIT  1
Debug: (0.011565) - (net usage: 572888) - (peak: 985480)
Start Navigator breadcrumbs action
Debug: (0.011786) - (net usage: 591096) - (peak: 985480)
SELECT * FROM cms_layout_tpl_type WHERE originator = 'Navigator' AND name = 'breadcrumbs' LIMIT  1
Debug: (0.012089) - (net usage: 593520) - (peak: 985480)
SELECT * FROM cms_layout_templates WHERE type_id = '5' AND type_dflt = 1 LIMIT  1
Debug: (0.012514) - (net usage: 603736) - (peak: 985480)
SELECT * FROM cms_content_props WHERE content_id = 2
Debug: (0.01297) - (net usage: 605384) - (peak: 985480)
SELECT * FROM cms_content FORCE INDEX (cms_index_content_by_idhier) WHERE content_id IN (4,5,6,7,8,9,10) AND active = 1 ORDER BY hierarchy
Debug: (0.013386) - (net usage: 634920) - (peak: 995160)
SELECT * FROM cms_content_props WHERE content_id IN (4,5,6,7,8,9,10) ORDER BY content_id
Debug: (0.016117) - (net usage: 757176) - (peak: 1171544)
End Navigator breadcrumbs action
Debug: (0.016185) - (net usage: 742568) - (peak: 1171544)
Start Navigator default action
Debug: (0.016438) - (net usage: 762168) - (peak: 1171544)
SELECT * FROM cms_layout_templates WHERE name = 'Simple Navigation' LIMIT  1
Debug: (0.017077) - (net usage: 785384) - (peak: 1171544)
SELECT * FROM cms_content FORCE INDEX (cms_index_content_by_idhier) WHERE content_id IN (12,13,14,15,16,17,18) AND active = 1 ORDER BY hierarchy
Debug: (0.017598) - (net usage: 881776) - (peak: 1242016)
SELECT * FROM cms_content FORCE INDEX (cms_index_content_by_idhier) WHERE content_id IN (23,30) AND active = 1 ORDER BY hierarchy
Debug: (0.023077) - (net usage: 934112) - (peak: 1373616)
End Navigator default action
Debug: (0.023415) - (net usage: 956568) - (peak: 1373616)
SELECT * FROM cms_layout_tpl_type WHERE originator = 'News' AND name = 'summary' LIMIT  1
Debug: (0.023695) - (net usage: 961360) - (peak: 1373616)
SELECT * FROM cms_layout_templates WHERE type_id = '6' AND type_dflt = 1 LIMIT  1
Debug: (0.024129) - (net usage: 970088) - (peak: 1373616)
            SELECT SQL_CALC_FOUND_ROWS
                mn.*,
                mnc.news_category_name,
                mnc.long_name,
                u.username,
                u.first_name,
                u.last_name
            FROM cms_module_news mn
            LEFT OUTER JOIN cms_module_news_categories mnc
            ON mnc.news_category_id = mn.news_category_id
            LEFT OUTER JOIN cms_users u
            ON u.user_id = mn.author_id
            WHERE
                status = 'published'
            AND
        IF(start_time IS NULL AND end_time IS NULL,news_date <= NOW(),NOw() BETWEEN start_time AND end_time)ORDER BY mn.news_date desc LIMIT 0, 3
Debug: (0.024375) - (net usage: 989712) - (peak: 1373616)
SELECT FOUND_ROWS() LIMIT  1
Debug: (0.02468) - (net usage: 1011992) - (peak: 1373616)
SELECT * FROM cms_module_news_fielddefs WHERE public = 1 ORDER BY item_order
Debug: (0.024995) - (net usage: 1014464) - (peak: 1374704)
SELECT * FROM cms_content WHERE content_id = 24 LIMIT  1
Debug: (0.025268) - (net usage: 1029312) - (peak: 1389552)
SELECT * FROM cms_module_news_categories ORDER BY hierarchy
Debug: (0.025511) - (net usage: 1031096) - (peak: 1391336)
SELECT news_category_id,COUNT(news_id) AS cnt FROM cms_module_news WHERE news_category_id IN (1) AND ( IFNULL(start_time, '1970-01-01 01:00:01') < '2025-12-06 04:12:06')  AND (( IFNULL(end_time, '1970-01-01 01:00:01') = '1970-01-01 01:00:01') OR (end_time > '2025-12-06 04:12:06'))  AND status = 'published' GROUP BY news_category_id
Debug: (0.033976) - (net usage: 1028368) - (peak: 1537840)
Start Navigator default action
Debug: (0.034191) - (net usage: 1046304) - (peak: 1537840)
SELECT * FROM cms_layout_tpl_type WHERE originator = 'Navigator' AND name = 'navigation' LIMIT  1
Debug: (0.034473) - (net usage: 1050648) - (peak: 1537840)
SELECT * FROM cms_layout_templates WHERE type_id = '4' AND type_dflt = 1 LIMIT  1
Debug: (0.035168) - (net usage: 1086752) - (peak: 1537840)
SELECT * FROM cms_content FORCE INDEX (cms_index_content_by_idhier) WHERE content_id IN (19,20,21) AND active = 1 ORDER BY hierarchy
Debug: (0.035685) - (net usage: 1134448) - (peak: 1537840)
SELECT * FROM cms_content FORCE INDEX (cms_index_content_by_idhier) WHERE content_id IN (25,26,27,28,29) AND active = 1 ORDER BY hierarchy
Debug: (0.03628) - (net usage: 1219536) - (peak: 1579776)
SELECT * FROM cms_content FORCE INDEX (cms_index_content_by_idhier) WHERE content_id IN (31,32) AND active = 1 ORDER BY hierarchy
Debug: (0.041909) - (net usage: 1244096) - (peak: 1681224)
End Navigator default action
Debug: (0.042169) - (net usage: 1245568) - (peak: 1681224)
SELECT * FROM cms_layout_templates WHERE name = 'footer' LIMIT  1
Debug: (0.04436) - (net usage: 1281888) - (peak: 1681224)
SELECT SQL_CALC_FOUND_ROWS S.id FROM cms_layout_stylesheets S LEFT JOIN cms_layout_design_cssassoc D ON S.id = D.css_id WHERE D.design_id = 5 ORDER BY D.item_order ASC LIMIT 0, 1000
Debug: (0.044536) - (net usage: 1299392) - (peak: 1681224)
SELECT FOUND_ROWS() LIMIT  1
Debug: (0.04493) - (net usage: 1332504) - (peak: 1692744)
SELECT id,name,content,description,media_type,media_query,created,modified FROM cms_layout_stylesheets WHERE id IN (4,10,7,1,2,3,13)