You can get close using just CSS and JS, however, this would be Year->Month not Month->Year like your image. If this is acceptable, I would recommend modeling it off of the MODx manager’s upper navigation as it uses the same html list structure.
If you want it to look exactly the way you describe, you’ll need a custom snippet since Reflect is designed to work Year->Month not Month->Year. The snippet would iterate through an array of months, checking in the items array if there are any entries and if so, output the corresponding years.
Yes, you could do exactly that. Remember that it will only show the months (and years) for which you have documents and not all of the months like in your screenshot.
As for your second question: It would be a re-write of Reflect.
-
MODX Staff
- 12,272 Posts
You could do either layout with positioning in CSS, actually.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me