MODX EXTRA

getLinksFromHtml

Creator: Bruno Perner (bruno17)

1.0.1-pl (18 KB) Other Versions

About getLinksFromHtml

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

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

Examples

get url from first link of content:

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

get text from first link of content:

[[*content:getLinksFromHtml=`1:text`]]

get all links with url and text as json-array

[[*content:getLinksFromHtml]]

result used with getImageList by MIGX - package

[[getImageList?  &value=`[[*content:getLinksFromHtml]]`   &tpl=`linkTpl`]]

placeholder availiable in tpl-chunk:

[[+url]][[+text]]

Information

Released
February 9, 2014
Supported Versions
2.2 – 2.2
Supported Database
Downloads
1,154
License
GPLv2

New in getLinksFromHtml 1.0.1

Version 1.0.1

=======

Add missing snippet

More

Current Releases

1.0.1-pl
February 9, 2014
2.2 – 2.2
More
View Deprecated Releases

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…

IF

getImagesFromHtml

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

ML

migxMultiLang

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