FR: asset status #9100
Replies: 2 comments 5 replies
-
I recently came to the same conclusion that an enabled / disabled status for assets could be a good idea. It may also solve some problems with the idea of trashed assets. A disabled status would allow authors the ability to "remove an asset from publication" without deleting the actual file. Users could be granted the "disable asset" permission, but not the "Delete asset" permission. Which could make asset manager safer by allowing users to upbublish assets without performing destructive actions. The "Delete asset" function could be changed to offer users several options:
Currently, the only option to "unpublish" an asset is trashing it. This workflow is similar to trashing an entry. UNLIKE trashing an entry, trashing an asset is not a soft delete - the file can't be recovered. Users who assume these two systems work the same way could easily wind up permanently deleting important files. Adding the option to disable assets means you could remove the idea of asset trashing, and avoid this confusion. |
Beta Was this translation helpful? Give feedback.
-
My worry with "disabling" assets is that authors might expect that the actual file for a "disabled" asset will be inaccessible, which is not the case. This could create some really unfortunate situations. |
Beta Was this translation helpful? Give feedback.
-
My client would like to be able to disable assets without deleting them. Seems like a reasonable request. This would work exactly the same way as entry statuses do.
I don't think Craft necessarily needs to concern itself with the fact that a disabled asset is still accessible via its URL, but at least it should exclude disabled assets from being returned by calls to
craft.assets
. Though if there were a way that you could also disable direct access that would be a good bonus.Beta Was this translation helpful? Give feedback.
All reactions