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 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
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]]$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:

Tue, 31 Mar 2015 00:03:20 +0000
The original blog about business opportunities and business ideas for small business entrepreneurs
Mon, 30 Mar 2015 23:57:45 +0000 Dane Carlson

Sara Blakely went from selling fax machines door-to-door to the world’s youngest self-made female billionaire at age 41 when she turned $5,000 of savings into a booming business: Spanx.

Her super-successful hosiery and apparel company, which she founded in 2000, started with one small, disruptive idea.

At a recent New York City Network for Teaching Entrepreneurship event, which celebrated young entrepreneurs from all over the world, Blakely shared her favorite exercise to stimulate innovative thinking:

Read more: http://www.businessinsider.com/how-to-come-up-with-a-million-dollar-idea-2015-3#ixzz3VurMAYLI

Mon, 30 Mar 2015 20:34:23 +0000 Dane Carlson

Trumpia is a cloud-based mobile messaging and marketing automation software service with the most comprehensive lineup of features ranging from mobile apps, SMS, digital coupons, loyalty rewards, behavior-based targeting, campaign automation and multi-location enterprises. We make it easy for businesses to implement a multi-channel strategy that goes beyond basic email or mobile text marketing. Here's a closer look at how Trumpia is helping businesses with innovative marketing automation software:

Q: What's special about your business?

A: Both mobile marketing and marketing automation industries have been growing with many players in the market. Trumpia is competing against both mobile marketing software vendors and marketing automation software vendors. Trumpia is unique because:

• Trumpia offers both mobile app and SMS-based marketing automation while mobile marketing competitors tend to offer only one of the two. Businesses should not dictate on either communication channel to customers as customers have preferences on how they want to be communicated.

• Majority of marketing automation competitors started with email marketing and have incorporated social marketing. Since the majority of them focus on B2B industries and ecommerce-based marketing automation, they are less familiar with mobile marketing automation targeted at offline B2C businesses such as retail services and stores. Trumpia's service is perfect for bricks and mortar retail businesses, consumer services, and food and beverage establishments.

• Trumpia offers built-in access control and centralized reporting for multi-location enterprises.

Q: Where did the idea come from?

A: Our idea was sparked by the inefficiencies of email communication and unfocused social media posts. We always envisioned revolutionizing communications using both mobile devices and cross-channel orchestration through social and email channels.

Q: How does it compare to its competition?

A: We believe Trumpia is the most complete mobile-messaging and marketing software available for several reasons. First, we cover both mobile-app and mobile-texting communication channels. Competitors tend to focus on one or the other and fail to provide the comprehensive coverage you need to communicate with ALL your customers. Second, we offer engagement tools that meet both messaging and marketing objectives. Third, our marketing automation goes way beyond simple birthday wishes or recurring messages. It is completely customizable, capable of implementing complex campaign rules and conditions. Finally, our security and compliance features are designed to satisfy the various needs of even large franchises and enterprises with multiple departments.

Q: Who can really make use of it?

A: Any size businesses who value their customer or employee engagement and want to grow their business. Trumpia is used by 40+ industries for anything from internal communications to urgent alerts to mobile coupons and mobile loyalty programs.

Q: Anyone already using it in any interesting ways?

A: We have several brands and companies making full use of Trumpia's offerings. These include:

• Ebay - text-to-download to promote the brand

• Amazon - fulfillment center notifications

• Coca-Cola - internal communications

• TedX - text voting

Q: Where do you see this going in five years?

A: Mobile marketing automation will evolve into many aspects and it will be considered a standard feature of any communication or marketing software. By then, Trumpia would have introduced the next generation of mobile marketing automation that I cannot disclose yet.

Q: Who's behind Trumpia?

A: Ken Rhie is the founder and CEO of Trumpia. Visit www.KenRhie.com for more information.

Q: Can you describe a typical working day?

A: I work 8 a.m. to midnight during weekdays. A typical day is made up of several conference calls, responding to messages, and doing my assignments.

Q: What is your background?

A: I have extensive start-up operation experience in general management, marketing, product development, and business development. I served as the president of Z60 Advisory for nine years before Trumpia.

Q: What motivates you to keep going?

A: Success for me, my investors and my employees.

Q: Any final words for aspiring entrepreneurs?

A: It is critical that a brilliant idea is backed by a reasonable business model and how competitors are doing.

Mon, 30 Mar 2015 18:01:03 +0000 Guest Poster

It is popular today for people to want to be their own boss. Ads relating to entrepreneurship are all over the Internet and some people are probably talking about it at work. There definitely is a push for people to start their own business. Before launching out on your own new business, however, there are five things you need to know.

1. Do Your Research

Every idea sounds good on the surface. It is necessary to take a serious look at every aspect of it - both the pros and the cons. Know where your weak points are and either hire someone else for those tasks, or dig in and learn how to do them yourself.

Take time to develop a realistic and thorough business plan. It will prepare you for possible problems later on, and it will help you stay on track, if you refer to it often.

2. Know How to Sell

You also need to carefully study the market. You need to know who your target market is, what will trigger them to buy from you, and who your competitors are. A new business will only succeed if you can sell your product or services to those in need of them.

Learn what marketing methods work and stick to it. Then, add new methods as needed. If you plan to sell online, realize that what worked five years ago may not be as effective today. This demands that you need to be constantly learning new methods, as well as learning how to perfect and test methods you will use to get started.

3. Calculate the Cost

There will certainly be considerable cost involved with starting your own business. As a general rule, it will likely cost more than you think it will to get the business off the ground. Find out how much income or savings you need to live on for the next six months, and if you can’t get it, be sure to keep on working. Many people start a business as a side job and then quit their full-time job after the new business becomes successful.

Understanding the cost also means that you need to have calculated a point where you need to exit the business before it destroys you financially. You need to know the breakeven point and get out while your own finances are still intact - if need be.

4. Be Determined

Determination and good old-fashioned bull-doggedness will help you succeed when other things won’t. You will have to have a good amount of self-discipline to be your own boss, even when you don’t feel like getting out of bed. Long hours will most likely be necessary at the start, and you will have to push yourself to do some tasks that are not as enjoyable to you, such as marketing, accounting, design, selling, talking with clients, etc.

5. Get Started

Instead of continuing to want to start your business “someday,” you need to set a start date, and stick to it. Get everything ready for that day and make sure you have everything you need at that time. Let everyone around you know in advance, then launch your new business and enjoy it.

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