We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30634
    • 13 Posts
    Hi, i`m using jquery and accordion function and was curiouse if it`s possibile to edit ditto blog entry so it has for example <h2> as a title and resti is <p> ?

    Was searching a bit and found only rdy snippets so it was dropdown. Also i`m up to use other module for news.
      http://www.belardesign.com/"" target="_blank" rel="nofollow">Belar Design - web design portfolio, blog with MODx tuts and much more...
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Create a chunk with the HTML that you want for each entry, using placeholders for the actual content:
      <h2>[+pagetitle+]</h2>
      <p>[*introtext+]</p>

      Then in your Ditto call, specify the chunk name as the value for the tpl parameter:
      [[Ditto? &parents=`42` &tpl=`chunkName`]]
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 30634
        • 13 Posts
        Thank you for reply. I made some modyfications and it works wonderfully.
          http://www.belardesign.com/"" target="_blank" rel="nofollow">Belar Design - web design portfolio, blog with MODx tuts and much more...