Welcome
Guest
, you are in:
<root>
Customize
Dev
Help
•
Login
Search:
Download
Help
Customize
Develop
Plugins and Providers
Plugins
Themes
Example of snippets
Back
News Plugin
Modified on 2015/03/29 04:36
by
Administrator
Categorized as
Uncategorized
{s:FormatterPluginPage | image = [image:{UP}Plugin.png] | download_link = {UP}/Version/PluginPack/NewsPlugin.dll | version = 1.0.1.7 | developer_link = Serebryakov A. | update_date = 2015-03-20 | homepage = N/A | licence = GPL v3 | works_with = ScrewTurn Wiki v5.0.x | languages = - | visual_editor = no } News plugin allows to form line and display recent news Every news is formatted in the following way: ((('''{<b></b>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: ((({<b></b>simplenews:2014-11-10|New version|Admin|New version of wiki is out.} {<b></b>simplenews:2014-09-28|||Please, be advised! We need volonteers to develop the project.} {<b></b>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: ((('''{<b></b>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: ((({<b></b>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|News] [++MainPage|Top news]
Meta Keywords:
News, Plugin, Screwturn, wiki
Meta Description:
News Plugin Screwturn Wiki
Change Comment:
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
¶
Copyright ©2006-2014 Dario Solera, Matteo Tomasini, Alexander Serebryakov and
ScrewTurn Wiki - Project Contributors
. All rights reserved. Some of the icons created by
FamFamFam
.
Contact Us
See our
Privacy Policy
.
Powered by ScrewTurn Wiki 5.2.0.7.