We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 21112
    • 156 Posts
    Hi, I need some assistance with what *should* be a simple matter.

    I’m using Ditto to display a summary of and link to the "most recent" article elsewhere in the site on the front page. I’m using [+summary+] to do this, and everything else is working, except the "read more" link isn’t being generated. I’ve used this before on another site, and it worked fine there, so I’m stumped as to what I’ve done differently here. I’ve read through the docs and the forums, and I seem to be doing everything right.

    Here’s the relevent bits of code:

    The ditto call:
    [[Ditto? &tpl=`dittofront` &parents=`18` &display=`1` &depth=`5` &extenders=`summary` &truncText=`Read more` &tplTrunc=`readmore` &truncOffset=`30`]]


    The dittofront template:
        <div class="ditto_item" id="ditto_item_[+id+]">
            <p class="ditto_pageTitle"><strong>[+pagetitle+]</strong><br /><em>[+description+]</em></p>
            <div class="ditto_introText">[+summary+]</div>
        </div>


    The readmore template:
    <a href="[+url+]">[+link+]</a>


    The page where the output is displayed:
    http://ywasg.com/

    Can anyone see where I’m going wrong? Any help gratefully appreciated.
    Thank you!

    ModX version: 0.9.6
    Ditto version: 2.0.2
      • 18397
      • 3,250 Posts
      Try Ditto 2.1 Beta 2.