We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 29246
    • 12 Posts
    Hello, I am loving ModX but I have a question about Ditto. I use the following code

    [[Ditto? &parents=`52` &display=`3` &orderBy=`createdon DESC` &tpl=`home-articles` &tplFirst=`home-headline` &extenders=`summary` &truncLen=`250`]]

    Which is working, but I have a <H1> tag and some bolded elements in the first 250 character. Can I output the Ditto content unformatted and inline?

    Thanks a lot.
      • 16278
      • 928 Posts
      If your truncated text is displayed in the [+summary+] placeholder, you could use the PHx notags modifier (http://wiki.modxcms.com/index.php/PHx#notags) to strip out all tags:
      [+summary:notags+]

      PHx functions are built in with Ditto, you don’t have to install the whole plugin.
      smiley KP