
NewsPlugin v1.4The News plugin implements a simple "Headlines" view, or summary, of a list of news or a weblog. One enters news as items of a bulleted list in a single topic, most recent first. If somewhere in the topic, the keyword %NEWS% appears, then a new topic is created (by default of the name of the topic withHeadlines appended) with the first line of the 5 more recent news.
Ending punctuation is removed from the headlines for a sleeker look.
Recommended usage is to INCLUDE this generated topic in some panel in a front page,
and put a "More..." link in it to the original MyCompanyNews topic.
The %NEWS% variable can be set in an HTML comment:
<!-- %NEWS% -->
It needs a TWiki version of 01 Feb 2003 or better, or the 01 Dec 2001 version with the
TWiki:Codev/PluginHookOnSavePatch patch.
See http://koala.ilog.fr/wiki/bin/view/Plugins/NewsPluginExampleInclusion
Syntax RulesAdd a%NEWS% variable in a news topic named Xxx to generate a headline topic
named XxxHeadlines.
To change the default, use the syntax %NEWS{parameter="value" ...}% syntax
with the following available parameters:
%NEWS{presep="<li>" prefix="<ul>" suffix="</ul>"}%
ExamplesExample: If the topic MyCompanyNews contains:%NEWS% * NewsPlugin released - 18 Feb 2003. The great news plugin has been debugged * NewsPlugin devel started - 02 Jan 2003. I think this is really needed, I will try to keep it simpleThen on saving the topic MyCompanyNewsHeadlines will contain: * NewsPlugin released - 18 Feb 2003 * NewsPlugin devel started - 02 Jan 2003 NewsPlugin Global SettingsPlugin settings are stored as preferences variables. To reference a plugin setting write%<plugin>_<setting>%, i.e. %INTERWIKIPLUGIN_SHORTDESCRIPTION%
Plugin Installation InstructionsNote: You do not need to install anything on the browser to use this plugin. The following instructions are for the administrator who installs the plugin on the server where TWiki is running.
Plugin Info
|