We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20477
    • 25 Posts
    Sorry for cross postings -

    Ditto will not summarise by blog posts! Here’s what I have on the listings page:

    [!Ditto? &startID=`1` &summarize=`10` &total=`20` &tpl=`BlogTemplate`!]

    And here’s the relevant part of the blog template:
    <p>Summary: [+summary+]</p>

    But the output is blank: (quoted from source):
    <p>Summary: </p>

    Unfortunately I am working on this for a friend so don’t currently know specifics of the server, it’s apache on linux with php 4 I think, and MySQL. If this will really help I could find out?
      • 18397
      • 3,250 Posts
      You need to add &extenders=`summary` to use the summary placeholder.
        • 32283
        • 17 Posts
        Glad I just found this fix... could I suggest you add a note to this effect on the ditto documentation page?
        http://modxcms.com/ditto_documentation.html

        It explains how you can start with this template:
        <div class="ditto_summaryPost">
        <h3><a href="[~[+id+]~]">[+title+]</a></h3>
        <div>[+summary+]</div>
        <p>[+link+]</p>
        <div style="text-align:right;">by <strong>[+author+]</strong> on [+date+]</div>
        </div>

        and customize it to your liking, but it doesn’t mention that the summary won’t actually print unless you add the "extenders" thing to the ditto call.

        I’m sure perhaps modx experts would understand the need for this "extenders" call, but to the new modx user, it isn’t intuitive at all.

        Thanks!
          • 18397
          • 3,250 Posts
          That is a deprecated documentation page per:

          This version has been deprecated. See Ditto 2.