Just wanted to say a great big THANK YOU to @moeli, for putting this plugin together. It’s one of my ‘essential’ plugins, with functions that help us simplify the Panel, and which I believe should actually be part of the Kirby core.
Some of the ‘flashier’ plugins get all the fame, but it’s little gems like this that make Kirby such a flexible CMS that is so great to work with!
In a multi language setup the current language code is now added as classname to the k-panel element.
This allows panel styling based on the currently selected language.
It seems Kirby 3.6 is supposed to have the Panel View Extended functionality built-in as part of the core:
Trying to upgrade an old site to 3.6, however, it seems that none of the Panel View Extended blueprint options work out-of-the-box: hideSettings, hideStatus, hideOptions, hideDraftOption and most importantly singleLanguage don’t work anymore. It also seems the current version of the plugin - 3.0 - is not fully compatible with Kirby 3.6.
I’ve tried searching the Kirby Docs for a hint on what happened to the blueprint options - are they there, but have been renamed to something else, or have they not been included? - but I can’t find any mention of it. What am I overlooking?..
There are no blueprint options, I think you should be able to address almost all elements either via a class or a data attribute. The hooks from the plugin are not implemented in the core.
Does that mean that in order to use something like singleLanguage or hideSettings we’d have to setup our own plugin, with our own panel.css and/or hooks?
Depends on what you need, for Panel.css you don’t need a plugin, but yes, you have to provide the styles of course. What Kirby did is add classes and data-attributes so you can address these elements, not more, not less
@kirbyzone There is a kirby-3.6.0-beta.2 branch which should work but I do not have the time this week to finalize it and merge it into the main branch.