News

Most web sites have a section for the latest news. In CMS Made Simple the best way to accomplish that is by using the News module.

To display a list of news items you insert the tag {news number='5' category='General'}. On this page the tag is inserted in the template. But it can also be inserted on a page. You can see the News module in use in the sidebar to the left.

There are a number of parameters that can be used in conjunction with this tag. To read about how a module is used, navigate to Extensions » Modules in the Admin Panel and click on "Help" for the module you want to read about.


Previous page: Modules
Next page: Menu Manager


Time: 0.048175 / SQL: 0.008s for 34 queries / Net Memory: 1276864 / Peak: 1698904
Debug: (0.000342) - (net usage: 35608) - (peak: 393280)
Initialize Database
Debug: (0.001254) - (net usage: 79760) - (peak: 437432)
Done Initializing Database
Debug: (0.001284) - (net usage: 79920) - (peak: 437592)
initialize internal global cache
Debug: (0.001877) - (net usage: 189152) - (peak: 558592)
done initializing global cache
Debug: (0.001894) - (net usage: 188936) - (peak: 558592)
Loading Modules
Debug: (0.0032) - (net usage: 217584) - (peak: 583432)
End of Loading Modules
Debug: (0.003288) - (net usage: 218360) - (peak: 583432)
Initialize Smarty
Debug: (0.003298) - (net usage: 218520) - (peak: 583432)
Done Initialing Smarty
Debug: (0.003345) - (net usage: 235040) - (peak: 592712)
cms_content_cache: begin load needed content objects
Debug: (0.003553) - (net usage: 235592) - (peak: 593264)
cms_content_cache: end loading needed content objects
Debug: (0.004095) - (net usage: 280256) - (peak: 637928)
SELECT * FROM cms_content WHERE content_id = 24 LIMIT  1
Debug: (0.004673) - (net usage: 291640) - (peak: 649312)
process template top
Debug: (0.005014) - (net usage: 312264) - (peak: 669936)
SELECT * FROM cms_layout_templates WHERE id = 5 LIMIT  1
Debug: (0.006497) - (net usage: 356800) - (peak: 719040)
SELECT * FROM cms_content_props WHERE content_id = 24
Debug display of 'Start Load Smarty Plugin Search/function':(0.008041) - (net usage: 379760) - (peak: 743856)
Debug: (0.008304) - (net usage: 397136) - (peak: 754808)
SELECT * FROM cms_module_smarty_plugins ORDER BY module
Debug display of 'Start Load Smarty Plugin nav_breadcrumbs/function':(0.008655) - (net usage: 390400) - (peak: 754896)
Debug display of 'Start Load Smarty Plugin Navigator/function':(0.009011) - (net usage: 394824) - (peak: 754896)
Debug display of 'Start Load Smarty Plugin module_available/function':(0.009272) - (net usage: 395552) - (peak: 754896)
Debug display of 'End Load Smarty Plugin module_available/function':(0.009293) - (net usage: 396528) - (peak: 754896)
Debug: (0.011397) - (net usage: 421120) - (peak: 792040)
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.011927) - (net usage: 495056) - (peak: 852728)
SELECT * FROM cms_layout_tpl_type WHERE originator = 'Search' AND name = 'searchform' LIMIT  1
Debug: (0.012205) - (net usage: 498064) - (peak: 855736)
SELECT * FROM cms_layout_templates WHERE type_id = '10' AND type_dflt = 1 LIMIT  1
Debug: (0.01341) - (net usage: 567048) - (peak: 977080)
Start Navigator breadcrumbs action
Debug: (0.01368) - (net usage: 585256) - (peak: 977080)
SELECT * FROM cms_layout_tpl_type WHERE originator = 'Navigator' AND name = 'breadcrumbs' LIMIT  1
Debug: (0.013975) - (net usage: 587680) - (peak: 977080)
SELECT * FROM cms_layout_templates WHERE type_id = '5' AND type_dflt = 1 LIMIT  1
Debug: (0.014508) - (net usage: 596296) - (peak: 977080)
SELECT * FROM cms_content FORCE INDEX (cms_index_content_by_idhier) WHERE content_id IN (23,30) ORDER BY hierarchy
Debug: (0.0148) - (net usage: 600552) - (peak: 977080)
SELECT * FROM cms_content_props WHERE content_id IN (23,30) ORDER BY content_id
Debug: (0.015262) - (net usage: 627040) - (peak: 984712)
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.015634) - (net usage: 637024) - (peak: 994696)
SELECT * FROM cms_content_props WHERE content_id IN (25,26,27,28,29) ORDER BY content_id
Debug: (0.016138) - (net usage: 711368) - (peak: 1069040)
SELECT * FROM cms_content_props WHERE content_id = 22
Debug: (0.016615) - (net usage: 725160) - (peak: 1082832)
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.016858) - (net usage: 729584) - (peak: 1087256)
SELECT * FROM cms_content_props WHERE content_id IN (31,32) ORDER BY content_id
Debug: (0.01958) - (net usage: 791248) - (peak: 1203048)
End Navigator breadcrumbs action
Debug: (0.019667) - (net usage: 762152) - (peak: 1203048)
Start Navigator default action
Debug: (0.019839) - (net usage: 781768) - (peak: 1203048)
SELECT * FROM cms_layout_templates WHERE name = 'Simple Navigation' LIMIT  1
Debug: (0.020247) - (net usage: 790816) - (peak: 1203048)
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.020848) - (net usage: 899096) - (peak: 1256768)
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.02688) - (net usage: 1039656) - (peak: 1476592)
End Navigator default action
Debug: (0.02719) - (net usage: 1062080) - (peak: 1476592)
SELECT * FROM cms_layout_tpl_type WHERE originator = 'News' AND name = 'summary' LIMIT  1
Debug: (0.027538) - (net usage: 1066872) - (peak: 1476592)
SELECT * FROM cms_layout_templates WHERE type_id = '6' AND type_dflt = 1 LIMIT  1
Debug: (0.027945) - (net usage: 1075600) - (peak: 1476592)
            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.028118) - (net usage: 1095224) - (peak: 1476592)
SELECT FOUND_ROWS() LIMIT  1
Debug: (0.028504) - (net usage: 1117504) - (peak: 1476592)
SELECT * FROM cms_module_news_fielddefs WHERE public = 1 ORDER BY item_order
Debug: (0.028775) - (net usage: 1121568) - (peak: 1479240)
SELECT * FROM cms_module_news_categories ORDER BY hierarchy
Debug: (0.028977) - (net usage: 1123352) - (peak: 1481024)
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:05')  AND (( IFNULL(end_time, '1970-01-01 01:00:01') = '1970-01-01 01:00:01') OR (end_time > '2025-12-06 04:12:05'))  AND status = 'published' GROUP BY news_category_id
Debug: (0.03762) - (net usage: 1119128) - (peak: 1627528)
Start Navigator default action
Debug: (0.037787) - (net usage: 1137064) - (peak: 1627528)
SELECT * FROM cms_layout_tpl_type WHERE originator = 'Navigator' AND name = 'navigation' LIMIT  1
Debug: (0.038058) - (net usage: 1141408) - (peak: 1627528)
SELECT * FROM cms_layout_templates WHERE type_id = '4' AND type_dflt = 1 LIMIT  1
Debug: (0.03882) - (net usage: 1177512) - (peak: 1627528)
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.044817) - (net usage: 1234216) - (peak: 1668776)
End Navigator default action
Debug: (0.045058) - (net usage: 1235688) - (peak: 1668776)
SELECT * FROM cms_layout_templates WHERE name = 'footer' LIMIT  1
Debug: (0.047331) - (net usage: 1272008) - (peak: 1668776)
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.047586) - (net usage: 1289512) - (peak: 1668776)
SELECT FOUND_ROWS() LIMIT  1
Debug: (0.047912) - (net usage: 1322624) - (peak: 1680296)
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)