On March 26, 2019 we launched new MODX Forums. Please join us at the new MODX Community Forums.
Subscribe: RSS
  • Hiiii,
    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`]]

    This question has been answered by cnrdzn. See the first response.

    • discuss.answer
      try this

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

      • 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......