I want to show the structure-content via the »kirby-index-field« because there i can use the data filter.
My Problem is that the Plugin works not for the include structure in the page.
That’s why I want to extend the plugin to the structure.
The page is for a society and this is on a group-page where i can add people to the group.
I see so you want to show all information from the entries in a table. The above will work in a select field, but I don’t know if it makes sense for the index field.
Edit: It should actually work like this:
case 'structure':
$items = $page->links()->yaml();
$items = new Collection($items);
break;
While this works, it is nevertheless a pretty stupid hack because it doesn’t belong in the page options and also because you have to hardcode a field name. It would make more sense to have an additional options method “optionsFromStructure” or something like that.