Plugin

EE 1
EE 2
Hop Inject

Developer

Hop Studios

3rd Party (Free)


Compatibility

Requirements

  • jQuery for the Control Panel

Tags

Hop Inject lets you take a big set of paragraphs or other content, and specify where a content injection should occur (such as, “on paragraph tags”); it lets you specify which of those separators should get the injection (for example, “the third and the eighth”); and it lets you specify what the injection should be. It also lets you choose whether the injection should occur before or after the separator. Think: adding images or ads into body text automatically!

We developed Hop Inject to solve a very specific problem: We wanted to place advertisement blocks after the 3rd (or 8th, or 3rd AND 8th) paragraph on a page.  But, the paragraphs were all in one custom field of an entry, and were being rendered dynamically at request time. We needed to be able to break apart the field, and dynamically assign new content into that text.

This is similar in functionality to LG Replace but has a different (and in some ways more flexible) method of inserting the new content.

Hop Inject Links

This entry was last updated December 6, 2011, 10:53 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!

2 Reviews:

Todd D. 12.14.11

Todd D.

54321

Very nice add-on. Works great and I’m using EE 2.3.1 One cool use for Hop Inject is to insert pull quotes into your articles.

citizencage1 03.25.11

54321

really cool plugin; solves the issue of how to inject paid links, other forms of advertising into the body of a content entry.