These virtual sub-overview-pages render a list of subpages filtered by a select field – like biomes/forests or biomes/beaches. Where forests or beaches are options in a select field on each subpage inside the biomes-page. The virtual sub-overview-page has an intro text like “Forests and beaches are cool”.
So my goal is: if somebody types “forests” or “cool” to have the search results list the corresponding overview-page(s) like biomes/forests etc.
No, Kirby’s search doesn’t know anything of your routes and what they return. Although it seems that these subpages do actually exist and are only rendered with the parent template? Don’t quite get your structure without an example…
The search function does, however, find “real” virtual pages, i.e. those declared via a page model.
The following is the navigation with three nav items:
When you click on one of the three nav items it redirects to a virtual page where all of the, for example, publications are listed – that means that every nav item has an overview-page:
So I want to achieve the following:
If the search keyword is part of the results description text (see panel field), the search results should show links to the three virtual overview-pages Publications, Media, Presentations.
and trying to get the search result’s parent page’s color field contents. (Like in case the search result is a subpage of the page with the color field.)
However <?= $result()->parent()->color() ?> does not really work. $result is the resulting value of a foreach loop.