-
Type: New Feature
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 73.10
-
Component/s: Page Providers
-
Epic Link:
-
Backlog priority:700
-
Sprint:NOS 10.1.5, NOS 10.1.6, NOS 10.2.1
-
Story Points:5
ecm:isTrashed = 0 is the new canonical way of checking for trashed documents (NXP-24033), replacing ecm:currentLifeCycleState <> 'deleted'.
The latter will still be maintained for a long time, but it would nevertheless be good for Studio to generate ecm:isTrashed = 0 everywhere when using a target platform 10.x.
TODO
For TP 10.1+
Modeler
Content Views (JSF UI) / Page Providers / Default Search (JSF UI) / Virtual Navigations (JSF UI)
- Update the default query used for new content views / pps to:
ecm:mixinType != 'HiddenInNavigation' AND ecm:isVersion = 0 AND ecm:isTrashed = 0
- For existing content views / pps, display a warning when ecm:currentLifeCycleState [<> != or another operator] [' or "]deleted[' or "] is used in the query (this whole expression, ecm:currentLifeCycleState is still valid by itself):
Using ecm:currentLifeCycleState to query documents put in the trash is now deprecated in favor of the ecm:isTrashed predicate. If your documents use the default life cycle, you should update your query.
- Suggest ecm:isTrashed in the query
- Add the ecm:isTrashed option in default sort
- Add the ecm:isTrashed option in predicates