Hello,
when I’m getting an archive list of my older documents, the categories (years) and sub-categories (months) have a link - clicking on those links doesn’t do anything other than refreshing the page I guess - Am I missing something here - what’s the purpose of those links and how do I use them.
thank you for your help
You need to set &targetID to any MODx document with a Ditto call setup with extenders=`dateFilter` and make sure both have the same &id set.
These links will then only show documents created in that timeframe on that page.
You would have a Reflect call like so [!Reflect? &id=`myDittoCall`&targetID=`#`&dittoSnippetParameters=`startID:x` where # is the ID of the page with this content:
[!Ditto? &startID=`x` &summarize=`all` &id=`myDittoCall` &extenders=`dateFilter`!]
You would need to set the startID "x" to be the same on both.
Could you copy and paste both your calls?
Oh, I forgot on the reflect call you need to add &getDocuments=`1`
Reflect generates its own dates locally without using Ditto. You would need to set the locale in the Reflect snippet.