I have a page with subpages that use varying templates:
content/a/page.txt content/a/a/subpage_type1.txt content/a/b/subpage_type1.txt content/a/c/subpage_type2.txt content/a/d/subpage_type1.txt content/a/e/subpage_type3.txt content/a/f/subpage_type3.txt
In my blueprint I’d like to provide a select field that renders the actually used template names of the subpages into its options. So, if a page only has subpages of type 1+2, only those appear in the select field; if a page has three types of subpages, all three appear:
subpage_type1 subpage_type2 subpage_type3
pluck would allow me to create a select field that lists all values in use in some field within the content files (e.g. for tags). But how do I get something similar that returns all template names in a collection of pages?