Enhance media picker property in standard listview layouts #10960
bjarnef
started this conversation in
Features and ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Based on Umbraco v8.15.1
When including an Image property in listview layout, which either use legacy media picker or the new media picker (aka v3) it doesn't look great in grid and list layouts.
Currently it is required to include the Image property to be available in a custom listview layout.
Controller
View:
It use this part to work with both the legacy and new media picker.
It would be great to get more granular control over data for specific layouts. Or at least the standard listview layouts could present the data a bit nicer for various pickers, e.g. Content Picker, MTNP, Media Picker, Member Picker, User Picker etc.
As a start simply node name would be great.
For some pickers we can use the label expression
{{ value | ncNodeName }}
when the picked node is a content node. It tried with{{ value[0].mediaKey | ncNodeName }}
which almost work, but not quite as the filter lookup theDocument
as the key in this case isn't includingumb://media/
, but just a Guid.Umbraco-CMS/src/Umbraco.Web.UI.Client/src/common/filters/nestedcontent.filter.js
Lines 49 to 59 in d428a45
Beta Was this translation helpful? Give feedback.
All reactions