EE 1
EE 2
Target _blank

Developer

Laisvunas

3rd Party (Commercial)
Current Version: 1.1.1

License Agreement

Buy Now!

$12.00
Qty:

Compatibility

If an item is crossed out, it might be untested, not applicable or incompatible. Contact the developer to be sure.

  • Updater
  • Multi Site Manager
  • Stand Alone Entry Form
  • Low Variables
  • Content Elements
  • Better Workflow
  • Matrix
  • Grid
  • Webservice
  • Publisher

Requirements

  • jQuery for the Control Panel

Add-On Type(s)

Plugin

Tags

Sets target="_blank" for any link that is not in the domain of the site_url value. Works even for links inside content loaded by AJAX.

PARAMETERS

1) wrapper_id - optional. Allows you to define HTML id attribute of the element which contains links.
You can define several ids by using pipe character.

2) wrapper_class - optional. Allows you to define HTML class attribute of the element which contains links.
You can define several classes by using pipe character.

USAGE

Put exp:target_blank tag anywhere on the page.

To set target=“_blank” in the document’s body for any link that is not in the domain of the site_url value:

{exp:target_blank}

To set target=“_blank” in the element having attribute id=“content” for any link that is not in the domain of the site_url value:

{exp:target_blank wrapper_id="content"}

To set target=“_blank” in the elements having attribute id=“content” and id=“sidebar” for any link that is not in the domain of the site_url value:

{exp:target_blank wrapper_id="content|sidebar"}

To set target=“_blank” in the elements having attribute class=“article” for any link that is not in the domain of the site_url value:

{exp:target_blank wrapper_class="article"}

To set target=“_blank” in the elements having attribute class=“article” or class=“comment” for any link that is not in the domain of the site_url value:

{exp:target_blank wrapper_class="article|comment"}

This entry was created November 1, 2012, 10:43 am.
This entry was last updated March 2, 2013, 7:54 am.

Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. 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, commercial or free 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!