Headlines Plugin

Show headline news in TWiki pages based on RSS and ATOM news feeds from external sites


This plugin displays RSS and ATOM feeds from news sites. Use it to build news portals that show headline news.

Note: Syndic8.com ( http://www.syndic8.com/ ) lists many RSS feeds.

Syntax Rules


Parameter Explanation Default
"..." source of RSS feed; this can be an url (starting with http) or a web.topic location for internal feeds None; is required
href="..." (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
touch="..." Touch (edit/save) topics if the feed has updates. Specify a comma-space delimited list of TopicNames or Web.TopicNames, such as "%TOPIC%, NewsLetter". Useful to send out newsletter using MailerContrib, showing new feeds since last newsletter. To update feeds, visit topics with feeds in regular intervals (using cron with wget or the like). N/A
header Header. Can include these variables: - $channeltitle, $title: title of channel (channel.title)
- $channellink, $link: link of channel (channel.link)
- $channeldescription, $description: description (channel.description)
- $channeldate, $date: publication date of the channel (channel.pubDate)
- $rights: copyrights of the channel (channel.copyright)
- $imagetitle: title text for site (image.title)
- $imagelink: link for site (image.link)
- $imageurl: URL of image (image.url)
- $imagedescription: description of image (image.description)
Global HEADER setting
format Format of one item. Can include these variables:
- $title: news item title (item.title)
- $link: news item link (item.link)
- $description: news item description (item.description)
- $date: the publication date (item.pubDate, item.date)
- $category: the article category (item.category)
Global FORMAT setting

The header and format parameters might also use variables rendering the dc, image and content namespace information. Note, that only bits of interest have been implemented so far and those namespaces might not be implemented fully yet.

Rendering the dc namespace

The following variables are extracting the dc namespace info, that could be used in header and format. Nnote, that some of the variables are already used above. This is done by purpose to use different feeds with the same formating parameters. If there's a conflict the non-dc tags have higher precedence, i.e. a <title> content </title> is prefered over <dc:title> content </dc:title> .

  • $title: channel/article title (dc:title)
  • $creator: channel creator (dc:creator)
  • $subject: subject text; this will also add an image according to the subject hash list, see above (dc:subject)
  • $description: ... (dc:description)
  • $publisher: the channel/article publisher (dc:publisher)
  • $contributor: ... (dc:contributor)
  • $date: ... (dc:date)
  • $type: ... (dc:type)
  • $format: ... (dc:format)
  • $identifier: ... (dc:identifier)
  • $source: ... (dc:source)
  • $language: ... (dc:language)
  • $relation: ... (dc:relation)
  • $coverage: ... (dc: coverage)
  • $rights: ... (dc: rights)

Rendering the image namespace

An image:item is converted into an <img> tag using the following mappings:

  • src: image url (rdf:about attribute of the image.item tag)
  • alt: image title (title)
  • width: image width (image:width)
  • height: image height image:height)

Rendering the content namespace

The variable $content is refering to the <content:encoding> content </content:encoding>.


Slashdot News


%HEADLINES{ "http://slashdot.org/slashdot.rdf" 
  header="*[[$link][$title]]:* $description" 
  format="$t* [[$link][$title]]"
to get the latest Slashdot news as a bullet list format:

HeadlinesPlugin ERROR: 501 Protocol scheme 'https' is not supported (Crypt::SSLeay or IO::Socket::SSL not installed)

Business Opportunities Weblog


%HEADLINES{ "http://www.business-opportunities.biz/feed" limit="2" }%

to get the latest postings on the "Business Opportunities" weblog:

Thu, 21 Feb 2019 03:27:02 +0000
The original blog about business opportunities and business ideas for small business entrepreneurs
Thu, 21 Feb 2019 03:26:58 +0000 Laurie Bennett

Working from home can be both a blessing and a curse. This is especially the case when it comes to optimizing productivity in your home-based office.

Of course, there is a certain sense of freedom that comes when you escape from your old corporate cubicle. For a while, that sense of freedom can boost your creative mojo. However, familiar distractions can soon interfere with your intention to buckle down to uninterrupted hard work.

Therefore, whether you're a freelance SEO marketer or an interior design blogger, setting up your home-based office for success is one of the most crucial pieces of putting together a dynamic workspace. With that in mind, the following methods of priming your home-based office will transform your productivity level in a few easy steps.


Go Minimalist

Going minimalist takes a great deal of decluttering. In order to do that, you’ll need to assess what you need and what you don't to an extreme. If you're the distractible type, for example, ridding your workspace of temptation in its many forms is the first step to going minimalist.

Any tech you don't need should be the first to go. For example, there's probably no need for a 65-inch TV or an iPad if you don't use either for work. Additionally, keep decorations to a minimum. For those who tend to let their minds wander, analyzing photos or intricate pieces of art will only result in wasting time. Therefore, pick a only couple of pictures or a couple of pieces of art on Etsy for aesthetic effect.

Declutter Your Desk

As we mentioned earlier, decluttering is part of the minimalist movement. What’s more, your desk is the easiest place to run wild. This is especially true given the amount of paperwork, bookkeeping, and note-taking you need to complete for an effective day's work.

However, swimming in an abyss of pens and papers gives more room for distraction and less room for focus. Therefore, equip your office space with a multi-drawer storage stack to give a home to those loose materials. Also, invest in a wall calendar to keep track of important timelines. Use sticky notes for reminders. The more available space, the better. Do yourself a favor and clean that desk up!

Pick a Productive Space

Select a room in your house that has plenty of natural light, an operable window, and enough space to foster your big ideas. That’s because tiny, cramped, closet-sized offices can feel claustrophobic after a few hours. Therefore, be sure to pick a room that you can stand to be in for long eight-hour days.

Additionally, if you're running a business out of your home and expect to have clients over from time to time, be sure the space is one you are proud to show.

Add a Splash of Greenery

Plants will brighten the space. What’s more, they will also improve the air quality in your office.

So consider buying a spider plant or a dracaena plant. Both are easy to care for and look gorgeous in any space. However, be wary of plants that may attract nasty insects. This can compromise the integrity and cleanliness of your office space. Though Housecall Pro's pest control software makes finding a solution simple, you're better off avoiding plants that attract pests in the first place.

home-based office 2 300w, productivity-2-768x399.jpg 768w, productivity-2-600x311.jpg 600w" sizes="(max-width: 1000px) 100vw, 1000px" />

Light up Your Space with Warmer Tones

Use warm colors rather than cooler ones. This could put your brain in the mood for learning and creating.

It’s interesting to note that studies over the years have shown that extended exposure to fluorescent lights has a number of negative effects on stress and anxiety levels. So instead of fluorescent lighting, use lights with yellow tones. This can make your space feel warmer and more conducive to work production. You are, after all, looking to make your home-based office feel productive. You might as well invest in things that make it sustainable, too.

Use a Virtual Assistant

A virtual assistant could be the hands-free help you need for small tasks that would otherwise distract you. The Sonos One and Google Home Hub are both excellent options for voice-recognition commanding. If you need a reminder or simply want to know what traffic is like to the local print shop, your virtual assistant can let you know in seconds. All you have to do is ask! What’s more, their compact and sleek style fit into a minimalist setup without any extra clunk or distraction.

Apply These Tips to Make Your Home-Based Office More Productive

Having a career based out of your home is becoming more common. Further, telecommuting seems to be the next big move in the job world.

However, instead of falling into the trap of being too comfortable to work effectively from home, change up the pace of your workspace. Boost your productivity in your home-based office with these metamorphic changes.

The post How to Prime Your Home-Based Office Space for Productivity appeared first on Business Opportunities.

Thu, 21 Feb 2019 03:20:50 +0000 Laurie Bennett
Photo by Carl Raw on Unsplash

Experts warn that because of its easy availability, online gambling can be even more addictive than gambling in brick-and-mortar casinos.

However, if you do decide to indulge in online gambling, perhaps to take a quick break from the never-ending stress of running your business, remember that playing games in online casinos should be fun. And they are even more fun if you can improve your chances of winning. 

There are ways to make sure you don’t lose your bankroll within a few minutes of starting to play. Moreover, many online games players have become wise to these tips.

So if you want to take a break from the pressure cooker of running your business by playing games in online casinos, do so with caution, applying the wisdom you’ll find in this post.

Take Advantage of Incentives in Online Casinos

Most online casinos offer incentives both to new players and their existing customer base. This is one big advantage online platforms have over physical casinos. That’s because there is no way the latter are going to hand you some cash to play with as you walk in. On the other hand, online casinos offer free games. What’s more, they sometimes even offer a cash incentive. This is intended to encourage you to either join them or stay loyal to their site.


There is such a huge variety of online casino games to choose from. Therefore, this very competitive market offers some great opportunities to enjoy some fun without spending a lot of your own dollars. Just be certain to check the rules attached to any bonuses. That’s because sometimes you will need to play a certain amount before you can withdraw your winnings. This is called a “playthrough” requirement. It is in place to keep players and operators safe from abuse.

300w, online-casinos-600x450.jpg 600w" sizes="(max-width: 640px) 100vw, 640px" />
Blackjack – Thanks to Taxrebate.org.uk on Flickr for the image

Bet a Bit at a Time

If you have a budget of $50, don't bet $10 at a time. You are likely to run out of money if you do that. In order to be more likely to win some and have fun for longer, you would be better off with making wagers of $1 a time.

You could have a hand in blackjack, for example, that you are certain will win. However, you can never be sure what the dealer will have. Therefore, do not bet all your pot in one go. Any win is better than no win. And if your hand is as good as you think, you will be able to have more games with this strategy.

Learn the Rules

With such a large choice of games, you may be tempted to play something new. Before you do, however, learn the rules of whatever it is you have chosen to play for the first time.

Just as an example, craps is a really fun game. However, if you have never played it before you might not understand what is happening. This could mean you bet the wrong amounts at the wrong time. That could cost you money. If you want to play craps, learn the rules first. Also, take advantage of some of the free games that will allow you to practice.

300w, online-casinos2-600x398.jpg 600w" sizes="(max-width: 640px) 100vw, 640px" />
Craps – With thanks to Mark Hesseltine on Flickr for the image

Choose Games with a Lower House Advantage

Knowing the house advantage on your choice of game will let you know what the odds are of winning. The lower the house advantage the greater your chances are. So pick games with a low house advantage. This can make your betting pot stretch further.

Generally, blackjack is one of the best, followed by craps. But of course this can change from casino to casino. The good thing is that with none of the overheads that physical casinos have to stand, online casinos usually offer you a better chance of being a winner.

The post How Smart Is It to Play Your Money in Online Casinos? appeared first on Business Opportunities.

Plugin Settings

Plugin settings are stored as preferences variables. To reference a plugin setting write %<plugin>_<setting>%, for example, %HEADLINESPLUGIN_SHORTDESCRIPTION%. Note: Don't modify the settings here; copy and customize the settings in Main.TWikiPreferences. For example, to customize the USERAGENTNAME setting, create a HEADLINESPLUGIN_USERAGENTNAME setting in Main.TWikiPreferences.

  • One line description, shown in the TextFormattingRules topic:
    • Set SHORTDESCRIPTION = Show headline news in TWiki pages based on RSS and ATOM news feeds from external sites

  • Refresh rate in minutes for cached feeds. Disable caching: 0, default: 60
    • Set REFRESH = 60

  • Maximum number of items shown. Default: 100
    • Set LIMIT = 100

  • Use LWP::UserAgent, or fallback to TWiki's internal getUrl() method. Default: yes

  • Timeout fetching a feed using the LWP::UserAgent. Default: 20

  • Name of user agent. Default: TWikiHeadlinesPlugin/2.21
      * Set USERAGENTNAME = TWikiHeadlinesPlugin/2.21

  • Default header: (variables are explained in the syntax rules)
      * Set HEADER = <div class="headlinesChannel"><div class="headlinesLogo"><img src="$imageurl" alt="$imagetitle" border="0" />%BR%</div><div class="headlinesTitle">$n---+!! <a href="$link">$title</a></div><div class="headlinesDate">$date</div><div class="headlinesDescription">$description</div><div class="headlinesRight">$rights</div></div>

  • Default format of one item: (variables are explained in the syntax rules)
      * Set FORMAT = <div class="headlinesArticle"><div class="headlinesTitle"><a href="$link">$title</a></div>$n<span class="headlinesDate">$date</span> <span class="headlinesCreator"> $creator</span> <span class="headlinesSubject"> $subject </span>$n<div class="headlinesText"> $description</div></div>

  • Values taken from configure: (only supported if CPAN:LWP is installed)
    • $TWiki::cfg{PROXY}{HOST} - proxy host, such as "proxy.example.com";
    • $TWiki::cfg{PROXY}{PORT} - proxy port, such as "8080";
    • $TWiki::cfg{PROXY}{SkipProxyForDomains} - domains excluded from proxy, such as "intra.example.com, bugs.example.com";

Style Sheets

The default HEADER and FORMAT settings use the following styles. See the style.css file defining the default CSS properties (indentation illustrates enclosure).

  • headlinesRss: output of the HeadlinesPlugin (div)
    • headlinesChannel: channel header (div)
      • headlinesLogo: channel logo (div)
      • headlinesTitle: channel title (div)
      • headlinesDate: channel date (div)
      • headlinesDescription: channel description (div)
      • headlinesRight: channel copyright (div)
    • headlinesArticle: one news item (div)
      • headlinesTitle: article title (div)
      • headlinesDate: article date (span)
      • headlinesCreator: author of article (span)
      • headlinesSubject: subect category of the article (span)
      • headlinesText: article text (div)

Plugin Installation Instructions

  • Download the ZIP file.
  • Unzip it in your twiki installation directory. Content:
    File: Description:
    data/TWiki/HeadlinesPlugin.txt plugin topic
    pub/TWiki/HeadlinesPlugin/style.css default css
    lib/TWiki/HeadlinesPlugin.pm plugin perl module
    lib/TWiki/HeadlinesPlugin/Core.pm plugin core
    Check if above examples show a news feed instead of variable.
  • Optionally, run HeadlinesPlugin_installer.pl to automatically check and install other TWiki modules that this module depends on. You can also do this step manually.
  • Alternatively, manually make sure the dependencies listed in the table below are resolved.
    Digest::MD5>=2.33Required. Download from CPAN:Digest::MD5
    LWP::UserAgent>=5.803Optional. Download from CPAN:LWP::UserAgent

Plugin Info

Plugin Author: TWiki:Main.PeterThoeny, TWiki:Main.MichaelDaum
Copyright: © 2002-2010, Peter Thoeny, Twiki, Inc.; 2005-2007, Michael Daum http://wikiring.de
License: GPL (GNU General Public License)
Plugin Version: v2.6 - 2010-05-16
Change History:  
2010-05-16: TWikibug:Item6433 - more doc improvements
2010-04-25: TWikibug:Item6433 - doc fix: Changing TWIKIWEB to SYSTEMWEB
2010-02-27: TWikibug:Item6313 - fixed bug in ATOM feed with <link ...></link> instead of <link ... /> -- Peter Thoeny
2009-09-30: fixed bug in lastBuildDate of feeds affecting touch parameter functionality -- Peter Thoeny
2009-08-29: added touch parameter -- Peter Thoeny
12 Feb 2009: {PROXY}{HOST} supports domain with and without protocol -- Peter Thoeny
06 Feb 2009: added {PROXY}{SkipProxyForDomains} configure setting, added USERAGENTNAME plugin setting -- Peter Thoeny
11 Dec 2008: added {PROXY}{HOST} and {PROXY}{PORT} configure settings -- Peter Thoeny
13 Sep 2007: fixed parsing of content:encoded
23 Jul 2006: improved atom parser; if a posting has no title default to 'Untitled'
26 Apr 2006: added lazy compilation
10 Feb 2006: packaged using the TWiki:Plugins/BuildContrib; minor fixes
03 Feb 2006: off-by-one: limit="n" returned n+1 articles; make FORMAT and HEADER format strings more robust
23 Jan 2006: released v2.00
05 Dec 2005: internal feed urls must be absolute
02 Dec 2005: added web.topic shorthand for internal feeds
29 Nov 2005: fixed CDATA handling
21 Nov 2005: added ATOM support; extended RSS support; added dublin core support; added content support; optionally using LWP to fetch feeds to follow redirections; corrected CPAN dependencies ; recoding special chars from html integer to entity encoding to increase browser compatibility; added css support; use getWorkArea() if available
11 May 2005: TWiki:Main.WillNorris: added DevelopBranch compatability
31 Oct 2004: Fixed taint issue by TWiki:Main.AdrianWeiler; small performance improvement
29 Oct 2004: Fixed issue of external 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)
Perl Version: 5.8
TWiki:Plugins/Benchmark: GoodStyle 100%, FormattedSearch 99.5%, HeadlinesPlugin 94%
Plugin Home: http://TWiki.org/cgi-bin/view/Plugins/HeadlinesPlugin
Feedback: http://TWiki.org/cgi-bin/view/Plugins/HeadlinesPluginDev
Appraisal: http://TWiki.org/cgi-bin/view/Plugins/HeadlinesPluginAppraisal

Related Topics: TWikiPlugins, AdminDocumentationCategory, TWikiPreferences

Topic revision: r1 - 2010-05-17 - TWikiContributor
This site is powered by the TWiki collaboration platformCopyright © 1999-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.HeadlinesPlugin.