We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15152
    • 360 Posts
    I’m getting a paragraph tag that surrounds my Ditto output that I would like to get rid of. It is NOT in my code and I haven’t seen this before. Can anyone help and show me where to get rid of it.

    This is the output from Ditto. I’ve highlighted the code I need to remove.
    [color=red]<p>[/color]
    
    <div class="ditto_summaryPost">
      <h3><a href="Hair-Care-and-Salon" title="Hair Care & Salon">Hair Care & Salon</a></h3>
      <p><img src="img/hair_ditto.jpg" alt="Hair Styling" />Synergy hair and scalp treatments begin with a consultation. Design cuts include shampooing ... </p>
      <p class="ditto_link"><a href="Hair-Care-and-Salon" title="Read more...">Read more...</a></p>
    </div>
    
    <div class="ditto_summaryPost">
      <h3><a href="Manicures-and-Pedicures" title="Manicures & Pedicures">Manicures & Pedicures</a></h3>
    </div>[color=red]</p>[/color]
    


    Thanks
      There are no boring projects. Only boring executions. ~ Etzkorn
      www.impress-design.com
      • 7231
      • 4,205 Posts
      If you are using ditto in a RTE textarea, the editor may be adding this automatically.
        [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

        Something is happening here, but you don&#39;t know what it is.
        Do you, Mr. Jones? - [bob dylan]
        • 15152
        • 360 Posts
        Not using the RTE. This is happening from the manager side, creating a document using HTML source code. There is something in the output from Ditto, I believe.
          There are no boring projects. Only boring executions. ~ Etzkorn
          www.impress-design.com
          • 33337
          • 3,975 Posts
          I think its coming from Ditto’s default template.
            Zaigham R - MODX Professional | Skype | Email | Twitter

            Digging the interwebs for #MODX gems and bringing it to you. modx.link
            • 15152
            • 360 Posts
            Zi

            I don’t see it in the chunk. If you want to check let me know. I’ll email you the login info.

            Thanks.
              There are no boring projects. Only boring executions. ~ Etzkorn
              www.impress-design.com
              • 33337
              • 3,975 Posts
              Nope, its not in the chunk, but you will find it inside assets/snippets/ditto/* ... cant recall exact lcoation/filename but when you will look there you will easily find it.

              Other way to overcome it, is to, create your own template in a chunk and add &tpl=`myTpl`.

              Hope this helps.
                Zaigham R - MODX Professional | Skype | Email | Twitter

                Digging the interwebs for #MODX gems and bringing it to you. modx.link
                • 15152
                • 360 Posts
                Found it Zi - thanks
                Jack
                  There are no boring projects. Only boring executions. ~ Etzkorn
                  www.impress-design.com