Welcome, Registration, and other StartingPoints; Foswiki history & Wiki style; All the docs...
Edit | Attach | New | Raw | Delete | History | Print | Tools
You are here: System » 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/ ) is a good site listing many RSS feeds.

Syntax Rules


Parameter Explanation DefaultSorted ascending
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
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
limit="12" Maximum number of items shown Global LIMIT setting
refresh="60" Refresh rate in minutes for caching feed; "0" for no caching Global REFRESH setting
href="..." (Alternative to above) N/A
"..." source of RSS feed; this can be an url (starting with http) or a web.topic location for internal feeds None; is required

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]]$n $description" format="$t* [[$link][$title]]"}%
to get the latest Slashdot news as a bullet list format:

Business Opportunities Weblog


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

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

Fri, 24 Apr 2015 20:24:00 +0000
The original blog about business opportunities and business ideas for small business entrepreneurs
Fri, 24 Apr 2015 20:24:00 +0000 Dane Carlson

Business opportunities come in a wide variety of shapes and sizes. One that you may have heard a lot about, especially nowadays, is affiliate marketing. Whether you're looking to expand your current business, or you're looking to get your start as an entrepreneur, affiliate marketing is something that you need to know about and understand.

So, what is affiliate marketing, exactly? We're going to be breaking it down to the basics so that you have a starting-off point for researching it more yourself.

What Are the Broad Strokes?

In essence, affiliate marketing provides an avenue for a business to expand its market reach. Rather than handling all of its marketing efforts itself, a business brings on other entities - anything from blogs to other businesses - to market its products or services to those entities readers or customers. It's an old marketing model, to be sure, but it's one that's become exceptionally popular.

How Does Affiliate Marketing Work for a Business?

If you're a business owner, then affiliate marketing may be something you want to look into. It will provide you with an opportunity to reach untapped markets.


To do this, you will seek out other entities that operate within the markets that you're trying to reach. For example, say you're a company that manufactures exercise equipment. If you're looking to find affiliates to market your products, you may start with popular fitness blogs. These blogs, in exchange for monetary compensation, may agree to market your products toward their readers.

Now, you don't necessarily need to do all of that legwork yourself - the legwork being finding potential affiliates. There are, in fact, affiliate networks that you can work with, which will match your business with the right entities.

How Can I Become an Affiliate Marketer?

Just the same as affiliate marketing provides an opportunity for business, so too does it provide an opportunity for the enterprising entrepreneur. Rather than marketing your own business through affiliate marketing, you can become an affiliate marketer yourself.

Take the reverse of the example that we outlined above. Say that you're a fitness guru who runs a successful fitness blog. You can supplement the income that you're already earning through banner advertisements by entering into an affiliate relationship with a fitness-related business.

Just the same as businesses themselves, though, you can also seek out a relationship with an affiliate network. This network will relieve you of the duty of seeking out businesses to market and will instead push those businesses your direction. Of course, they will take a cut of the proceeds for providing you with this service.

Sounds Good, Right?

Affiliate marketing is everywhere you look these days. You've likely noticed how ads will follow you around the Internet as you move from page to page. That's affiliate marketing at work! So, don't just stand on the sidelines. Whether you're looking to expand your businesses reach or to earn extra income, affiliate marketing is something you should look into.

Fri, 24 Apr 2015 17:00:31 +0000 Dane Carlson

OsteoStrong is a new natural way to achieve strong bones, better balance, stronger muscles and pain-free joints and back. The OsteoStrong franchise opportunity is perfect for anyone interested in natural, wellness-based systems seeking to own their own business.

Founder and President Kyle Zagrodzky started OsteoStrong with the idea that he wanted to help people in a way that was beneficial to all ages and types of people.

  • OsteoStrong was founded in 2011 and by 2014 OS has become the fastest growing franchise in Tennessee, and one of the top 100 fastest growing franchises in the country with 500 locations slated for opening over the next 6 years.
  • Each location is privately owned and operated by people who care about each one of their members and their health.
  • Designed to help people of all ages, OsteoStrong is changing lives for the better. It's not a gym, diet, or drug. A revolutionary, patented concept that delivers a natural, simple, and effective solution with proven results.

OsteoStrong has a proven concept that delivers results with minimal effort to improve the quality of life of its members. If you are looking for a way to take control of your life and invest in your own business, then OsteoStrong might the solution.

For more information, visit OsteoStrong.

Fri, 24 Apr 2015 14:44:44 +0000 Dane Carlson

There can be no doubt that mobile apps are one of the most exciting business opportunities out there. With a captive consumer base that can purchase your creations at the click of a button, it's no wonder that countless entrepreneurs are flocking to the mobile app business.

You've probably read all about the phenomenon of Flappy Bird, which was gripping the world at the end of last year and the beginning of this one. If you haven't, Flappy Bird was a simple ad-supported game where you helped a small bird stay aloft while dodging an endless stream of obstacles. You may not have read, though, about how the Flappy Bird phenomenon ended: The game's creator, Dong Nguyen, actually pulled the game from the Internet because it was too addictive and he was making too much money as a result.


But, I can hear what you're saying. You don't have any computer programming experience or an intuitive understanding of mobile games and apps. Therefore, the entire business inherent in the mobile platform is entirely closed off to you. Here's the thing: That's actually not true. Even if you don't have one iota of computer programming experience, it's still possible that you can get involved.

Mobile Application Turnkey Reseller Programs

Some companies, rather than developing an individual application for every small market that they'd like to work in have instead turned to reseller programs to expand their reach. With these reseller programs, you yourself can take hold of an opportunity without even knowing how to program one line of code. There are, of course, many different opportunities with these reseller programs, too many to count, as a matter of fact. But, below you'll find a list of some particularly appealing ones that you can investigate further.

  • Motiply: This one that lets you take advantage of a pre-designed platform to craft mobile applications for businesses of your choosing. It requires a minimum cash investment of $200, with which you'll get training on the platform and advice on how to use it. This particular mobile application would be particularly appealing to an entrepreneur who has extensive sales experience, as it will require you to find and develop your own clients.
  • LoyalStamp: With this turnkey mobile application reseller program, you'll be given a platform that's designed for businesses - most specifically restaurants - to create mobile-based loyalty programs. Because many mom and pop shops have yet to hop on the Internet bandwagon, there's a lot of opportunity here. However, much in the same way as Motiply, you'll want to make sure your sales experience is established, because you'll likely have to be doing a fair amount of cold calling to get any traction.
  • Perks Nearby: With this mobile application, you'll be given a mobile platform that allows you to craft and offer your own Groupon and Living Social style deals. These kinds of deals are very popular with consumers, and with some gumption, you might be able to get some real traction. Like the other three options, though, getting this off of the ground is going to require a fair amount of cold calling, or at the very least some establish contacts.

This is, of course, just a small sample size of what's out there. If none of these appeal to you and your particular skill set, you'll likely be able to do a bit of research and find something that will.

Or, You Could Always Teach Yourself!

Of course, the problem with a reseller program is that you're unable to truly take all the profits for yourself. But, maybe after you get your feet wet with a mobile application business, you might want to find a way to learn how to program for yourself. Whereas once an education in computer programming was limited to those who could afford the time and money to take courses at an accredited institution, there now exists so much information and instruction on the Internet, that virtually anyone can pick up programming - provided they have the time and inclination.


If you're considering taking some of your spare time to learn the art of computer programming, then you might want to start with many of the free online courses that are offered by prestigious universities like Harvard and MIT. Because there's no investment required with one of these free courses, you can get a sense of what's involved and decide if it's ultimately right for you. In addition, you'll also find a wealth of material available through websites like Udemy, which specialize in offering tailored education in such topics for beginners like you.

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 SitePreferences. For example, to customize the USERAGENTNAME setting, create a HEADLINESPLUGIN_USERAGENTNAME setting in Main.SitePreferences.

  • One line description, shown in the TextFormattingRules topic:
    • Set SHORTDESCRIPTION = Show headline news in Foswiki 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 Foswiki's internal getUrl() method. Default: yes

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

  • Name of user agent. Default: FoswikiHeadlinesPlugin/2.21.1
      * Set USERAGENTNAME = FoswikiHeadlinesPlugin/2.21.1

  • 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)
    • $Foswiki::cfg{PROXY}{HOST} - proxy host, such as "proxy.example.com";
    • $Foswiki::cfg{PROXY}{PORT} - proxy port, such as "8080";
    • $Foswiki::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 foswiki installation directory. Content:
    File: Description:
    data/System/HeadlinesPlugin.txt plugin topic
    pub/System/HeadlinesPlugin/style.css default css
    lib/Foswiki/HeadlinesPlugin.pm plugin perl module
    lib/Foswiki/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 Foswiki 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, Foswiki:Main.MichaelDaum (2005-2007)
Copyright: © 2002-2009, Peter Thoeny, TWIKI.NET; 2005-2007, Michael Daum http://wikiring.de
License: GPL (GNU General Public License)
Plugin Version: 2.21.1 (08 Mar 2009)
Change History:  
08 Mar 2009: Ported without changes to Foswiki namespace by Kenneth Lavrsen and put under "Feel Free To Modify" in Foswiki context.
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.008
Plugin Home: http://foswiki.org/Extensions/HeadlinesPlugin
Feedback: http://foswiki.org/Extensions/HeadlinesPluginDev
Copyright © 2015 Atomikos BVBA. Transaction Management for Extreme Transaction Processing and SOA Environments serving ISV, Commercial, OEM and Open Source Markets
Site map RSS ATOM