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]
This plugin can be used everywhere.
Articles | |
Templates | |
Modules | |
Areas |
cols | Optional | To specify number of columns in the grid (default is 2) |
rows | Optional | To specify number of rows in the grid (default is 2) |
pages | Optional | Can 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 |
This plugin generates the following wrapping DIV elements available for styling:
news | Wrapping element for the contents |
news_pages | Wrapping 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.
<style>
div.news
{
color: #ff0000;
}
div.news_pages
{
color: #00ff00;
}
div.summary
{
color: #0000ff;
}
</style>
[NEWS cols=4 rows=2 pages=true]/demo.*/[/NEWS]