Is there a method for getting a Structure page’s position in relation to its siblings via Global Variable, etc.? I’m currently building a class management interface for a client, and instead of using Playa to create relationships to “parent” entries, I’m instead using Structure, for ease of use for the client. However, they want to take a tree such as this:
Unit Name
- Task Name
- Segment Name
- Segment Name
- Task Name
- Segment Name
- Segment Name
As a result, I want to be able to automatically add the task and segment's position in relation to its siblings, so that on the front end, I could display the following tree:
Unit Name
- Task A - Task Name
- Segment A1 - Segment Name
- Segment A2 - Segment Name
- Task B - Task Name
- Segment B1 - Segment Name
- Segment B2 - Segment Name
The line of thinking will be that the letter for the task will be converted using a string plugin, and then the Segment will use a number, appended to the Task’s letter.