TextCMS Documentation - Internal Plugins - NEWS

Plugin Description

Plugin NEWS can be used to display a grid with previews of the latest modified articles. Basically it searches for the latest articles and generates hyperlinks with previews the same way as plugin SUMMARY. The syntax of the plugin is: [NEWS (attributes)](regular_expression_to_search_ for_specific_articles)[/NEWS]. For example if you want to show all the latest articles which name bedins with "demo" you can use it like this: [NEWS cols=4 rows=2 pages=true]/demo.*/[/NEWS]

Plugin Usage

This plugin can be used everywhere.

Articles
Templates
Modules
Areas

Attributes

colsOptionalTo specify number of columns in the grid (default is 2)
rowsOptionalTo specify number of rows in the grid (default is 2)
pagesOptionalCan be set as "pages=true" to indicate that a multi-page navigation should be shown at the bottom to allow visitors of a web site looking for older articles

Styling

This plugin generates the following wrapping DIV elements available for styling:

newsWrapping element for the contents
news_pagesWrapping element for multi-page navigation at the bottom

You can also use DIV elements generated for summaries of individual articles inside the grid. These elements are the same as in SUMMARY plugin.

Example

<style>
div.news
{
	color: #ff0000;
}
div.news_pages
{
	color: #00ff00;
}
div.summary
{
	color: #0000ff;
}
</style>

[NEWS cols=4 rows=2 pages=true]/demo.*/[/NEWS]
(c) 2018-2024 TextCMS