We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27498
    • 7 Posts
    I had a wonder about how could ditto show the publication date instead of the creation date, well this issue i fixed it using this code in the ditto call.
    &dateSource=`pub_date` &dateFormat=`%b %d, %Y`


    Well now what i want, is to show an archive of all the news i have published im having the same issue as before, this is that y think reflect snippet is using the creation date instead of the publication date, i’ve seen, there is the possibility of passing ditto parameters in the reflect call, but i havent been able to fix it.

    Any Ideas?.

    Thankyou, i will try to help in the forum as much as i can, im new in modx, so my knowledge is not that big.. wink

    Thanks!
      • 27498
      • 7 Posts
      any ideas?
        • 36592
        • 970 Posts
        Try something like this ...


        [[Reflect? &id=`blog` &getDocuments=`1` &dittoSnippetParameters=`parents:2|sortBy:pub_date` &showItems=`0` &dateSource=`pub_date` &monthSortDir=`DESC` &tplMonth=`reflect_month_tpl`]]
          • 30541
          • 3 Posts
          Thanks for the post. This is exactly what I was looking for. Need to group/sort Reflect by published date. Thanks again.