Kirby 3: Panel View Extended

This plugin adds css classes and features to the panel views.

Always:

  • Add more specific css classes to k-page-view

Blueprint options:

  • Set a site/page/user to single language in a multi language setup and hide language drop down
  • Hide the settings dropdown for pages in options top bar and in pages sections
  • Hide the status button in options top bar for pages and in pages sections
  • Hide the whole options top bar for pages and in pages sections
  • Hide draft option in status change dialog

https://github.com/mullema/k3-panel-view-extended

2 Likes

@texnixe @moeli should this plugin be listed in the Plugins List?

@luxlogica I added it to the plugins list

1 Like

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!

1 Like

Agreed.

1 Like

Thank you @luxlogica, I am glad it is useful for you aswell.

The latest release is now compatible with Kirby 3.2.

A new feature adds the username and it’s role to the k-panel element, which adds the possibility to adjust the panel design per user/role.


This plugin adds css classes and features to the panel views.

Always:

  • Add more specific css classes to k-page-view
  • Adds username and role as css classes to k-panel

Blueprint options:

  • In a multi language setup: Set a site/page/user to single language and hide the language drop down
  • Hide the settings dropdown for pages in the options top bar and in pages sections
  • Hide the status button in the options top bar for pages and in pages sections
  • Hide the whole options top bar for pages and in pages sections
  • Hide the draft option the in status change dialog

For Kirby 3.2.x use v2.0 and higher

For Kirby 3.0 - 3.1.x use version 1.0.4

New release v2.1.0

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.

1 Like

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 :wink:

@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.

1 Like

New release 4.0.0

This release ensures compatibility with Kirby 3.6

2 Likes