<![CDATA[ I need only text from the field - MODX Community Forums]]> https://forums.modx.com/thread/?thread=100995 <![CDATA[I need only text from the field]]> https://forums.modx.com/thread/100995/i-need-only-text-from-the-field#dis-post-545323 Wthen I am calling getResourceField snippet and give &field=`content` i am getting everything from that section including image. Is there any hook to exclude Images and get text only from the specified field. I cannot grab the content(text only) with no styles tags as in Wordpress to show in carousel.


[[getResourceField:ellipsis=`130`? &id=`82` &field=`content`]]
]]>
aruncyber Sep 27, 2016, 05:54 PM https://forums.modx.com/thread/100995/i-need-only-text-from-the-field#dis-post-545323
<![CDATA[Re: I need only text from the field]]> https://forums.modx.com/thread/100995/i-need-only-text-from-the-field#dis-post-545325 Quote from: cnrdzn at Sep 27, 2016, 06:07 PM
try this

[[getResourceField:striptags:ellipsis=`130`? &id=`82` &field=`content`]]

Perfect!!!! This was the thing I was looking for. Thnx cnrdzn......]]>
aruncyber Sep 27, 2016, 06:28 PM https://forums.modx.com/thread/100995/i-need-only-text-from-the-field#dis-post-545325
<![CDATA[Re: I need only text from the field (Best Answer)]]> https://forums.modx.com/thread/100995/i-need-only-text-from-the-field#dis-post-545324
[[getResourceField:striptags:ellipsis=`130`? &id=`82` &field=`content`]]

]]>
cnrdzn Sep 27, 2016, 06:07 PM https://forums.modx.com/thread/100995/i-need-only-text-from-the-field#dis-post-545324