|
Headlines Plugin
This plugin displays RSS feeds from news sites. Use it to build news portals that show headline news.
|
|
Plugin Info
|
< < |
| Plugin Version: | 29 Oct 2004 (V1.002) |
|
> > |
| Plugin Version: | 31 Oct 2004 (V1.003) |
|
|
| Change History: | <!-- specify latest version first --> |
|
> > |
|
|
| 29 Oct 2004: | Fixed issue of eternal caching if mod_perl or SpeedyCGI is used |
| 02 Aug 2002: | Implemented caching of feeds, thanks to TWiki:Main/RobDuarte |
| 11 Jun 2002: | Initial version (V1.000) |
| CPAN Dependencies: | none |
| Other Dependencies: | none |
| Perl Version: | 5.004 |
|
> > |
|
|
Related Topics: TWikiPreferences, TWikiPlugins
|
< < |
-- PeterThoeny - 29 Oct 2004
|
> > |
-- TWiki:Main.PeterThoeny - 31 Oct 2004
|
|
|
|
Headlines Plugin
This plugin displays RSS feeds from news sites. Use it to build news portals that show headline news.
|
|
- Set DEBUG to 1 to get debug messages in
data/debug.txt. Default: 0
|
< < |
- Refresh rate in minutes for cached feeds. Disable caching:
0, default: 30
|
> > |
- Refresh rate in minutes for cached feeds. Disable caching:
0, default: 60
|
|
- Maximum number of items shown. Default:
100
|
|
Syntax Rules
|
< < |
The %HEADLINES{...}% variable gets expanded to the content pulled from an RSS feed.
|
> > |
The %HEADLINES{...}% variable gets expanded to the content pulled from an RSS feed. Supported parameters:
|
|
|
< < |
| %HEADLINES% Parameter | Explanation | Default |
href | URL of RSS feed | None; is required |
refresh | Refresh rate in minutes for caching feed; "0" for no caching | Global REFRESH setting |
limit | Maximum number of items shown | Global LIMIT setting |
header | Header. Can include these variables: - $channeltitle: Title of channel - $channellink: Link of channel - $channeldescription: Description of channel - $imagetitle: Title text for site - $imagelink: Link for site - $imageurl: URL of image - $imagedescription: Description of image | Global HEADER setting |
format | Format of one item. Can include these variables: - $title: News item title - $link: News item link - $description: News item description | Global FORMAT setting |
<!-- NOT YET IMPLEMENTED:
refresh | Refresh rate in minutes | Global REFRESH setting |
-->
|
> > |
| Parameter | Explanation | Default |
"http://..." | URL of RSS feed | None; is required |
href="http://..." | (Alternative to above) | N/A |
refresh="60" | Refresh rate in minutes for caching feed; "0" for no caching | Global REFRESH setting |
limit="12" | Maximum number of items shown | Global LIMIT setting |
header="..." | Header. Can include these variables: - $channeltitle: Title of channel - $channellink: Link of channel - $channeldescription: Description of channel - $imagetitle: Title text for site - $imagelink: Link for site - $imageurl: URL of image - $imagedescription: Description of image | Global HEADER setting |
format="..." | Format of one item. Can include these variables: - $title: News item title - $link: News item link - $description: News item description | Global FORMAT setting |
|
|
Examples
|
< < |
Write %HEADLINES{ href="http://slashdot.org/slashdot.rdf" }% to get the latest Slashdot news in table format:
|
> > |
Write %HEADLINES{ "http://slashdot.org/slashdot.rdf" }% to get the latest Slashdot news in table format:
|
|
|
< < |
%HEADLINES{ href="http://slashdot.org/slashdot.rdf" }%
|
> > |
%HEADLINES{ "http://slashdot.org/slashdot.rdf" }%
|
|
Write %HEADLINES{ href="http://www.moreover.com/cgi-local/page?o=rss&c=Aerospace%20and%20defense%20industry%20news" header=" * [[$channellink][$channeltitle]]:" format=" * [[$link][$title]] ($description)" }% to get Aerospace and defense industry news rendered as a bullet list:
|
|
Known issues
|
< < |
- Topic load time depends on timeit takes to load the RSS feed. A future version might include some caching to improve performance.
|
|
- This plugin uses the undocumented
TWiki::Net::getUrl() function. The plugin might break in a future TWiki release.
|
< < |
|
> > |
- URLs on virtual hosts cannot be read. This is a limitation of
TWiki::Net::getUrl()
|
|
Plugin Installation Instructions
|
|
Plugin Info
|
< < |
| Plugin Version: | 02 Aug 2002 (V1.001) |
|
> > |
| Plugin Version: | 29 Oct 2004 (V1.002) |
|
|
| Change History: | <!-- specify latest version first --> |
|
> > |
| 29 Oct 2004: | Fixed issue of eternal caching if mod_perl or SpeedyCGI is used |
|
|
| 02 Aug 2002: | Implemented caching of feeds, thanks to TWiki:Main/RobDuarte |
| 11 Jun 2002: | Initial version (V1.000) |
| CPAN Dependencies: | none |
|
|
Related Topics: TWikiPreferences, TWikiPlugins
|
< < |
-- PeterThoeny - 02 Aug 2002
|
> > |
-- PeterThoeny - 29 Oct 2004
|
|
Headlines Plugin
This plugin displays RSS feeds from news sites. Use it to build news portals that show headline news.
|
|
- Set DEBUG to 1 to get debug messages in
data/debug.txt. Default: 0
|
< < |
<!-- NOT YET IMPLEMENTED:
- Refresh rate in minutes. Default:
15
-->
|
> > |
- Refresh rate in minutes for cached feeds. Disable caching:
0, default: 30
|
|
- Maximum number of items shown. Default:
100
|
|
|
> > |
refresh | Refresh rate in minutes for caching feed; "0" for no caching | Global REFRESH setting |
|
|
limit | Maximum number of items shown | Global LIMIT setting |
header | Header. Can include these variables: - $channeltitle: Title of channel - $channellink: Link of channel - $channeldescription: Description of channel - $imagetitle: Title text for site - $imagelink: Link for site - $imageurl: URL of image - $imagedescription: Description of image | Global HEADER setting |
format | Format of one item. Can include these variables: - $title: News item title - $link: News item link - $description: News item description | Global FORMAT setting |
|
|
Plugin Info
|
< < |
| Plugin Version: | 11 June 2002 (V1.000) |
|
> > |
| Plugin Version: | 02 Aug 2002 (V1.001) |
|
|
| Change History: | <!-- specify latest version first --> |
|
< < |
| 11 June 2002: | Initial version (V1.0) |
|
> > |
| 02 Aug 2002: | Implemented caching of feeds, thanks to TWiki:Main/RobDuarte |
| 11 Jun 2002: | Initial version (V1.000) |
|
|
| CPAN Dependencies: | none |
| Other Dependencies: | none |
| Perl Version: | 5.004 |
|
|
Related Topics: TWikiPreferences, TWikiPlugins
|
< < |
-- PeterThoeny - 12 Jun 2002
|
> > |
-- PeterThoeny - 02 Aug 2002
|
|
Headlines Plugin
|
< < |
This plugin displays RSS feeds from news sites.
|
> > |
This plugin displays RSS feeds from news sites. Use it to build news portals that show headline news.
|
|
|
< < |
Note: Synic8.com ( http://www.syndic8.com/ ) is a good site listing many RSS feeds.
|
> > |
Note: Syndic8.com ( http://www.syndic8.com/ ) is a good site listing many RSS feeds.
|
|
HeadlinesPlugin Global Settings
|
|
a plugin setting write %<plugin>_<setting>%, for example, %HEADLINES_SHORTDESCRIPTION%
|
< < |
-
- Set SHORTDESCRIPTION = This plugin displays RSS feeds from news sites.
|
> > |
-
- Set SHORTDESCRIPTION = Build news portals that show headline news based on RSS news feeds from news sites.
|
|
- Set DEBUG to 1 to get debug messages in
data/debug.txt. Default: 0
|
|
refresh | Refresh rate in minutes | Global REFRESH setting |
-->
|
< < |
Example
|
> > |
Examples
|
|
|
< < |
Write %HEADLINES{ href="http://slashdot.org/slashdot.rdf" }% to get:
|
> > |
Write %HEADLINES{ href="http://slashdot.org/slashdot.rdf" }% to get the latest Slashdot news in table format:
|
|
%HEADLINES{ href="http://slashdot.org/slashdot.rdf" }%
|
> > |
Write %HEADLINES{ href="http://www.moreover.com/cgi-local/page?o=rss&c=Aerospace%20and%20defense%20industry%20news" header=" * [[$channellink][$channeltitle]]:" format=" * [[$link][$title]] ($description)" }% to get Aerospace and defense industry news rendered as a bullet list:
%HEADLINES{ href="http://www.moreover.com/cgi-local/page?o=rss&c=Aerospace%20and%20defense%20industry%20news" header=" * $channeltitle?:" format=" * $title? ($description)" }%
|
|
Known issues
- Topic load time depends on timeit takes to load the RSS feed. A future version might include some caching to improve performance.
|
|
Related Topics: TWikiPreferences, TWikiPlugins
|
< < |
-- PeterThoeny - 11 Jun 2002
|
> > |
-- PeterThoeny - 12 Jun 2002
|
|
Headlines Plugin
This plugin displays RSS feeds from news sites.
|
> > |
Note: Synic8.com ( http://www.syndic8.com/ ) is a good site listing many RSS feeds.
|
|
HeadlinesPlugin Global Settings
Plugin settings are stored as preferences variables. To reference
|
|
-
- Set SHORTDESCRIPTION = This plugin displays RSS feeds from news sites.
- Set DEBUG to 1 to get debug messages in
data/debug.txt. Default: 0
|
< < |
|
> > |
|
|
<!-- NOT YET IMPLEMENTED:
- Refresh rate in minutes. Default:
15
|
|
The %HEADLINES{...}% variable gets expanded to the content pulled from an RSS feed.
|
< < |
|
> > |
|
|
href | URL of RSS feed | None; is required |
limit | Maximum number of items shown | Global LIMIT setting |
header | Header. Can include these variables: - $channeltitle: Title of channel - $channellink: Link of channel - $channeldescription: Description of channel - $imagetitle: Title text for site - $imagelink: Link for site - $imageurl: URL of image - $imagedescription: Description of image | Global HEADER setting |
|
|
%HEADLINES{ href="http://slashdot.org/slashdot.rdf" }%
|
> > |
Known issues
- Topic load time depends on timeit takes to load the RSS feed. A future version might include some caching to improve performance.
- This plugin uses the undocumented
TWiki::Net::getUrl() function. The plugin might break in a future TWiki release.
- URLs on virtual hosts cannot be read, for example, TWiki:Codev/TWikiSyndication does not work. This is a limitation of
TWiki::Net::getUrl()
|
|
Plugin Installation Instructions
Note: 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.
|