I have a directory structure that looks like this:
- 1-folderA
- 1-subFolderA1
- 2-subFolderA2
- 2-folderB
- 1-subFolderB1
- 2-subFolderB2
I’m looping through the page children to build a menu like this:
<ol>
<li>
<strong>folderA</strong>
<ol>
<li><a href="subFolderA1">subFolderA1</a></li>
<li><a href="subFolderA2">subFolderA2</a></li>
</ol>
</li>
<li>
<strong>folderB</strong>
<ol>
<li><a href="subFolderB1">subFolderB1</a></li>
<li><a href="subFolderB2">subFolderB2</a></li>
</ol>
</li>
</ol>
As you can see I would like to skip the top directories from appearing inside the URL, but still be able to order them.
I though it could work with hiding the page, but hiding seems to be based only on the number prefix right now.
I did try to find an example on the kirby website that would do the same, but I did not fine one where the sub-page was accessible by it own URL.
Is there a way to build a menu like this with the given structure?
Thank you!
Tobias