In Kirby 4.0, the pages
section can now be used with a custom query
, which can be used to:
I’m trying to use the new query
option as a replacement for the k3-pagesdisplay-section plugin. But I’m missing one of its options, controls: false
, which hides the three-dots menu, and turns the section into a simple list of links to pages.
What’s the use case?
I want to encode this relationship as a pages
field in one content type, but also display that relationship as a non-editable list of pages in the other content type.
Here’s what I did:
The rasteiner/k3-pagesdisplay-section
plugin addresses this use case well. With the new query
option, the built-in pages section addresses it as well, but since it shows controls, there’s a risk of accidental deletion of content by confused editors.
It would be great if the pages
section could have an option to disable showing controls. Not as a permission (editors do have the permission to delete those pages, in my use case), but as UX option (I want to nudge editors to only delete content in the place where this content exists, i.e. in the editing page for that content or for its parent; and not in other places where the content might be referenced).
Attached: screenshots of the current setup with Kirby 3 and the k3-pagesdisplay-section
plugin (right-hand column), and of a tentative setup with Kirby 4 and a pages
section with query
option (right-hand column).
Alternative solutions:
k3-pagesdisplay-section
plugin for Kirby 4).exhibit.txt
or artist.txt
file), and offers dedicated relationships UI fields that can be used to edit those relationships from any of the two content types in the relationship.I have the exact same problem with the same kind of many-to-many relationships.