For every page on my site I have a folder in the MODx manager with articles. I'm using Ditto to collect the articles from a folder to generate the page content. The Ditto call is made from a page template. Now what I want is to use the same template for different pages with different articles from the corresponding folders. So the startid or parents parameter (the id of the parent folder of the articles) in the call has to be different for each page.
How do I set the startid or parents parameter in the Ditto call dynamically?
Are template variables the best way to go? And if so, how do I implement this? This must be a common issue, but I can't find a fitting answer on the internet.