Pages Field Search Uses Page Title Instead of "text" Parameter

Hi Sonja! Thank you for your reply and for looking into it – I hadn’t considered that this could possibly be a bug 🥸

I am using Kirby 3.6 as well. Here’s some more information.

Here is the blueprint:

type: pages
label: Enable
query: page.elements
text: "{{ page.matrix }}"
info: "{{ page.matrixTitle }}"
subpages: false

The “text” field in the field blueprint is set to a page model function, i.e. where “matrix” is a public function across multiple page models.

The “query” setting is being provided by page method (as described in this solution). The page method is returning a set of pages of multiple template types, in case that could be relevant.

I have also attached a second recording where I am searching based on parameters present in the “info” field, and that seems to work:
https://capture.dropbox.com/B5QVynNKmkZBVFXz

So could it be possible that this has something to do with:

  • The use of a page model for the “text” field in the blueprint, or
  • Something about the search function itself

Thank you!