In a static publishing solution we have a magazine with a page for a Month / Year and currently at publish time, the index page gets a list of all the other Pages in the same Structure Group. Works well.
Now, when moving to DXA 2.0, we need the same functionality. Some ideas are to update the Component content (move the existing Date field to MetaData or create 2 new Keyword fields - one for Month, one for Year) and then mark the ComponentTemplate as a Dynamic CT, and publish the Pages again, and now the (Dynamic) Component Presentations would exist in the Broker with Queryable Metadata.
We could also 'hack' the Page JSON and push there the list of Magazine Articles for the month, and the info would be there for the frontend.
Another idea is to write a script and add the Component Presentations of the article items to the Magazine Issue Index Page, and then they're available at the frontend in DXA.
However, is there another way to closely follow the existing static solution and also query in the frontend, and not require the above changes? I understand how we can publish the URL of the Magazine Issue Index page as a JSON property. But, what about getting the list of other Pages in the same directory structure? I am not familiar enough yet with the new Model Service in DXA 2.0 and if it would support such a query. Ideas?