We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18206
    • 59 Posts
    Maybe I’m just daft, but I’ve searched the forum for ’strip tags’, ’remove html’ and so on. Found nothing.
    I have a sidebar with a Ditto-call that shows the 5 latest news in a news archive. I use the [+summary+] placeholder and want to display the 5 first words of each retrieved article. However, if the article contains any formatting this will show as well, potentially disturbing the natural flow. How do I get rid of them?
      • 16278
      • 928 Posts
      Would [+summary:notags+] be what you need?
      http://wiki.modxcms.com/index.php/PHx#notags
      smiley KP
        • 18206
        • 59 Posts
        Thanks, that sounds exactly like what I need!
        On the same note, I’m currently trying to build a plugin that gives the option to create an intro text from the page’s content. I’ll see what I can come up with, at the moment I’m stuck trying to add a tick-box under the introtext area..
          • 3749
          • 24,544 Posts
          If you have Rich Text on, TinyMCE might be "entifying" your tags (e.g. changing ’<’ to ’&lt;’). Uncheck the Rich Text box, save, and reload the document to see if this is happening.
            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting