We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4749
    • 623 Posts
    I have a tpl made, but for some reason the [+summary+] is being wrapped in <p> tags. Can someone tell me why or how I can change that? Thanks.
      The MODx has you...
      Utah Web Design
      • 4310
      • 2,310 Posts
      Are you using [*introtext*] TV for the [+summary+] placeholder or using the <!-- splitter --> ?
      Maybe the summarized text is already enclosed by the <p> tags?
      I’ve just tried with no tpl set and it doesn’t wrap the summary in <p> tags.
        • 4749
        • 623 Posts
        You’re right. I just assumed that ditto would strip the html tags. Any ideas on how I could remedy that? I mean, I need the <p> tags on the article page, but not in the truncated text from the ditto call. It’s double wrapping it and putting the "Read More..." link on another line. Thanks for your help and the quick response. I still need a solution - I’ll be working on it.
          The MODx has you...
          Utah Web Design
          • 4310
          • 2,310 Posts
          You could put the required summary text in the [*introtext*] TV without the <p> tags and not use the <!-- splitter -->
          I guess that would stop the <p> tags being rendered
            • 4749
            • 623 Posts
            I can’t believe it was that easy. I was looking all over for it because I had read about it earlier, but adding :notags to the call fixed it. [+summary:notags+] it strips all the html out. Phew! Ditto rocks!
              The MODx has you...
              Utah Web Design
              • 4310
              • 2,310 Posts
              Nice one. I hadn’t seen the notags feature!