ContentVampire
contentvampire
About
A WYSIWYG is a black hole of content. Images, files and links added to a rich text editor by your site editors are traditionally very hard to work with programmatically -- until now!
Whenever a page is saved, ContentVampire scans through the page's content section, finds all image and link tags in the HTML, and then compiles all of those tags' attributes into a structured JSON string. The JSON string is then saved to the "vampireValues" template variable, making it very easy to programmatically work with your site editors' content (think image galleries, file lists, etc.).
For example, a page containing a single placekitten image, and a link to icanhazcheezburger.com, would be saved to a TV like this:
{"images":[{"iteration":0,"src":"http:\/\/placekitten.com\/g\/200\/300","alt":"Placekitten","title":"This is a cat"}],"links":[{"iteration":0,"href":"http:\/\/www.icanhazcheezburger.com","target":"_blank","name":null,"title":"I Can Haz Cheezburger!"}]}
This is the initial release (and my first plugin attempt, so be gentle). Future versions will include support for scanning Rich Text TVs, too.
Installation & usage
At a glance
MODX 3 compatibility unknown. Based on our testing and community reports where available.
- Developer aladage
- Latest release June 19, 2012 (14 years ago)
- First seen in SiteDash June 7, 2012 (14 years ago)
- License GPLv2
- MODX support 2.2 – 2.2
- Databases MySQL
| Changelog | |||
|---|---|---|---|
| MODX.com |
1.0.0-beta1 |
June 19, 2012
14 years ago |
|
|
<p>1.0.1beta: updated description. Nobody had a clue what the hell this plugin did ;-)</p><p>1.0.0beta: Initial release</p>
|
|||
|
No matching releases. |
|||