Welcome, Registration, and other StartingPoints; TWiki history & Wiki style; All the docs...

Headlines Plugin

Description

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

%HEADLINES{"..."}%

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>.

Examples

Write

%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:

Write

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

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

Thu, 28 Aug 2008 21:56:43 +0000
Opportunities, news, and links for small business entrepreneurs
Thu, 28 Aug 2008 21:56:43 +0000 Angela


In real estate, the best way to sell a home is by presenting it in the best possible light. So why not make it through video? Video can offer one of the best views of a home that someone might be interested in purchasing before physically driving there.

It is Video Sales Agent that has been one of the best options for realtors and independent sellers in need of a way to promote their properties. When your competition is using the old-fashioned photograph to sell a home, your video is bound to stand out in the crowd.

Of course VSA isn’t limited to their services, they also offer a distributorship opportunity for individuals with the drive to go into business for themselves.

What does Video Sales Agent do and what inspired you to start this business?

Video Sales Agent creates videos that sell! We specialize in videos for real estate, video business cards, website virtual spokespeople, and video to web. In the real estate segment we specialize in video property tours, agent video profiles, and real estate photography.

Did you launch the opportunity at the same time as you did the business? How long did it take for you to perfect your opportunity for the market?

No, I actually started working with video to web technologies with my former technology company. It has taken us more than a year to perfect our services, our video hosting platforms. We are continuously developing new video products and services that will help business increase their revenues.

What does it take to start up a VSA business?

First and foremost it takes a strong desire to build your business. If you like working for someone else, don’t like meeting new people, and introducing your products and services then this opportunity is not a great fit.

You don’t have to have video expertise but having a certain amount of creativity is a strong benefit. We teach all of our licensees how to develop and deliver our products.

There is minimal equipment and software that needs to be purchased and in many cases a potential licensee may already own some of the required equipment. ($5,000 or less)


Why is your business different from other services like yours?

I don’t believer there are businesses exactly like ours. We have worked hard at diversifying the products and services we offer, opening up our target markets to virtually any size and type of business. In addition, we are continuously research and developing new products and services for our licensees to offer their clients, helping ensure their business is never behind the trends.

We guide and train our licensees on how we deliver our products and services but we do not control how they run their business. Our mission is to do the hard work up front allowing our licensees to focus on sales and delivery.

Was there any experience you were able to apply when you were getting started? What was that experience?

I have been involved in internet/web based technologies for more than 10 years. The combination of that and my business background has really contributed to the development of our products and services that provide very high margins.

Is there anything you wish you could go back and do differently? What have you learned from those mistakes?

I would never want to go back and do anything differently. The mistakes we make have been great learning lessons on what works and what doesn’t work. If you make no mistakes that means there are a lot of mistakes waiting to happen. As with any business, our current offerings have evolved over time meeting our clients business needs.

If you were to retire right now, is there anything in business that you feel has really had an impact on your day-to-day life? What have you learned from it all?

Owning my own business has been the most influential aspect of my business life. While I tend to work more than the average person I enjoy creating and building. All of the effort I put in rewards me. All of the mistakes I make impact me. There is no one else to blame.

But when all is said and done it has been the freedom to enjoy my family life. I am able to coach my kid's soccer teams. I am able to spend quality time with my family. I am based out of my house so I get to see them in the morning and when they get home. I get to take breaks with them in the day. When I worked for someone else at the office I would come home and my son was going to bed. I may see him 30 minutes a day. Life is too short for that.

I hope we are able to give others the chance to build dreams and to enjoy some of the benefits of owning your own business. Its work, but the rewards are worth it.

Why did you decide to become an entrepreneur?

I have never liked working by the hour or getting paid a straight salary. I like to be paid for performance. When you own your own business there is no middle manager or large corporate entity that enjoys in my efforts.

What kind of impact do you feel that VSA has had on the real estate world?

Video is starting to have a significant impact in online marketing. In the next five years the standard virtual tour will be a narrated video virtual tour, our specialty. Video Sales Agent is positioned very well to capitalize on this evolving trend.

If you look at the history of online property marketing it started off with pictures. Then it evolved into the panoramic scenes. That progressed to slide show tours with music and static pictures. Video Tours are the next wave. Video Tours are a mini commercial for a property. If still pictures with no sound or narration was the best way to sell something then we would not have commercials, we would just see still pictures on TV.

Video Sales Agent is the first company that standardizes the product and process, allowing our licensees to offer these cutting edge products to real estate agents nationwide.

Where do you see your business and the opportunity you offer going in the next few years? Do you have any special plans (non-secret ones, as I understand there are some things businesses can’t disclose) for growth or change?

I fully anticipate that we will add 50 licensees a year over the next few years. My personal goal is to be in every major city within the next 3 to 5 years. Then we may look at moving internationally. We will encourage licensees to help us grow into other areas by opening new markets, building their own business’ footprint.

What advice do you have for someone interested in starting their own business through your opportunity?

I would recommend starting part-time. What is great about this opportunity you can start slow, do virtually all of the work after hours, building your business until revenues are high enough to make the move full-time.


Thu, 28 Aug 2008 18:11:17 +0000 Rich


PRNewswire:

WHAM-O, Inc., announced that John Bisbal III of East Northport, New York is the winner of the company’s 60th Anniversary Kid Inventor Contest.

In saluting WHAM-O’s storied, and sometimes “zany,” history of redefining fun with off-the-wall toys and imaginative inventions, WHAM-O’s Kid Inventor Contest encouraged kids between the ages of 6-17 to tinker, test, create and submit their ideas for the next great WHAM-O toy by visiting the contest website.

After reviewing hundreds of submissions from the U.S. and Canada, John’s submission scored highest, as determined by a panel of WHAM-O judges, in terms of originality, uniqueness of approach, marketability and mass appeal.

“Of all the great toy concepts we reviewed, John’s was closest to WHAM-O’s spirit of innovative outdoor fun, and its history of providing children and adults with imaginative toys that spark creativity and encourage social interaction,” said Chris Guirlinger, WHAM-O’s Vice President of Marketing and Licensing. “We are very excited to work with John on the possibility of turning his winning concept into the next great WHAM-O toy.”

The winning invention is designed for both outdoor and indoor use and tests the user’s skill and aim by catapulting balls from a specially designed launcher. In addition to winning the $2,000 Grand Prize, John’s invention will be reviewed for inclusion in WHAM-O’s 2010 toy line-up, and if made, John will receive a portion of the profits from the manufacturing and distribution of his toy.

When asked what inspired him to create his invention, John answered, “I don’t know. It just came to my head. I was reading Nick Magazine and there were only two days left until the end of the contest, so I said to my dad, ‘let’s try to come up with something,’ and it just came to me.”

Photo by WHAM-O, Inc..


Thu, 28 Aug 2008 17:10:27 +0000 Rich


MarcandAngel.com:

What most people don't realize is that you never really work for anyone but yourself.

The only question is: What are you selling, and to whom?

Even when you have a full time, salaried, ''Corporate America'' position, you are still running your own business. You are selling one unit of your existence (an hour of your life) at a set price (the associated fraction of your salary) to a customer (your employer).

Even when working in an ''hours for dollars'' environment, you can avoid the ''hours for dollars'' mentality. Find something you're passionate about and take it to the next level. Become a guru. This should help you to strategically position yourself as a ''go to guy/gal'', someone your superiors (and industry insiders) see as a vital asset.

Doing so will ultimately free you from the bounds of an arbitrary hourly rate, because you (your business) will become entwined with the future objectives of your employer (and maybe even the industry as a whole). This typically translates into big raises, bonuses, etc. You'll start getting paid based on the tangible value you provide. Eventually, this position of power can be leveraged to start a company of your own.

Photo by defret.


Plugin Settings

Plugin settings are stored as preferences variables. To reference a plugin setting write %<plugin>_<setting>%, for example, %HEADLINES_SHORTDESCRIPTION%

  • One line description, shown in the TextFormattingRules topic:
    • Set SHORTDESCRIPTION = Build news portals that show headline news based on RSS news feeds from news 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
    • Set USELWPUSERAGENT = yes
  • Timeout fetching a feed using the LWP::UserAgent, Default: 20
    • Set USERAGENTTIMEOUT = 20

  • 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>

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)
      • headlineText: 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.
    NameVersionDescription
    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-2006, Peter Thoeny; 2005-2006, Michael Daum
License: GPL (GNU General Public License)
Plugin Version: v2.11
Change History:  
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 - 11 May 2005
-- TWiki:Main.MichaelDaum - 23 Jul 2006

r1 - 27 May 2006 - 07:56:43 - TWikiContributor
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
Syndicate this site RSSATOM