Custom Breadcrumb Entry

While playing with plugins I got stuck in creating a breadcrumb entry for my plugin dashboard page. I know I’m able to pass a $site-Object or$page-Object to the screen-Method. This renders properly. But only for existing pages…

How do I define a custom entry to the panel breadcrumb bar using screen?

Note: My plugin dashboard page has its own view and form.

use Kirby\Panel\Controllers\Base;

class PluginController extends Base {
  public function index()
        $site = panel()->site();

        return $this->screen('dashboard', $site, [
            'site' => $site

Check out this example:


Yeah, that worked. Thanks!

I guess there is no public API, right?

That’s correct (and some more characters).