DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:news

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:news [2016-04-21 19:32] – [Development] 24.78.88.211plugin:news [2018-05-28 19:51] (current) – [Installation] Klap-in
Line 7: Line 7:
 email      :  turnermm02@shaw.ca email      :  turnermm02@shaw.ca
 type       : syntax,action,admin   type       : syntax,action,admin  
-lastupdate : 2015-12-25 +lastupdate : 2016-08-09 
-compatible : anteater,rincewind,angua,adora belle,weatherwax, binky, ponder stibbons, hrun, detritus+compatible : anteater,rincewind,angua,adora belle,weatherwax, binky, ponder stibbons, hrun, detritus, elenor of tsort,"Frusterick Manners",Greebo
 depends    :  depends    : 
 conflicts  conflicts 
Line 17: Line 17:
 bugtracker : https://github.com/turnermm/news/issues bugtracker : https://github.com/turnermm/news/issues
 sourcerepo : https://github.com/turnermm/news sourcerepo : https://github.com/turnermm/news
-donationurl: +donationurl: http://mturner.org/userfiles/donate.php  
 ---- ----
  
 ===== Installation ===== ===== Installation =====
  
-Install the plugin using the [[plugin:plugin|Plugin Manager]] and the download URL above, which points to latest version of the plugin. Refer to [[:Plugins]] on how to install plugins manually.+Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually.
  
 ===== Examples/Usage ===== ===== Examples/Usage =====
Line 191: Line 191:
  
 The news plugin permissions have control only over who can create a newsfeed and not over who can access newsfeed pages.  Dokuwiki's ACL settings govern who can and cannot edit and/or create documents.  So, it is possible that a user can mark up a page as a news feed, but the news plugin will not process the markup until a valid newsfeed user re-saves it. Moreover, the latter should make a small edit, even the addition of a blank line.   This overcomes the possibility of a cached page not being re-processed. The news plugin permissions have control only over who can create a newsfeed and not over who can access newsfeed pages.  Dokuwiki's ACL settings govern who can and cannot edit and/or create documents.  So, it is possible that a user can mark up a page as a news feed, but the news plugin will not process the markup until a valid newsfeed user re-saves it. Moreover, the latter should make a small edit, even the addition of a blank line.   This overcomes the possibility of a cached page not being re-processed.
-==== Individualizing header titles and descriptions ====+==== Individualizing header titlesdescriptions, ttl ====
 Each feed has a header title and subtitle (or description).  These can be individualized for each feed by modifying the file ''news/scripts/newsfeed.ini'' This file uses the php ini file format: Each feed has a header title and subtitle (or description).  These can be individualized for each feed by modifying the file ''news/scripts/newsfeed.ini'' This file uses the php ini file format:
 <code> <code>
Line 205: Line 205:
 title = "Our News Feed"   title = "Our News Feed"  
 description = "Dokuwiki News Feed for Department One" description = "Dokuwiki News Feed for Department One"
 +ttl = 60
 </code> </code>
-You can add as many feed name entries as required, each with its own title and description.  If there is no entry for the feed, then the default will be used.  You can change the default values for title and description but you must leave a ''default'' entry.  Lacking a default, i.e. if all else fails, the plugin will try to use the title and description settings in the ''Configuration Settings''.+You can add as many feed name entries as required, each with its own titledescription, and ttl.  If there is no entry for the feed, then the default will be used.  You can change the default values for title and description but you must leave a ''default'' entry.  Lacking a default, i.e. if all else fails, the plugin will try to use the title and description settings in the ''Configuration Settings''.
  
  
Line 218: Line 219:
  
 === Change Log === === Change Log ===
 +10 Jul 2016
 +  - Corrected for misspelled ''$this'' in 07 Jul 2016 update. 
 +  - Convert old constructors to __construct in scripts for PHP 7
 +
 +07 Jul 2016
 +Added per-feed optional TTL setting.  Patch from https://github.com/evacomaroski
 +
 14 Apr 2016 14 Apr 2016
 Implemented order sorting so that latest items come before oldest.  This ensures newest to oldest in newsreaders that don't do their own date ordering. Implemented order sorting so that latest items come before oldest.  This ensures newest to oldest in newsreaders that don't do their own date ordering.
 +
 +22 Jan 2016:
 +Adjust method signatures to match parent for php 7
  
 6-7 Dec 2013: Added facility to insert individual titles and descriptions in headers of each feed created in one of the multi branches. 6-7 Dec 2013: Added facility to insert individual titles and descriptions in headers of each feed created in one of the multi branches.
plugin/news.1461259962.txt.gz · Last modified: 2016-04-21 19:32 by 24.78.88.211

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki