MODX EXTRA

getImagesFromHtml

Creator: Bruno Perner (bruno17)

1.0.0-pl (19 KB) Other Versions

About getImagesFromHtml

getImagesFromHtml can be used as an outputFilter for MODX - Revolution to extract one or more images from html.

This is usefull to get images for example added by richtexteditors like Redactor or tinyMCE from a field or TV.

Examples

get first image-src from content:

[[*content:getImagesFromHtml=`1`]]

together with pthumb or phpthumbof:

[[*content:getImagesFromHtml=`1`:phpthumbof=`w=200`]]

get all images with width and high - information (if specified within html) as json-array

[[*content:getImagesFromHtml]]

result used with getImageList by MIGX - package

[[getImageList?  &value=`[[*content:getImagesFromHtml]]`   &tpl=`imageTpl`]]

placeholder availiable in tpl-chunk:

[[+image]][[+w]][[+h]]

Information

Released
January 29, 2014
Supported Versions
2.2 – 2.4
Supported Database
Downloads
1,173
License
GPLv2

New in getImagesFromHtml 1.0.0

Initial content

More

Current Releases

1.0.0-pl
January 29, 2014
2.2 – 2.4
More

More from Bruno Perner

MI

MIGX

CRUD generator to manage any kind of items in a TV or CMP

mi

migxCalendars

migxCalendars is a Date-Management-Extra for MODX Revolution.It is…

LF

getLinksFromHtml

getLinksFromHtml can be used as an outputFilter for MODX - Revolution…

ML

migxMultiLang

migxMultiLang is a simple to use Multi - Language - Solution for…