I have a field named image
that is assigned to an entry as well as a category.
When a user edits an entry, I would like the subfolder to be named after the section.handle property.
When a user edits a category, I would like the subfolder to be named after the group.handle property.
Is there a way to achieve this? I've tried something like this:
{{ section.handle ?? group.handle }}
...but unfortunately it does not seem to work.