We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20232
    • 4 Posts
    I would like to create archive lists by selecting a month and year.
    i.e. the user could click on a link which passes the year and month in the URL and the ditto snippet call would take these 2 parameters and just display the articles in that specific month/year using the ’createdon’ datestamp of the articles.

    By browsing the forums I spotted reference to a snippet called ’Reflect’ which might be the route to take, but cannot find any examples of how it is used, or where to download it form.

    Does anyone have any ideas? huh

    thanks
      • 18397
      • 3,250 Posts
      Take a look at the demo content in 0.9.6 for a great example.
        • 20232
        • 4 Posts
        Thanks for the quick reply Mark, what demo code are you referring to?

        I’ve just downloaded version 2.0 - am I going down the right path?

        Do you have an example of a ditto call which takes a year and month as input parameters and outputs an archive list of all the articles just in that month?
          • 25663 MODX Staff
          • 12,272 Posts
          Demo content means the 096 RC1 preview posted at http://modxcms.com/beta.html
            Ryan Thrash, MODX Co-Founder
            Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me