Contao Open Source CMS > Understand > User's guide > Managing content > How to manage news items in Contao

News items

The news/blog extension allows you to manage news items or blog posts and display them in the front end. Unlike articles that are associated with a particular page, news items are organized in news archives, which allows you to easily group, categorize or export them.

News archives

News archives are used to group and/or categorize news items. Each archive can relate to a certain language or a particular topic and its posts can be exported as an RSS or Atom feed. The XML files are generated automatically in the Contao root folder.

Export news items as an RSS or Atom feed

Front end modules

Front end modules are used to display news items on the website. They can be configured with the Modules module in the back end and have to be added to an article or page layout to actually show up on the website. The news/blog extension includes 4 front end modules:

ModuleCSS classDescription
Newslistmod_newslistAdds a list of news items to a page.
Newsreadermod_newsreaderShows the details of a news item.
News archivemod_newsarchiveAdds a news archive to a page.
News archive menumod_newsarchiveMenuGenerates a navigation menu to browse the news archive.

Each news item has a unique URL (permalink) that can be used to reference it:

http://www.domain.com/news/items/james-wilson-returns.html

The above URL requests the news item james-wilson-returns via the page news. Remember that Contao is a page-based CMS, so if the page news did not exist or if it did not include the news reader module, the news item would not be displayed.

Add a comment