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

Respect pages with `read: false` in blueprint in `query` #5

Closed bvdputte closed 3 years ago

bvdputte commented 3 years ago

Thanks for this plugin!

I noticed when you query pages via the query prop it also returns pages where read: false has been defined in the blueprint. This let these pages show up in the pages display but results in errors when users click on them.

Could you fix? Or is there a workaround?

Thx

rasteiner commented 3 years ago

Oh, you're right! I would have expected Kirby to filter these out by default, but it seems it doesn't.

Until I fix it in the code you could try something like filtering by "isReadable":

query: site.myquerysofar.filterBy("isReadable", true)
bvdputte commented 3 years ago

Hi, I can confirm your intermediate solution works. Thx!