rasteiner / k3-pagesdisplay-section

K3 plugin: display any page list in a section. Any parent, many parents, filtered, don't care.
Other
45 stars 8 forks source link

Feature request, no controls #13

Closed plagasul closed 2 years ago

plagasul commented 2 years ago

Hello,

When using pagesdisplay, the list of pages include controls for visibility and others.

I'd like to be able to not show these controls at times, to make it clear that this is just a non-interactive display.

It may be confusing for people to not be able to sort or add, but be able to change visibility. In particular in combination with a pages field:

image

... in the pages field you can sort, add and remove, but not change visibility and no contextual menu with other options as in pagesdisplay. Conceptually it may be incoherent, if it is for display, it is for display...

...or we may want to make it so at least, thus the petition to be able to hide those controls if possible.

Thanks

rasteiner commented 2 years ago

I agree :)

you might want to check out the feat/controls branch, and either disable the controls via the new controls: false option or only show the status flag via controls: flag and let me know if it works for you.

rasteiner commented 2 years ago

From the proposed docs:


Disable Controls

In addition to leaving the controls (the status flag and the options dropdown) visible - the default, it's possible to either hide them completely or show only the status flag.

To completely hide the controls:

sections:
  mysection:
    headline: Siblings
    type: pagesdisplay
    query: page.siblings(false)
    controls: false

To show only the status flag:

sections:
  mysection:
    headline: Siblings
    type: pagesdisplay
    query: page.siblings(false)
    controls: flag
plagasul commented 2 years ago

Hello, After using the branch for a while, I've experienced no problems at all. Cheers,

rasteiner commented 2 years ago

Perfect, thanks :)

plagasul commented 2 years ago

Thanks to you