I’m currently building custom block types, I would like to add a simple button, but with an option in blueprint to select internal, listed pages to be linked. Now the blueprint part for that custom block looks like this:
button:
name: Button mit interner Verlinkung
icon: bolt
label: "{{ text }}"
fields:
link:
label: Bitte wählen Sie eine Seite
type: select
query: site.pages.published
...
text:
type: text
Unfortunately I’m not the brightest about php and querying, the query above shows only first level pages published but not the all, second would be that a “linkable” format to echo it in the template? (probably not? )
Do you mean something like that? Then it makes the most sense to work with the when condition in the Blueprints. As Sonja already mentioned, a Pages field makes the most sense for the pages.