EE2 Ready Add-ons »

Plugin

Link target

Developer

3rd Party (Free)


Compatibility

  • LG Addon Updater
  • Multi Site Manager
  • Stand Alone Entry Form

Requirements

  • FieldFrame
  • jQuery for the Control Panel
  • Hermes

The ‘Link Target’ plug-in helps keep your template code clean by writing all the JavaScript link parameters for you.

This is something you would usually achieve with:
<a href="http://www.site.com" target="_top">My Link Text</a>

…but that’s not valid XHTML so instead we need to do:
<a href="http://www.site.com" onClick="top.location=this.href; return false">My Link Text</a>

The ‘Link Target’ plug-in just helps to keep your template code clean by writing all the JavaScript for you. Typical usage of the plug-in is as follows:
{exp:np_linktarget url="http://www.site.com" target='top'}My Link Text{/exp:np_linktarget}

By default you have to specify a ‘url’ and ‘target’ parameter and the plug-in also optionally accepts a link ‘title’ and ‘class’. Possible ‘type’ values are ‘top’ and ‘blank’. Each mimic the link target attributes ’_top’ and ’_blank’ respectively.

Link target Links

Is this add-on incomplete?

Have we missed something? Do we need to add tags? Better description? More links?

Help Us Help You

Registered members can help contribute - comments, add-on information, developer information, and more. Registration is free and takes only a moment. Register Now!

This entry was last updated August 19, 2009, 11:20 am.

Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. Commercial add-ons are not offered for download at this site. Devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, or general popularity. Caveat EEmptor!

There are no reviews for this add-on yet.

What are you waiting for? Rate it and review it!