Autolink plugin?

Creating and modifying plugins.
Post Reply
pgtaboada
Posts: 2
Joined: Mon Oct 23, 2006 11:19 am

Autolink plugin?

Post by pgtaboada »

Hi,

is there any autolink plugin? It would work similarly to the glossary plugin, but instead I need it to link to an url instead of creating a popup window.

brgds,

Papick
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Autolink plugin?

Post by garvinhicking »

Hi!

What's an autolink?

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
pgtaboada
Posts: 2
Joined: Mon Oct 23, 2006 11:19 am

Post by pgtaboada »

I think I read this name "autolink" in some CMS I tried in the past. It was a very niec feature: I could manage a list of words/ urls, something like

java -> http://java.sun.com
oio -> http://www.oio.de

and so on. So, every time I hat the word java or oio in my content they would automatically be linked to the urls.

Would be nice to have it in s9y.

brgds,

Papick
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Ah. For that we have a generic "Content-Rewrite" plugin. This forum contains some postings about how to use it.

There you can configured a pattern like

Code: Select all

<a href="{to}">{from}</a>
and then set up specific keys with title and description, like:

Title: Java
Description: http://www.java.com/

Then the links will also be converted.

This plugin actually was a precedessor to the glossary plugin; the glossary plugin is more specific and easier to setup, whereas the contentrewrite plugin is more generic and can be bent to serve multiple automatic replacement techniques.

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply