Blueprint field depending on position in panel possible?

Hi everyone,
is it possible to show a blueprint field depending where I am in navigation in panel if both pages use the same template?

Example:
page: www.domain.com/1st-level
field “xyz” is shown

page: www.domain.com/1st-level/2nd-level
field “xyz” is not shown

Thanks in advance for your answers

Not out of the box. You could work around this by using a hidden field that stores the level of the page ($page->depth()) via a hook or a page model, then use when with the value of that field.

https://getkirby.com/docs/guide/blueprints/fields#conditional-fields

1 Like

thanks you very much. that helps :slight_smile: