We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6745
    • 45 Posts
    I’ve got a website where i use my ditto in.

    this website shows blog pages posted on dates.
    on the home page will be shown the 3 latests posts and when you click on one post that post will open on a new page.

    on this new page you will see the complete post you just clicked and then you will have to see the 3 articles that come after that post.
    so if the post i am currently on is published on 21 may i want to see the posts that are posted from example 20 may , 19 may, 18 may,

    currently he will show only the latest 3 published ones. so like 21 may 22 may 23 may.
    can anyone help me with this issue and show me how i can make a nice archive on my website
      • 1122
      • 209 Posts
      On your new page (i.e. containing just-clicked full article) you should once again call ditto like this:
      [[Ditto? &parents=`...` &display=`3` &sortBy=`createdon` &sortDir=`DESC` &filter=`createdon,[+createdon+],6` &tpl=`...` ...]]
      

      It means: get three articles sorted by creation date in descending order but exclude those whose creation dates are newer or equal to creation date of the article just-being-processed (its date is represented by a placeholder [+createdon+])