Default Templates Explained

CMS Made Simple 2.2.21 was installed with numerous default templates (you choose this during the installation process). These are to display some of the features of CMS Made Simple and to give you a head start when creating your own web sites.

The tags that are unique to templates in CMS Made Simple are described on the page (see menu to the left). Click on any link beneath that page in the menu to the left to see what the default templates look like.

Changing the style of Default Templates

All of the templates and style sheets have comments throughout them to help you find where to change the look of them.

Menus/navigation

Two kinds of navigation are used in these templates. For each there is a menu template in the Menu Manager. CSSMenu is a dropdown menu using only CSS. Well, for Internet Explorer 6 some JavaScript has to be used... Two of the page templates are using CSSMenu for navigation, one with the menu horizontally at the top and the other with the menu vertically to the left.

The other navigation type is what we call Simple Navigation. That is just an unordered list that gets its style and appearance from the style sheets (CSS). Also here one page template is using a horizontal simple navigation and the other a vertical menu.

The menu tag in each template is used like this: {menu template='cssmenu'}, where the cssmenu is the name of the Menu Manager template, if you make a custom menu template you don't need to use the on the end. More parameters can be used, for example to start a menu from the second level, collapse the children pages until the parent is clicked etc. Read more about that in the Menu Manager Help in the Admin Panel.



Time: 0.048605 / SQL: 0.00784s for 33 queries / Net Memory: 1302384 / Peak: 1724248
Debug: (0.00034999999999996) - (net usage: 35616) - (peak: 393360)
Initialize Database
Debug: (0.0013329999999999) - (net usage: 79768) - (peak: 437512)
Done Initializing Database
Debug: (0.0013529999999999) - (net usage: 79928) - (peak: 437672)
initialize internal global cache
Debug: (0.0019739999999999) - (net usage: 189160) - (peak: 558672)
done initializing global cache
Debug: (0.001991) - (net usage: 188936) - (peak: 558672)
Loading Modules
Debug: (0.0033529999999999) - (net usage: 217600) - (peak: 583512)
End of Loading Modules
Debug: (0.0034459999999999) - (net usage: 218368) - (peak: 583512)
Initialize Smarty
Debug: (0.003458) - (net usage: 218520) - (peak: 583512)
Done Initialing Smarty
Debug: (0.0035059999999999) - (net usage: 235048) - (peak: 592792)
cms_content_cache: begin load needed content objects
Debug: (0.003679) - (net usage: 235592) - (peak: 593344)
cms_content_cache: end loading needed content objects
Debug: (0.0041559999999999) - (net usage: 275496) - (peak: 633240)
SELECT * FROM cms_content WHERE content_id = 11 LIMIT  1
Debug: (0.0047569999999999) - (net usage: 286912) - (peak: 644656)
process template top
Debug: (0.005088) - (net usage: 307528) - (peak: 665280)
SELECT * FROM cms_layout_templates WHERE id = 5 LIMIT  1
Debug: (0.0066109999999999) - (net usage: 352072) - (peak: 714384)
SELECT * FROM cms_content_props WHERE content_id = 11
Debug display of 'Start Load Smarty Plugin Search/function':(0.0081709999999999) - (net usage: 376832) - (peak: 740992)
Debug: (0.0084599999999999) - (net usage: 394232) - (peak: 751976)
SELECT * FROM cms_module_smarty_plugins ORDER BY module
Debug display of 'Start Load Smarty Plugin nav_breadcrumbs/function':(0.0088189999999999) - (net usage: 387504) - (peak: 752064)
Debug display of 'Start Load Smarty Plugin Navigator/function':(0.009184) - (net usage: 391912) - (peak: 752064)
Debug display of 'Start Load Smarty Plugin module_available/function':(0.0094519999999999) - (net usage: 392656) - (peak: 752064)
Debug display of 'End Load Smarty Plugin module_available/function':(0.0094749999999999) - (net usage: 393632) - (peak: 752064)
Debug: (0.011588) - (net usage: 418176) - (peak: 789208)
SELECT * FROM cms_content FORCE INDEX (cms_index_content_by_idhier) WHERE content_id IN (1,2,22) AND active = 1 ORDER BY hierarchy
Debug: (0.012084) - (net usage: 479048) - (peak: 836800)
SELECT * FROM cms_layout_tpl_type WHERE originator = 'Search' AND name = 'searchform' LIMIT  1
Debug: (0.012361) - (net usage: 482056) - (peak: 839808)
SELECT * FROM cms_layout_templates WHERE type_id = '10' AND type_dflt = 1 LIMIT  1
Debug: (0.013556) - (net usage: 551040) - (peak: 961152)
Start Navigator breadcrumbs action
Debug: (0.013843) - (net usage: 569248) - (peak: 961152)
SELECT * FROM cms_layout_tpl_type WHERE originator = 'Navigator' AND name = 'breadcrumbs' LIMIT  1
Debug: (0.014112) - (net usage: 571672) - (peak: 961152)
SELECT * FROM cms_layout_templates WHERE type_id = '5' AND type_dflt = 1 LIMIT  1
Debug: (0.014676) - (net usage: 580024) - (peak: 961152)
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.015079) - (net usage: 610192) - (peak: 967944)
SELECT * FROM cms_content_props WHERE content_id IN (12,13,14,15,16,17,18) ORDER BY content_id
Debug: (0.015836) - (net usage: 708616) - (peak: 1066368)
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.016135) - (net usage: 714992) - (peak: 1072744)
SELECT * FROM cms_content_props WHERE content_id IN (19,20,21) ORDER BY content_id
Debug: (0.018903) - (net usage: 795976) - (peak: 1207856)
End Navigator breadcrumbs action
Debug: (0.018989) - (net usage: 779632) - (peak: 1207856)
Start Navigator default action
Debug: (0.019206) - (net usage: 799248) - (peak: 1207856)
SELECT * FROM cms_layout_templates WHERE name = 'Simple Navigation' LIMIT  1
Debug: (0.01969) - (net usage: 808936) - (peak: 1207856)
SELECT * FROM cms_content FORCE INDEX (cms_index_content_by_idhier) WHERE content_id IN (3,4,5,6,7,8,9,10) AND active = 1 ORDER BY hierarchy
Debug: (0.020383) - (net usage: 929704) - (peak: 1287456)
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.026111) - (net usage: 982040) - (peak: 1419056)
End Navigator default action
Debug: (0.026453) - (net usage: 1004496) - (peak: 1419056)
SELECT * FROM cms_layout_tpl_type WHERE originator = 'News' AND name = 'summary' LIMIT  1
Debug: (0.026751) - (net usage: 1009288) - (peak: 1419056)
SELECT * FROM cms_layout_templates WHERE type_id = '6' AND type_dflt = 1 LIMIT  1
Debug: (0.027165) - (net usage: 1018016) - (peak: 1419056)
            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.027301) - (net usage: 1037640) - (peak: 1419056)
SELECT FOUND_ROWS() LIMIT  1
Debug: (0.027613) - (net usage: 1059920) - (peak: 1419056)
SELECT * FROM cms_module_news_fielddefs WHERE public = 1 ORDER BY item_order
Debug: (0.027867) - (net usage: 1062392) - (peak: 1420144)
SELECT * FROM cms_content WHERE content_id = 24 LIMIT  1
Debug: (0.028145) - (net usage: 1077240) - (peak: 1434992)
SELECT * FROM cms_module_news_categories ORDER BY hierarchy
Debug: (0.028363) - (net usage: 1079024) - (peak: 1436776)
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:11:46')  AND (( IFNULL(end_time, '1970-01-01 01:00:01') = '1970-01-01 01:00:01') OR (end_time > '2025-12-06 04:11:46'))  AND status = 'published' GROUP BY news_category_id
Debug: (0.037736) - (net usage: 1090096) - (peak: 1591472)
Start Navigator default action
Debug: (0.037943) - (net usage: 1108032) - (peak: 1591472)
SELECT * FROM cms_layout_tpl_type WHERE originator = 'Navigator' AND name = 'navigation' LIMIT  1
Debug: (0.038198) - (net usage: 1112376) - (peak: 1591472)
SELECT * FROM cms_layout_templates WHERE type_id = '4' AND type_dflt = 1 LIMIT  1
Debug: (0.038968) - (net usage: 1156504) - (peak: 1591472)
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.039526) - (net usage: 1233400) - (peak: 1591472)
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.045346) - (net usage: 1260808) - (peak: 1695448)
End Navigator default action
Debug: (0.045577) - (net usage: 1262280) - (peak: 1695448)
SELECT * FROM cms_layout_templates WHERE name = 'footer' LIMIT  1
Debug: (0.047917) - (net usage: 1297272) - (peak: 1695448)
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.04806) - (net usage: 1314776) - (peak: 1695448)
SELECT FOUND_ROWS() LIMIT  1
Debug: (0.04835) - (net usage: 1347888) - (peak: 1705640)
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)