I have a list of press items added to my Modx site. They are all listed in the order of the date they were published. However, I also have a press archive where you can see all the press items from a certain year. I’m not sure how to use Ditto to firstly generate a link for each year there are press items for (i.e. I have press items from 2004 - 2007, I want a to dynamically generate the links for ’Press from 2004’ and ’Press from 2005’ etc...). Then, when someone clicks the link, I want to filter the ditto pages so that they only see press items from that year.
I’m really not sure how to go about doing this, so any pointers in the right direction would be much appreciated.
Good news is, you don’t need to do anything except learn how to use the Reflect snippet, Ditto’s little brother which handles archives exactly how you want them. Reflect is bundled with MODx btw
Doc :
http://ditto.modxcms.com/files/snippet-reflect-php.html
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id
Great, thanks, I really appreciate the help!