Can we detect if a logged in user is browsing pages in the panel?

The question is in the title.

I have overrided a page method (children()) with a page model but I would like to override this method only when the user is browsing pages in the panel.

Check the Url path?

Get the page url path as a string and check if the word “panel” is present in the string …

That’s what you were thinking about?

Yes, if the path starts with panel, I have no better idea. In Kirby 2 we could check for the panel()function , but inKirby 3 there is nothing like that, I think.

I use this and it seems to works :slight_smile: Thanks for the idea!

is_int( strpos( $child->url() , 'panel' ) )