MODX EXTRA

getLinksFromHtml

Creator: Bruno Perner (bruno17)

Download (18 KB)

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 5, 2014
Supported Versions
2.2 – 2.2
Downloads
1,002
License
GPLv2

New in getLinksFromHtml 1.0.1

Version 1.0.1

=======

Add missing snippet

More

Previous Versions

1.0.0-pl
February 5, 2014
2.2 – 2.2
More

More from Bruno Perner

MI

MIGX

MIGX (multiItemsGridTv for modx) is a custom-tv-input-type for adding…

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…