Content

The content is the information for the page. We have already mentioned that for each page on your site you choose what template to use. When you add content to a page, it is automatically placed in the placeholders of the template selected for that page.

A template can define one or several content areas, or content blocks. To add more content blocks to your template, use {content block='block name'}. These blocks will then appear as text areas when you edit or add a page that uses that template.

You can make a content block use only one line, instead of a full text area, by using the parameter oneline=true. That is, the full tag being: {content block='block name' oneline=true}. Read about more parameters in the help for the Content tag in the CMSMS Admin Panel, under Extensions » Tags.

Content Types

There are currently 6 main content types in version 2.2.21 "Sherbrooke". These content types determine the type of content for each menu item.

  • Content
  • Error Page
  • External Page Link
  • Internal Page Link
  • Section Header
  • Separator

The Content type is simply a regular page. Normally this is the only one you will use. That is what this page you are reading is. Here you can put any content that you would put on a regular page. The layout of these types of pages are controlled by the templates. For each content page you create you must add the title, menu text, choose if it is going to have a parent and choose a template for it. If you login as admin and change the template of this page, you will see exactly how it works.

The Error Page type is just what it sounds like, a page you set for "404 page not found" errors, where you can add the content that shows when a 404 error occurs, a target type and title, you can also choose the template it uses, it has no parent as it is not part of the menu.

The External Page Link type is just what it sounds like, a link to another external page and you add the title, menu text, choose if it is going to have a parent and a destination page along with the target setting and other options that a content type page has. This external page link type also shows up in the menu following the same hierarchy rules as the content type.

The Internal Page Link type is also just what it sounds like, a link to another internal page. This internal page link type also shows up in the menu following the same hierarchy rules as the content type and you add the title, menu text, choose if it is going to have a parent and a destination page along with the target setting and other options that a content type page has.

The Section Header type is used to break up menus into groupings (sections). This is unrelated to the hierarchy, as the section headers have no associated pages with them but can be used to group a set of links of similar content under them. They are just a little bit of text to say what the next few links are in reference to.

The Separator type is just what it sounds like, a separator that appears on the menus. This type follows the hierarchy set in content management pages.


Previous page: Pages and navigation
Next page: Menu Manager


Time: 0.046979 / SQL: 0.00788s for 33 queries / Net Memory: 1268200 / Peak: 1692664
Debug: (0.00028799999999995) - (net usage: 36928) - (peak: 397016)
Initialize Database
Debug: (0.001135) - (net usage: 81072) - (peak: 441168)
Done Initializing Database
Debug: (0.001154) - (net usage: 81232) - (peak: 441328)
initialize internal global cache
Debug: (0.001746) - (net usage: 190464) - (peak: 562328)
done initializing global cache
Debug: (0.001763) - (net usage: 190248) - (peak: 562328)
Loading Modules
Debug: (0.002879) - (net usage: 218904) - (peak: 587168)
End of Loading Modules
Debug: (0.002961) - (net usage: 219672) - (peak: 587168)
Initialize Smarty
Debug: (0.0029710000000001) - (net usage: 219840) - (peak: 587168)
Done Initialing Smarty
Debug: (0.003015) - (net usage: 236352) - (peak: 596448)
cms_content_cache: begin load needed content objects
Debug: (0.003166) - (net usage: 236904) - (peak: 597000)
cms_content_cache: end loading needed content objects
Debug: (0.003657) - (net usage: 259136) - (peak: 619232)
SELECT * FROM cms_content WHERE content_id = 5 LIMIT  1
Debug: (0.0041100000000001) - (net usage: 270160) - (peak: 630248)
process template top
Debug: (0.004467) - (net usage: 290792) - (peak: 650888)
SELECT * FROM cms_layout_templates WHERE id = 5 LIMIT  1
Debug: (0.005839) - (net usage: 335328) - (peak: 699992)
SELECT * FROM cms_content_props WHERE content_id = 5
Debug display of 'Start Load Smarty Plugin Search/function':(0.0073030000000001) - (net usage: 361632) - (peak: 728120)
Debug: (0.007639) - (net usage: 379024) - (peak: 739120)
SELECT * FROM cms_module_smarty_plugins ORDER BY module
Debug display of 'Start Load Smarty Plugin nav_breadcrumbs/function':(0.007996) - (net usage: 372288) - (peak: 739208)
Debug display of 'Start Load Smarty Plugin Navigator/function':(0.008403) - (net usage: 376712) - (peak: 739208)
Debug display of 'Start Load Smarty Plugin module_available/function':(0.0086620000000001) - (net usage: 377456) - (peak: 739208)
Debug display of 'End Load Smarty Plugin module_available/function':(0.008684) - (net usage: 378416) - (peak: 739208)
Debug: (0.010895) - (net usage: 403008) - (peak: 776352)
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.011424) - (net usage: 477104) - (peak: 837200)
SELECT * FROM cms_layout_tpl_type WHERE originator = 'Search' AND name = 'searchform' LIMIT  1
Debug: (0.011734) - (net usage: 480112) - (peak: 840208)
SELECT * FROM cms_layout_templates WHERE type_id = '10' AND type_dflt = 1 LIMIT  1
Debug: (0.012887) - (net usage: 549096) - (peak: 961552)
Start Navigator breadcrumbs action
Debug: (0.013099) - (net usage: 567304) - (peak: 961552)
SELECT * FROM cms_layout_tpl_type WHERE originator = 'Navigator' AND name = 'breadcrumbs' LIMIT  1
Debug: (0.013374) - (net usage: 569728) - (peak: 961552)
SELECT * FROM cms_layout_templates WHERE type_id = '5' AND type_dflt = 1 LIMIT  1
Debug: (0.013795) - (net usage: 579928) - (peak: 961552)
SELECT * FROM cms_content_props WHERE content_id = 2
Debug: (0.014179) - (net usage: 581576) - (peak: 961552)
SELECT * FROM cms_content FORCE INDEX (cms_index_content_by_idhier) WHERE content_id IN (3,4,6,7,8,9,10) AND active = 1 ORDER BY hierarchy
Debug: (0.014551) - (net usage: 594832) - (peak: 961552)
SELECT * FROM cms_content_props WHERE content_id IN (3,4,6,7,8,9,10) ORDER BY content_id
Debug: (0.017466) - (net usage: 731168) - (peak: 1145392)
End Navigator breadcrumbs action
Debug: (0.017535) - (net usage: 716576) - (peak: 1145392)
Start Navigator default action
Debug: (0.01779) - (net usage: 736176) - (peak: 1145392)
SELECT * FROM cms_layout_templates WHERE name = 'Simple Navigation' LIMIT  1
Debug: (0.018436) - (net usage: 759392) - (peak: 1145392)
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.018954) - (net usage: 855784) - (peak: 1215880)
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.024655) - (net usage: 908120) - (peak: 1347480)
End Navigator default action
Debug: (0.024972) - (net usage: 930576) - (peak: 1347480)
SELECT * FROM cms_layout_tpl_type WHERE originator = 'News' AND name = 'summary' LIMIT  1
Debug: (0.025291) - (net usage: 935368) - (peak: 1347480)
SELECT * FROM cms_layout_templates WHERE type_id = '6' AND type_dflt = 1 LIMIT  1
Debug: (0.025719) - (net usage: 944096) - (peak: 1347480)
            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.025898) - (net usage: 963720) - (peak: 1347480)
SELECT FOUND_ROWS() LIMIT  1
Debug: (0.026203) - (net usage: 986000) - (peak: 1347480)
SELECT * FROM cms_module_news_fielddefs WHERE public = 1 ORDER BY item_order
Debug: (0.026491) - (net usage: 988472) - (peak: 1348568)
SELECT * FROM cms_content WHERE content_id = 24 LIMIT  1
Debug: (0.026754) - (net usage: 1003320) - (peak: 1363416)
SELECT * FROM cms_module_news_categories ORDER BY hierarchy
Debug: (0.027) - (net usage: 1005096) - (peak: 1365200)
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:10:25')  AND (( IFNULL(end_time, '1970-01-01 01:00:01') = '1970-01-01 01:00:01') OR (end_time > '2025-12-06 04:10:25'))  AND status = 'published' GROUP BY news_category_id
Debug: (0.035879) - (net usage: 1005768) - (peak: 1511576)
Start Navigator default action
Debug: (0.03606) - (net usage: 1023704) - (peak: 1511576)
SELECT * FROM cms_layout_tpl_type WHERE originator = 'Navigator' AND name = 'navigation' LIMIT  1
Debug: (0.036341) - (net usage: 1028048) - (peak: 1511576)
SELECT * FROM cms_layout_templates WHERE type_id = '4' AND type_dflt = 1 LIMIT  1
Debug: (0.036976) - (net usage: 1064152) - (peak: 1511576)
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.037559) - (net usage: 1111848) - (peak: 1511576)
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.038076) - (net usage: 1196936) - (peak: 1557032)
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.043754) - (net usage: 1222776) - (peak: 1659760)
End Navigator default action
Debug: (0.043954) - (net usage: 1224248) - (peak: 1659760)
SELECT * FROM cms_layout_templates WHERE name = 'footer' LIMIT  1
Debug: (0.046146) - (net usage: 1263344) - (peak: 1659760)
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.046386) - (net usage: 1280848) - (peak: 1659760)
SELECT FOUND_ROWS() LIMIT  1
Debug: (0.046707) - (net usage: 1313960) - (peak: 1674056)
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)