[EDIT]- I meant to mention that along with this plugin you will also need to turn off the :
Admin->Weblog Administration->Weblog Management->Edit Preferences->Weblog Posting Preferences-Automatically turn URLs and email addresses into links?
in order for this plugin to work correctly.
Hiya,
Another one for anyone who’s interested!
This plugin was created due to a need that Jan had over in this thread.
If you ever have users / clients entering links into fields but have no control over whether or not they are adding in the http:// bit or not then if you try to make a link with one that doesn’t have the http:// bit then you will end up with a totally messed up link as ExpressionEngine will rightly put your site link in front of it. Not very nice at all! ![]()
So that’s why I made this plugin.
Neat Link - Usage
{exp:neat_link link_title="Title for link" link_text="Yahoo.com" link="www.yahoo.com"}You can also use custom fields instead of hard-coding the values which is really what the plugin is all about!
{exp:neat_link link_title="{link_title}" link_text="{link_text}" link="{link}"}Note that the custom fields {link_title}, {link_text} and {link} all need to have their formatting set to none or this plugin will not work
Other custom parameters that you can pass to the plugin are as follows :
class=“flashy-css-style” rel=“external” id=“my-css-id”
You can specify one or all of these. None of the parameters above are required though. Obviously you probably wouldn’t use the id and class at the same time though!
Anyway hope it helps some people out.
Best wishes,
Mark
