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.055026 / SQL: 0.02666s for 34 queries / Net Memory: 1254864 / Peak: 1676904
Debug: (0.000364) - (net usage: 35608) - (peak: 393280)
Initialize Database
Debug: (0.001359) - (net usage: 79760) - (peak: 437432)
Done Initializing Database
Debug: (0.001376) - (net usage: 79920) - (peak: 437592)
initialize internal global cache
Debug: (0.001917) - (net usage: 189152) - (peak: 558592)
done initializing global cache
Debug: (0.001933) - (net usage: 188936) - (peak: 558592)
Loading Modules
Debug: (0.00302) - (net usage: 217592) - (peak: 583432)
End of Loading Modules
Debug: (0.003098) - (net usage: 218360) - (peak: 583432)
Initialize Smarty
Debug: (0.003108) - (net usage: 218520) - (peak: 583432)
Done Initialing Smarty
Debug: (0.00315) - (net usage: 235040) - (peak: 592712)
cms_content_cache: begin load needed content objects
Debug: (0.003286) - (net usage: 235592) - (peak: 593264)
cms_content_cache: end loading needed content objects
Debug: (0.005753) - (net usage: 272088) - (peak: 629760)
SELECT * FROM cms_content WHERE content_id = 24 LIMIT  1
Debug: (0.00622) - (net usage: 283472) - (peak: 641144)
process template top
Debug: (0.00711) - (net usage: 304096) - (peak: 661768)
SELECT * FROM cms_layout_templates WHERE id = 5 LIMIT  1
Debug: (0.008102) - (net usage: 342896) - (peak: 701376)
SELECT * FROM cms_content_props WHERE content_id = 24
Debug display of 'Start Load Smarty Plugin Search/function':(0.009895) - (net usage: 369976) - (peak: 731008)
Debug: (0.01327) - (net usage: 387352) - (peak: 745024)
SELECT * FROM cms_module_smarty_plugins ORDER BY module
Debug display of 'Start Load Smarty Plugin nav_breadcrumbs/function':(0.013611) - (net usage: 381632) - (peak: 745096)
Debug display of 'Start Load Smarty Plugin Navigator/function':(0.013958) - (net usage: 385688) - (peak: 745096)
Debug display of 'Start Load Smarty Plugin module_available/function':(0.014212) - (net usage: 386736) - (peak: 745096)
Debug display of 'End Load Smarty Plugin module_available/function':(0.014233) - (net usage: 387712) - (peak: 745416)
Debug: (0.019156) - (net usage: 412304) - (peak: 783224)
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.019989) - (net usage: 486240) - (peak: 843912)
SELECT * FROM cms_layout_tpl_type WHERE originator = 'Search' AND name = 'searchform' LIMIT  1
Debug: (0.020196) - (net usage: 489248) - (peak: 846920)
SELECT * FROM cms_layout_templates WHERE type_id = '10' AND type_dflt = 1 LIMIT  1
Debug: (0.020536) - (net usage: 550448) - (peak: 919200)
Start Navigator breadcrumbs action
Debug: (0.023271) - (net usage: 568656) - (peak: 926328)
SELECT * FROM cms_layout_tpl_type WHERE originator = 'Navigator' AND name = 'breadcrumbs' LIMIT  1
Debug: (0.023503) - (net usage: 571080) - (peak: 928752)
SELECT * FROM cms_layout_templates WHERE type_id = '5' AND type_dflt = 1 LIMIT  1
Debug: (0.023896) - (net usage: 579696) - (peak: 937368)
SELECT * FROM cms_content FORCE INDEX (cms_index_content_by_idhier) WHERE content_id IN (23,30) ORDER BY hierarchy
Debug: (0.024119) - (net usage: 583960) - (peak: 941632)
SELECT * FROM cms_content_props WHERE content_id IN (23,30) ORDER BY content_id
Debug: (0.024525) - (net usage: 610440) - (peak: 968112)
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.024795) - (net usage: 620424) - (peak: 978096)
SELECT * FROM cms_content_props WHERE content_id IN (25,26,27,28,29) ORDER BY content_id
Debug: (0.025272) - (net usage: 694768) - (peak: 1052440)
SELECT * FROM cms_content_props WHERE content_id = 22
Debug: (0.025671) - (net usage: 708560) - (peak: 1066232)
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.025879) - (net usage: 712984) - (peak: 1070656)
SELECT * FROM cms_content_props WHERE content_id IN (31,32) ORDER BY content_id
Debug: (0.026252) - (net usage: 733888) - (peak: 1144600)
End Navigator breadcrumbs action
Debug: (0.026319) - (net usage: 704792) - (peak: 1144600)
Start Navigator default action
Debug: (0.030136) - (net usage: 724408) - (peak: 1144600)
SELECT * FROM cms_layout_templates WHERE name = 'Simple Navigation' LIMIT  1
Debug: (0.030541) - (net usage: 733456) - (peak: 1144600)
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.031097) - (net usage: 841736) - (peak: 1199408)
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.031853) - (net usage: 963832) - (peak: 1400144)
End Navigator default action
Debug: (0.032151) - (net usage: 960504) - (peak: 1400144)
SELECT * FROM cms_layout_tpl_type WHERE originator = 'News' AND name = 'summary' LIMIT  1
Debug: (0.032374) - (net usage: 965296) - (peak: 1400144)
SELECT * FROM cms_layout_templates WHERE type_id = '6' AND type_dflt = 1 LIMIT  1
Debug: (0.032723) - (net usage: 974024) - (peak: 1400144)
            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.033039) - (net usage: 993648) - (peak: 1400144)
SELECT FOUND_ROWS() LIMIT  1
Debug: (0.033718) - (net usage: 1015928) - (peak: 1400144)
SELECT * FROM cms_module_news_fielddefs WHERE public = 1 ORDER BY item_order
Debug: (0.034201) - (net usage: 1019992) - (peak: 1400144)
SELECT * FROM cms_module_news_categories ORDER BY hierarchy
Debug: (0.034629) - (net usage: 1021776) - (peak: 1400144)
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') < '2026-03-05 15:27:01')  AND (( IFNULL(end_time, '1970-01-01 01:00:01') = '1970-01-01 01:00:01') OR (end_time > '2026-03-05 15:27:01'))  AND status = 'published' GROUP BY news_category_id
Debug: (0.035966) - (net usage: 1014144) - (peak: 1507080)
Start Navigator default action
Debug: (0.037962) - (net usage: 1032080) - (peak: 1507080)
SELECT * FROM cms_layout_tpl_type WHERE originator = 'Navigator' AND name = 'navigation' LIMIT  1
Debug: (0.038173) - (net usage: 1036424) - (peak: 1507080)
SELECT * FROM cms_layout_templates WHERE type_id = '4' AND type_dflt = 1 LIMIT  1
Debug: (0.038772) - (net usage: 1072528) - (peak: 1507080)
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.049611) - (net usage: 1213496) - (peak: 1648056)
End Navigator default action
Debug: (0.050289) - (net usage: 1214968) - (peak: 1648056)
SELECT * FROM cms_layout_templates WHERE name = 'footer' LIMIT  1
Debug: (0.052488) - (net usage: 1250008) - (peak: 1648056)
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.052589) - (net usage: 1267512) - (peak: 1648056)
SELECT FOUND_ROWS() LIMIT  1
Debug: (0.054793) - (net usage: 1300624) - (peak: 1658296)
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)