Accessing structure field data from within select field

I have a structure field on the homepage blueprint that creates blog article categories with a toggle for showing that category on the homepage, and the order in which they should show.

In the blueprint for each article, I’d like to be able to select which category that article belongs to. I’ve got a select field built that pulls in the data from that form field, but it shows all of the data from the structure entry. I’d like to drill down one more level to display just the name.

What’s the best way to do such a thing?

There is a plugin for that: https://github.com/CalebGrove/select-a-structure

An alternative to using the plugin are dynamic options via the JSON API: https://getkirby.com/docs/cheatsheet/panel-fields/select