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

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/ ) lists 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
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>.

Examples

Slashdot News

Write

%HEADLINES{ "http://slashdot.org/slashdot.rdf" 
  header="*[[$link][$title]]:* $description" 
  format="$t* [[$link][$title]]"
  limit="4"
}%
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

Write

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

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

Tue, 23 Jan 2018 15:14:56 +0000
The original blog about business opportunities and business ideas for small business entrepreneurs
Tue, 23 Jan 2018 03:39:33 +0000 Bizop Team

5 Tips for More Efficient Warehouse Operations

Efficiency is a top concern for any business with an onsite warehouse or distribution center. To keep customers happy and remain profitable as a business, your warehouse needs to operate with no significant hitches.

While it’s easier said than done, you can implement some simple tactics to help your warehouse run with less friction and greater output.

 

RELATED ARTICLE: THE BASICS OF EFFICIENT INVENTORY MANAGEMENT

 

5 Tips for Maximum Efficiency

Investopedia defines efficiency as ''…a level of performance that describes a process that uses the lowest amount of inputs to create the greatest amount of outputs.''

Efficiency, then, is all about the ratio of output to input. In the warehouse, there are some specific ways you can improve this ratio.

 

1. Hire the Right People

An efficient warehouse starts with hiring the right people. You need individuals who are focused, disciplined, ambitious, and goal-oriented. While people can learn a lot of skills, these are innate characteristics that people either have or they don’t.

 

 

2. Get Serious About Training

When you combine the right people with targeted training, you end up with exceptional value. So invest in training. Of course you’ll train your employees in the onboarding process. But include training at regular intervals, too. Make sure your staff continues to improve.

 

3. Invest in the Right Machinery

People are the lifeblood of an efficient warehouse. However, even the best people need the right tools. Therefore, make sure your tools and machinery meet strict quality standards. And ensure that your equipment is always in good repair, too.

''No one wants to think about their new machine not functioning properly, but at some point, any machine will need repairs,'' Dalmec explains on their blog. ''The difference, of course, is how frequently those repairs are needed, how early on in the life of the machine the issues begin appearing and how costly the repairs will be.''

 

4. Enhance Cross-Departmental Collaboration

The warehouse doesn't exist in isolation. It's directly connected to just about every department in your organization. This includes sales, marketing, advertising, customer service, production, and logistics.

In order to encourage maximum efficiency in the warehouse, you have to be certain that there's optimal cross-departmental collaboration. The more you encourage direct collaboration between the warehouse and your company’s other departments, the fewer mix-ups there will be.

 

5. Aim for Continuity

Once you reach a level of efficiency that you feel is productive and worthwhile, avoid regression. The number-one way to do this is by retaining your top warehouse employees.

Therefore, offer competitive benefits and promote from within whenever possible. Additionally, stay abreast of what's happening on the ground level. In this way, you can make strategic changes that keep employees satisfied.

The Wall Street Journal suggests that you, ''Hold regular meetings in which employees can offer ideas and ask questions. Have an open-door policy that encourages employees to speak frankly with their managers without fear of repercussion.''

 

Empower Your People for Greater Efficiency

Efficiency is about attracting, training, and retaining the right people. It’s about having a team of people who are all on the same page and striving for a single goal. In other words, empower your people and achieve greater efficiency in your warehouse.

The post 5 Tips for More Efficient Warehouse Operations appeared first on Business Opportunities.

Tue, 23 Jan 2018 00:05:14 +0000 Bizop Team

Exhibiting at a Trade Show? Here’s How to Do It Right

One of the most exciting ways to build your brand is by exhibiting your wares at a trade show.

A trade show can be a lively and glamorous affair. Plus, you’ll be able to learn a lot about what’s going on in your industry while you’re there.

To make the most of your trade show experience, start planning well in advance. You’ll want to have all the elements in place well before the show opens. And during the show, take advantage of the opportunity to find out more about your target audience as well as your competitors.

 

RELATED ARTICLE: STEPS TO A SUCCESSFUL TRADE SHOW

 

Choose the Right Trade Show for You

These days, you have your pick of trade shows. They’re everywhere and all the time. And since taking your brand on the road can be an expensive proposition, choose the shows you attend carefully and strategically.

Attend the shows you know your target audience is interested in. For instance, if your company is firmly situated within the beauty products industry, you might want to attend the International Beauty Show in New York.

 

Secure a Great Location

Most of the time, when you’re registering to attend a trade show, you’ll have the option to secure a great location by paying an additional fee. By all means, take advantage of this opportunity whenever you can. However, these prime locations tend to sell out fast, sometimes as much as a year in advance. So once you’ve decided to attend, act fast.

 

Don’t Skimp on Your Booth

When it comes to designing your booth, pick an attractive design, use bright colors, and install good lighting. If possible, hire a professional designer. Trade show display companies can help you make your booth stand out from all the other booths in the display hall.

To keep costs down, consider renting elements of your display.

 

 

Make It Welcoming

Most of all, you want your booth to be inviting and welcoming. Staff it with your friendliest, most outgoing personnel. However, make sure that at least one company expert is on site at all times to answer the technical questions that visitors are sure to ask.

Keep in mind that while trade shows are great places for promoting your brand, your trade show experience will be more rewarding for you if you approach it as a networking event rather than as a selling event.

Therefore, be sure to have plenty of business cards on hand. Also, remember to collect cards from booth visitors as well. Those cards will be your best resource when you’re planning for next year’s show.

If you have the room, set aside an area near your booth where visitors can take a break. A simple arrangement of a few comfortable chairs can make your booth a popular spot among trade show attendees. Provide some free snacks and water bottles bearing your logo, and they’ll be sure to remember you, too.

 

Before the Trade Show

Make sure everyone who’s anyone knows you’re going to the show. Put the word out on all your social channels. You could even go so far as to offer special incentives to your social media contacts who are also planning to attend.

Reach out to clients well ahead of time, too, to set up in-booth meetings a day or two before the show actually opens.

 

Highlight Your Brand's Individuality

Turn to the services of the best web hosting you can afford so that your website looks as spiffy as your trade show booth in the days that lead up to the big show.

Supportive web hosting will allow you to stand out with confidence. Choose a cutting edge web hosting service that will give you a variety of features, including an online database and a dedicated server. A good web hosting service will be both reliable and affordable. Plus, you can even choose to have an online gadget display at the trade show, giving booth visitors a chance to view your entire unique line.

 

Remember to Bring the Goodies

Be sure to have lots of promotional items on hand to give away to your booth visitors. Pens, bags, and coffee mugs pre-printed with your brand are among trade show favorites. Even more popular are electronic gadgets pre-printed with your logo, such as thumb drives or memory sticks.

Additionally, offer a well written white paper. But make sure it contains useful and up-to-the-minute information. Done right, such a paper could draw lots of people in your industry to your booth.

 

After the Show

When the show is over and you’re back in your office, don’t waste any time in following up on leads. If you’ve done things right, you’ve spent plenty of money and invested a good bit of time on this trade show. By following up quickly, you’ll be sure to get the best possible return on your investment.

The post Exhibiting at a Trade Show? Here’s How to Do It Right appeared first on Business Opportunities.

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
    • Set USELWPUSERAGENT = yes

  • Timeout fetching a feed using the LWP::UserAgent. Default: 20
    • Set USERAGENTTIMEOUT = 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.
    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-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