x First time here? Check out the FAQ
Join the North American Umbraco Festival in March 2015
Darren Ferguson started this project on Wednesday, January 20, 2010 it's current version is 1.0.1 .

Package Info

Project Owner/Creator

Avatar

Darren Ferguson

914posts 2790karma

Project Compatibility

No compatible versions have been reported, be the first!

View Details Report Compatibility

Project Information

Project owner:
Darren Ferguson
Created:
Wednesday, January 20, 2010
Is Stable:
Project is stable
Current version
1.0.1
License
MIT
Tags
link  auto 
Downloads:
857

Contribute

Group

This package is open for collaboration.
Contact the owner

Auto Link

*** Note: 1.0.1 is a patch release. 1.0 must be installed first ***

Automatically inject links into content based on configuration.

Please watch the demonstration screencast for more information.

Post install in a template you can do this:

<xsl:value-of select="fmautolink:Link($currentPage/data[@alias = 'bodyText'])" disable-output-escaping="yes"/>

The following example input:

<p>

I've been invited to participate in a Microsoft initiative in which they will sponsor the development of some packages for Umbraco. These packages will showcase Microsoft technologies and is part of a wider effort to engage with Open source communities.

 

</p>

Produces the following output:

<p>I've been invited to participate in a <a onclick="window.open(this.href); return false;" title="Microsoft" href="http://www.microsoft.com/">Microsoft</a> initiative in
which they will sponsor the development of some packages for
<a onclick="window.open(this.href); return false;" title="Umbraco - The friendly CMS" href="http://www.umbraco.org/">Umbraco</a>. These packages will showcase <a onclick="window.open(this.href); return false;" title="Microsoft" href="http://www.microsoft.com/">Microsoft</a> technologies and is
part of a wider effort to engage with Open source communities.</p>

Given the following config:

<?xml version="1.0" encoding="utf-8"?>
<Configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <Links>
    <Href>http://www.umbraco.org/</Href>
    <Phrases>
      <Value>Umbraco</Value>
    </Phrases>
    <LinkAttributes>
      <Name>target</Name>
      <Value>_blank</Value>
    </LinkAttributes>
    <LinkAttributes>
      <Name>title</Name>
      <Value>Umbraco - The Friendly CMS</Value>
    </LinkAttributes>
  </Links>
  <Links>
    <Href>http://www.microsoft.com</Href>
    <Phrases>
      <Value>Microsoft</Value>
    </Phrases>
    <LinkAttributes>
      <Name>target</Name>
      <Value>_blank</Value>
    </LinkAttributes>
    <LinkAttributes>
      <Name>title</Name>
      <Value>Microsoft Corporation</Value>
    </LinkAttributes>
  </Links>

</Configuration>

Screenshots

Package Files

Package discussions

Bug Reports
11 topics, 40 posts
Report any issues here
May 6, 2013 @ 06:15 by Eran Meir
Feature suggestions
1 topics, 4 posts
Suggest any enhancements here
June 15, 2011 @ 12:43 by hetaurhet
Misc
0 topics, 0 posts
Miscellaneous questions, discussion etc