PlaidWeb / Publ

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

Public means of including hidden entries in a view #547

Open fluffy-critter opened 1 year ago

fluffy-critter commented 1 year ago

Expected Behavior

view.entries(hidden=True) should include entries with HIDDEN status

Current Behavior

There is no such option. There is an internal flag, _all, which does more or less the same, but that also includes future and deleted entries, which isn't ideal.

Possible Solution

Add an appropriate thing to queries.build_query

Steps to Reproduce (for bugs)

1. 2. 3. 4.

Context

It is useful to have hidden attachments that are still visible to templates, without having to do is_attached=False everywhere.