G

getLinksFromHtml

By Bruno Perner (bruno17)


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]]

Bruno Perner


New in getLinksFromHtml 1.0.1

Version 1.0.1

=======

Add missing snippet

More

Information

Released
February 5, 2014
Supported Versions
2.2 – 2.2
Downloads
865
License
GPLv2

More from Bruno Perner

MIGX

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

View
M
migxCalendars

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

View
G
getImagesFromHtml

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

View
M
migxMultiLang

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

View