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:

Tue, 31 Mar 2015 17:33:23 +0000
The original blog about business opportunities and business ideas for small business entrepreneurs
Tue, 31 Mar 2015 14:51:48 +0000 Dane Carlson

Franchises come in all shapes and sizes. You could purchase something as small as a taco cart that you can roll around to area businesses during lunch breaks, or you could purchase something as large as a massive hotel in the heart of a bustling metropolitan area.

When you're making a decision about taking up a franchise opportunity, you've got to strongly consider the size of the initial investment that you're going to be making. Will you be able to tolerate the level of risk involved? How much of your capital is going to be tied up in getting your franchise off of the ground? When you consider your financial resources and other factors in this way, you'll find that you're able to significantly narrow down the myriad of franchise opportunities that are available to you as an investor.

But what if money was no object? In an ideal world, you'd have access to all the capital that you ever dreamed of, and you'd be able to buy into any franchise opportunity that you wish. As an entrepreneur, you're making it your goal to make that ideal world your reality, but, if you don't have the capital already, then it's going to take some time to get there. That being said, it never hurts to dream does it?

That's why we've researched some the most expensive franchise opportunities around. Even if you can't make that kind of investment today, you might be able to one day. And, reading this list and seeing what's out there will help you develop some intermediate-term and long-term goals to set your sights upon. According to a list provided by TheRichest.com, these are the 9 most expensive franchise opportunities from most expensive to least expensive:

Choice Hotels International: The chances are that you've probably stayed in one of Choice Hotels International's many hotels, as they own a wide assortment of hotel brands. The startup cost associated with opening one of these hotels averages somewhere in the neighborhood of $14.6 million, which makes sense given all that's involved with building and operating a large hotel.

Amazing Spaces: As a relative newcomer on the franchise block, Amazing Spaces has made a name for itself in the self-storage industry by offering amenities that its competitors do not. Given the cost of construction and other related factors, getting started with an Amazing Spaces franchise will set you back an average of $8.25 million.

AMPM: This convenience-store company has a limited international presence, and it is primarily located on the west coast of the United States and in the southeast. Getting started with one of these convenience-store franchises will cost approximately $7.6 million, which doesn't factor in the 5% royalty that you'll be paying thereafter.

Golden Corral: As a family-style restaurant that offers an attractive buffet for its customers, Golden Corral is one of those chains that seems to get more popular every year. Because of this, it takes quite a bit of capital to get started with one, something in the neighborhood of $6.76 million.

Buffalo Wild Wings Grill & Bar: Ever the friend to the unwashed masses who did not spring for NFL Sunday Ticket, Buffalo Wild Wings is an increasingly popular restaurant franchise. In order to get started with one of these, you'll need to be prepared to invest approximately $3.2 million - which doesn't factor in the cable bill you're going to be getting every month!

Culver's: As the purveyor of delicious ButterBurgers and decadent frozen custards in the Midwest, Culver's franchises have a lot to crow about! That being said, the startup costs for a Culver's franchise are on the expensive side, and typically run in the neighborhood of $2.8 million, which does not include a 4% royalty that must be paid after the business is operational.

KFC: Kentucky Fried Chicken is a truly global business, with operations in 109 countries through the world. If you want to get involved with owning your own business with Col. Sanders hanging above the door, though, you should be prepared for startup costs in the neighborhood of $2.5 million.

Denny's: As a 24-hour diner, Denny's is popular with all sorts of crowds, from lunch to late night. In addition, Denny's has internationalized over the years, setting up shop in countries other than its home, the United States. In addition to a 4% royalty fee, the owner of a Denny's franchise can expect to plunk down $2.4 million in order to get started.

Carl's Jr.: This fast-food restaurant primarily operates in the southwestern United States and along the West Coast. Around since 1941, Carl's Jr. has an established reputation with diners, which is something you'll have to pay a premium for. In order to open a Carl's Jr. franchise, you'll face startup costs of approximately $1.8 million.

Mon, 30 Mar 2015 23:57:45 +0000 Dane Carlson

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:

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.

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