I am struggling with the following problem.( Modx Revo) How to create an "Archivist" style menu for explicit docs(template) in a big tree under one parent. (but without child links of each doc)
The scenario is the following:
- I have a doc parent 4 levels deep. Under the last folder level I have a page with its own template e.g. "event".
- this page has custom TV - date, e.g. the event start on month X, year Y. This is not related to published date. The doc is already published. This like a calendar of events in the future.
I want to construct a menu that filters the complete tree, extracts the month and year of only published docs with template id (only) and returns the followng:
<ul>
<li><a href="calendar.html?date=201209">Sept 2012</a></li>
<li><a href="calendar.html?date=201210">Oct 2012</a></li>
...
<li><a href="calendar.html?date=YYYYXX">Month Year</a></li>
</ul>
Every click of a link should return a list with getresources the relevant pages that begin in month XX on year YYYY.
When a event goes unpublished and there are no other events in month X, year y, the menu <li> item should disappear as well
Any ideas?