We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 13284
    • 95 Posts
    Hello everyone,

    I have a few tweaks that I need help with or to see if it’s possible.

    Test website: http://www.tapanime.com/cms/index.php

    1.) I can’t get sortting done right. I’ve tried &sortBy using ID, menuindex and &sortDir both ASC and DESC neither worked at all. I’m using Ditto 1.0.2 Did I use it wrong ASC? If you check out the site you see my 2nd test post is after the first and it should be before it is what I’m trying to do.

    2.) Is there a way to change the Read more... to something like my RSS feed? Like [ More ].

    3.) I think this last one is me. Is there a way to get the Read more.... behind the summary?

    Here is my coding:

    Ditto Call
    [!Ditto? &startID=`19` &tpl=`DittoTemplate` &summarize=`5` &paginate=`1`!]


    Template
    <div class="ditto_summaryPost">
    <a href="[~[+id+]~]">[+title+]</a> by <strong>[+author+]</strong> on [+date+]
    <div>[+summary+]</div> [+link+]</div>
    <br />


    My CSS is at:
    http://www.tapanime.com/cms/assets/templates/Animetor/animetor-4b.zip

    Webserver:
    PHP version - 4.3.11
    MySQL version - 4.1.21-standard
    Operating System and version - Linux and Apache 1.3.33

    Browser name and version - FireFox 1.5.0.7
    Operating System and version - Windows XP Home and added SP2


    Thanks to all how help
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      By default Ditto sorts by the creation date so the latest post will show first.

      The text for the read more... is in the language file. Edit that as you please.

      The location of that read more... link is determined by the placement of the placeholder [+link+] in your summary template.

        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
        • 33337
        • 3,975 Posts
        For the sorting problem, I assume you are using MODx 0.9.2.2, please check http://modxcms.com/bugs/task/512

        regards.
          Zaigham R - MODX Professional | Skype | Email | Twitter

          Digging the interwebs for #MODX gems and bringing it to you. modx.link
          • 10357
          • 573 Posts
          you can have complete control over the [+link+] placeholder by replacing it with:

          <a href="[~[+id+]~]" title="[+title+]">[ More ]</a>

          also you could use the ditto pram &truncText:

          &truncText=`[ More ]`