kirby icon indicating copy to clipboard operation
kirby copied to clipboard

`panel.menu`: default for `current`

Open distantnative opened this issue 7 months ago • 0 comments

To be considered/though through:

It could be more convenient to have a fallback/default for current if no specific one is defined by a custom menu entry. The default could be based on the link attribute:

               'current' => function (string $current): bool {
                    $path = App::instance()
                        ->request()
                        ->path()
                        ->toString();
                    return Str::contains($path, 'pages/texts');
                }

distantnative avatar Nov 30 '23 13:11 distantnative