r2 - 2009-08-29 - 21:55:14 - TWikiContributorYou are here: TWiki >  TWiki Web  > HeadlinesPlugin

Headlines Plugin


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:

Sat, 21 Jan 2017 01:11:49 +0000
The original blog about business opportunities and business ideas for small business entrepreneurs
Sat, 21 Jan 2017 00:43:13 +0000 Bizop Team

5 Ways to Improve Your Employee’s Productivity

As soon as employees start their 8-hour day, it’s a given that many issues can arise. If you are running a business, and you want to ensure your employees are happy, comfortable and working for the best interest of your business, there are some things you can do to help. The following article lists a few.

Experts at Race Furniture also have some great ideas and tips for you to create a more productive office space.

1. Office Temperature:

Keep your employees comfortable. It sounds silly but it can really be a very big deal for your employees. If you own a business and you have many employees, you will find that everyone has a different comfort level. Some people will always be cold and others will be warm and that is just a fact of life. One thing you can do, when you are renting office space, talk to the landlord about the heating system. As you are doing your build out, that is the time when you want to discuss and perhaps improve the location and amount of temperature controls, the placement of vents, and the possibility of allowing several employees or just one office manager to be in charge of office temperature.

For offices with sunny windows, you might need to provide shades, fans, etc.


2. Physical Comfort

As your employees will spend a large proportion of their day sitting at their desks, make sure you create a comfortable environment for them. This will ensure they are healthy, happy, and productive.

You don't have to break the bank either, just make sure you take the time you research options that are designed for health and comfort. There are used office furniture stores everywhere so do a google search near you and see if you cant save some money on some good quality furniture.

3. Restore privacy

Open work spaces became a hugely popular tactic in the ’90s to increase collaboration. However, some studies have shown that open workspaces can actually be counterproductive. Although we understand it's not financially feasible to give your employees their own office, it's important you have an office that allows employees some quiet, privacy and the ability to focus. Having a dedicated area specifically for focusing can deter the employees who insist on talking about last night’s football game.

4. Streamline your office

As a business owner, especially when you are starting out, a small space might be all you can afford. Be sure you set things up in an efficient way and be creative and do things like Stacking Chairs when you are not using them and pull them all out when you have a meeting, visitors, etc. Can the conference room also be the lunch room with strict rules to keep it clean and a scheduler for meetings so it is kept open and available when needed for important client meetings. Can you rent a storage space to keep extra furniture and files if you are short on space?

Most employees don't feel productive in offices set up with little focus. Make sure the space you set up functions well for your employees and offers them a convenient and usable work space with printers, adequate office supplies and so on. It's probably worthwhile to do some creative brainstorming to figure out the different ways you can streamline the office

If you are a business owner you already know that a team of productive employees is essential to any business, especially when you are starting out. You must rely on the people you hire to work productively in order to grow your company and take it to the next level. While you might not start out thinking about the comfort level of your staff, it is a critical element to your success and worth planning for. Making sure you implement these strategies and more will help create a happier, more productive working environment.


























Thu, 19 Jan 2017 05:39:01 +0000 Laurie Bennett

The real estate market seems to be humming again and many people are looking at home improvement and flipping houses as a way of generating some serious cash again. Read on for tips on how to flip houses to improve your cash flow AND your quality of life.


  1. Kitchen Improvement


The kitchen is the life center of the house so naturally it deserves some significant attention.


If you have bought an old home and you've decided to improve the kitchen, then the improvements should match the existing style. If the house is ranch style, you might think about a country kitchen instead of ultra modern which might look a bit off. Start off by checking out kitchen improvement magazines. Look for ways to do a remodel without spending too much cash if possible. Can you paint the cabinets instead of changing them out? Are new counter tops perhaps all you need to brighten up that kitchen? You would be surprised at just how much some updated lighting, new cabinet doors and hardware and a new floor can do to update a kitchen on a budget.

Keep in mind that painting might be all you need to do. Most kitchen remodels can cost from $2,500 to $50,000, sometimes even more. However, you can change the style of your kitchen completely by changing the paint color. Choose a modern color and repaint the room before deciding whether you need to make any other changes.


Low-VOC paint is eco-friendly and it doesn't contain any dangerous chemicals that other paints do.


Replace the old appliances with Energy Star-rated ones in order to save money and protect the environment.


2. Bathroom Improvement


Updating the bathrooms and even adding additional bathrooms (if you have the space and budget) can dramatically increase the value of a home. Again, new lighting, tile, cabinetry and flooring can do wonders on improving the value of a home and making someone really want to live there.


3. New Windows


New windows are not inexpensive but you can save approximately $500 a year in heating and cooling costs by replacing old windows with energy-efficient styles. Make sure you potential purchasers know the windows are new and energy efficient and will save them money year after year. Doing this will certainly add value to your property. And if you are going to be living in the house instead of selling it, know that you will eventually recoup up to 70% of your investment just by your energy savings over time.


4. Build a Deck


Did you know that one simple deck addition can increase the value of your home significantly? People love them and they make a house twice as attractive to buyers than houses that have no outdoor seating area. The cost can vary from anywhere between $1,200 and $10,000, but it all depends on how large the deck in and the type of material you use.


  1. Regular Maintenance


Make sure that you maintain the house by keeping paint from peeling, cleaning out gutters, eliminating dirt and mold from unwanted areas and so on. You should also replace any rotten wood and clean the ventilation ducks regularly. Potential buyers will love a home that is well maintained and pay attention to the smallest details, so it's important you present them with a clean and well maintained home.


So if you are thinking about creating equity in a house you own or one you plan to buy and flip, follow the steps above to prepare the home to sell. As you can see, you can easily and inexpensively remodel a home, while increasing its value at the same time. If you need advice or the services of seasoned home improvement experts, visit choosechi.com

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-2009, Peter Thoeny, TWIKI.NET; 2005-2007, Michael Daum http://wikiring.de
License: GPL (GNU General Public License)
Plugin Version: v2.3 - 29 Aug 2009
Change History:  
29 Aug 2009: 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: TWiki:Plugins/HeadlinesPlugin
Feedback: TWiki:Plugins/HeadlinesPluginDev
Appraisal: TWiki:Plugins/HeadlinesPluginAppraisal

-- TWiki:Main.PeterThoeny - 29 Aug 2009

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r2 < r1 | More topic actions
This site is powered by the TWiki collaboration platformCopyright © 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