We’re trying to create a pages section that lists all pages in a specific folder and allows you to add new pages in that folder. For example:
As far as I can tell, the only way to do that is to create an index page in the
example folder and use that as the
parent option in the pages section. However, we don’t need that index page and it has no purpose for this use-case. Is there a way to make a pages section look into a particular folder and add new pages to that folder?
On a related note, we’re looking at ways to create an index page with related child pages. For example, a team page with multiple person pages inside it. For this, we would need a persons section that is relative to the current team page where the section is placed. So if I’m on
team-one/team.txt, adding a new person in the persons section should put it in the
team-one folder. But if I’m viewing
team-two/team.txt, a new person should go into that folder.
How can we specify the
parent parameter for the pages section to use the current page the section is placed on?