PlaidWeb / Publ

Flexible publishing system for the web
http://publ.beesbuzz.biz/
MIT License
40 stars 4 forks source link

entry.attachments should include hidden items by default #548

Open fluffy-critter opened 1 year ago

fluffy-critter commented 1 year ago

Expected Behavior

If an entry has attachments with status: HIDDEN they should appear in the attachment view by default.

Current Behavior

There is no official support for showing status:HIDDEN attachments from a template; see #547

Possible Solution

Set the view defaults to include hidden=True in entry.attachments (and probably entry.attached as well).

Steps to Reproduce (for bugs)

1. 2. 3. 4.

Context

If you're attaching a thing to an entry, that entry should be able to see it.

fluffy-critter commented 1 year ago

Alternate idea: should view exclude attached items by default? Then there's no need to go through wonky hiding logic for them, and both this and #547 can go away. That might make more intuitive sense.