Headlines Plugin

Show headline news in TWiki pages based on RSS and ATOM news feeds from external sites


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


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


Slashdot News


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

Business Opportunities Weblog


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

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

Sun, 27 Nov 2022 00:50:06 +0000
The original blog about business opportunities and business ideas for small business entrepreneurs
Sun, 27 Nov 2022 00:50:05 +0000 Carrol Strain
Featured image by Sergei Tokmakov via Pixabay

Everyone, from private individuals to large corporations, should understand the concept of duty of care. You could make a serious mistake in your business dealings if you don’t.

Liability has become an essential part of the legal system. It is no longer just the realm of lawyers and law firms. Therefore, it is important to learn more about the duty of care and why you must be aware of it.


What Is Duty of Care?

Duty of care is a legal concept that provides a framework for assessing whether or not someone has breached the law. In essence, it’s an attempt to ensure that any conduct which may cause harm to another person is within the bounds of acceptable behavior.

Duty of care is a term that refers to accepted practice regarding the proper way to behave within any given context.

Everyone must exercise all reasonable care while interacting with third parties or those people we don’t know personally but still have a relationship with. It means that we must act toward them in a way that demonstrates respect and consideration for their safety, welfare, happiness, and well-being at all times.

What Can You Do to Fulfill Your Duty of Care Properly?

In practice, this means that you need to know what your legal responsibilities are to fulfill them. If you don’t know what those responsibilities are, then you can’t meet them, and your company will be at risk for lawsuits. So, remember to:

  • Identify the relevant duty of care laws in your jurisdiction.
  • Determine what steps will help you carry out your duty of care obligations.
  • Ensure that all measures taken are safe and legal for you to take.

When Does the Law Invoke Duty of Care?

Understanding your legal responsibilities is necessary in order to know how your duties of care affect you.

It is essential not only for business owners and individuals but also from a personal perspective. Say you want to avoid the complicated process of dealing with a personal injury lawyer. In that case, a thorough understanding and application of the duty of care will provide peace of mind, increase efficiency, and enhance job satisfaction and overall company morale.

It’s been an issue that most companies should have been aware of, especially regarding the Health and Safety at Work Act. This law relates to those people in positions where they need to work closely with others, such as bosses and employees. Knowing your duties, responsibilities, and obligations is essential when dealing with health and safety issues.

Some examples of when the duty of care must be invoked include when:

  • A person is injured on your property or in your care.
  • Another person is injured while trespassing on your property.
  • Someone is injured while using your equipment or services.

Who Is Responsible for Duty of Care?

Everyone is responsible for duty of care. This includes employees, business owners, and contractors. Duty of care is a legal responsibility that protects others who may be affected by your actions.

For example, if you are a business owner who hires employees and then fails to provide them with protective equipment or training, this could result in injury or death. You would be held accountable for failing to perform your duties as a business owner by not ensuring that your employees were safe from harm.

What Legal Claims Can You Face for Not Following the Duty of Care?

An injured person may sometimes file a lawsuit against another party for negligence. Negligence is an action or omission violating a person’s legal rights.

If someone suffers an injury because of someone else’s negligence, they may be able to claim damages against that party.

What Happens If a Court Finds You’re in Breach of Your Legal Obligations?

The duty of care is there for a reason-to ensure that you look after your clients thoroughly and give your best effort.

But because there are so many variables and the legal framework governing such things is complex, anyone can make mistakes. This is true even of those who would otherwise appear to be highly experienced professionals.


Final Thoughts

This article should have given you a clearer idea of your legal responsibilities to others. Hopefully, it has helped you understand what steps you need to take to ensure you’re covering your bases.

The most crucial point is that these issues should not scare or anger you. Instead, they should help motivate and encourage you to ensure your business runs as smoothly as possible.


The post Duty of Care: Your Legal Responsibilities as a Business Owner appeared first on Business Opportunities.

Sat, 26 Nov 2022 19:44:10 +0000 Carrol Strain
Featured image by Anna Shvets via Pexels

Online coaching is an increasingly popular way for businesses to get the help they need without sacrificing productivity or spending money on travel. But you might be surprised to learn that online coaching comes with its own set of benefits for companies. We’ll discuss how online coaching can help boost workplace wellness, improve employee retention rates, and even make talent management easier than ever before.

You’ll Develop Soft Skills to Manage Employee and Client Relationships

Online coaching is an excellent opportunity to develop your soft skills. For example, there are many times when you will have to deal with employee and internal client relationships. The skills you need in these situations aren’t typically thought of as “soft” skills. However, they’re still important for your business to function properly.

Online coaching helps train you in how to successfully manage those relationships. You will become familiar with using software like Webex or Adobe Connect Pro, for instance. These tools allow you to communicate with others via video chat and share documents and files during the session.

It’s also important for managers as well as coaches to be able to explain complex ideas so that others can understand them. This is especially the case for instructing people who don’t have much experience or knowledge about the subject matter at hand. Done well, this can help improve communication between all parties, both internally within an organization and externally with clients, customers, patients, and others outside of the organization.


Online Coaching Will Help You Increase Workplace Productivity

Here’s the thing: Online coaching is all about increased productivity. This means you can expect to see an increase in the number of hours your employees work. You’ll also see a decrease in the amount of time they spend in meetings. Why? Because when employees are working from home or in an office that isn’t located near their manager, they will have more flexibility to choose when and how much time to spend at work.

This can be especially helpful for people who travel frequently for business purposes. Does this sound like it could apply to your team?

Just consider how much money and time you would save if you were able to cut down on some of those expenses by offering your people some coaching during off-hours or even remotely. For example, they could have coaching sessions while they’re in a city far from their home, or even better-the beach. As long as they have a WiFi connection they can work or take a coaching session.


You’ll Reduce Stress and Improve Workplace Wellness

The rate of workplace stress at an all-time high. Therefore, it’s no surprise that many employees are looking for ways to reduce their stress levels. According to a 2015 survey by the American Psychological Association, more than half (57%) of Americans cited work-related concerns as their primary source of stress. In fact, 70% reported feeling stressed out on the job at least one day per week.

Studies have shown that when people experience chronic stress or high levels of perceived job demands, they’re more likely to experience negative effects. For example, they deal with such issues as burnout or impaired performance at work. They may also have higher rates of cardiovascular disease and other health problems.

Online coaching can help you manage your time better so that you’re able to focus on what really matters in your life. This is true whether you’re managing a schedule full with meetings and appointments or working toward a long-term goal like losing weight or quitting smoking.

Talent Management Will Become Easier Thanks to Online Business Coaching

Talent management is an important part of business. This is a process that helps companies identify, develop, and retain talent.

Online coaching can help you develop soft skills to manage employee and internal client relationships. Through online coaching, you will learn how to build stronger bonds with your employees. Coaching can help you improve the way you communicate with them. This could lead to better relationships, more productivity, and lower turnover rates in the long run.

Your Corporate Culture Will Improve and Employee Retention Issues Will Decrease

When you and your team members are able to work together more effectively, employee productivity will increase. This means you’ll be able to complete projects in less time and with fewer resources. And that doesn’t even take into account the long-term benefits of increased loyalty among your employees. They will be happier at work. And they’ll also be more loyal to your company. This is because they will feel invested in the success of the business.

The fact is that all businesses need talented people who are willing to invest their skills and energy into making it all happen.

Online coaching is more effective than in-person coaching, too. It’s a good solution for companies that need help but don’t want to lose productivity or send employees away for days of training at a time.

A coach who works with you remotely can help you solve problems, develop new skills, and improve performance in less time than it would take to hire an in-house consultant. And because coaches work with clients via video chat or messaging platforms like Skype and Slack, you won't have to worry about paying high travel costs.

Online Coaching Also Has Several Other Benefits

It’s Affordable

Online coaching more affordable than traditional in-person coaching. This is largely because online coaches typically charge by the hour rather than by the session, as many face-to-face counselors. This option can be much more cost-effective if your company has limited resources available for professional development programs.

Online Coaching Is Flexible

It offers greater flexibility than other types of instruction do. This makes it easier on employees who may not want or need to take full days off work for training sessions.

This type of training allows companies with offices that aren’t located near one another geographically to have complete access into each other's professional development needs. This is true even of those offices are located around the world.


The Future of Coaching Is Here

The future of coaching is here, and it’s going to be a game changer for businesses around the world. The benefits of online coaching are numerous. However, they all boil down to one thing: increased productivity.

When employees feel better about themselves as individuals, they’re more likely to remain loyal and engaged at work. Online coaching helps companies strengthen their corporate culture. It does this by making companies more inclusive and diverse while also improving productivity through better teamwork skills.


The post The Surprising Benefits of Online Coaching for Your Business 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

  • Timeout fetching a feed using the LWP::UserAgent. Default: 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.
    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-2010, Peter Thoeny, Twiki, Inc.; 2005-2007, Michael Daum http://wikiring.de
License: GPL (GNU General Public License)
Plugin Version: v2.6 - 2010-05-16
Change History:  
2010-05-16: TWikibug:Item6433 - more doc improvements
2010-04-25: TWikibug:Item6433 - doc fix: Changing TWIKIWEB to SYSTEMWEB
2010-02-27: TWikibug:Item6313 - fixed bug in ATOM feed with <link ...></link> instead of <link ... /> -- Peter Thoeny
2009-09-30: fixed bug in lastBuildDate of feeds affecting touch parameter functionality -- Peter Thoeny
2009-08-29: 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: http://TWiki.org/cgi-bin/view/Plugins/HeadlinesPlugin
Feedback: http://TWiki.org/cgi-bin/view/Plugins/HeadlinesPluginDev
Appraisal: http://TWiki.org/cgi-bin/view/Plugins/HeadlinesPluginAppraisal

Related Topics: TWikiPlugins, AdminDocumentationCategory, TWikiPreferences

Topic revision: r1 - 2010.05.17 - TWikiContributor
This site is powered by the TWiki collaboration platformCopyright © 1999-2022 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.