Welcome Guest, you are in: Login

Search:

download
Version1.0.1.7
Rating  
DeveloperSerebryakov A.
Updated2015-03-20
HomepageN/A
Works withScrewTurn Wiki v5.0.x
LicenseGPL v3
Supported languages-
Visual-editorno

News plugin allows to form line and display recent news

Every news is formatted in the following way:

{simplenews:data|title|author|text}

Parameters title and author are not obligatory.

The date is displayed in the format YYYY-MM-dd

YYYY for year
MM for month
dd for day

On displaying news, the date will be formatted up to user's regional area (it applies only to those ones who registered in wiki).

A new page is usually created for news. Recent news are always put at the top of the page. For example:

{simplenews:2014-11-10|New version|Admin|New version of wiki is out.}

{simplenews:2014-09-28|||Please, be advised! We need volonteers to develop the project.}

{simplenews:2014-09-27|||The news system is launched.  This plugin passes test and will be soon available for download.}

Recent news are usually output in the separate block of the main page. The following code is used:

{topnews:newsPage|count=x;period=xxx;readmore=...}

newsPage - the name of the news page
count - the amount of  news to be displayed
period - the time (in minutes) before updating news line (news are cached for increased performance and updated in a stipulated period of time)
readmore -  text of the link  to the main news page

Such parameters as count, period and readmore  are not obligatory
If they are not indicated, the default values will be applied:
count = 5
period = 60
readmore = Read More...

Example of use:

{topnews:News|count=3;period=120;readmore=More news}

Plugin settings

The default image of the news can be replaced with your own. To do this, it's necessary to place an image into the wiki folder at public\root\Upload and set its name in the "newsimage" parameter  in the plugin settings.

newsimage=my_news_image.png

The default styles of the news can be replaced with your own. To do this, it's necessary to place an styles-file into the wiki folder at public\root\Upload and set its name in the "style" parameter  in the plugin settings.

style=MyNewsStyles.css

Every parameter in the plugin settings has to be on a new line.

Sample

The given plugin is used on the site: News Top news

Side Projects

  • RESX Synchronizer allows to synchronize multi-language .resx files (used for the development of ScrewTurn Wiki).
  • Pixel Picker enables to pick the color of pixels on your screen — very handy for day-to-day graphics-related activities.

About