how to show selected content picker name or it's property name in Content node list view for child items
Hi
This is Rohan Dave.
I am showing List view in Umbraco backoffice Content for some specific Content node.
Ex.
1) I have "Team" as root document type with "List view enable" for child items. Underneath it i have "Team Details" documnet type which is child document with "Team Name" as property. From "Content -> Team" and i have added 3 teams in it and showing ok in List view.
2) Now i have another document type "Team Leaders" is root type with "List View enable" for child items. Underneath it i have "Team Leader Details" document type which is child document with "Team Leader Name" as textControl property and "Team" as Content Picker. So i can select team against each leader.
Up to this all working ok.
Now for "Team Leaders" listview i need to show "Team" name as well but right now it's showing blank or "umb://document" etc. I want to show Team name in list view. See the attached screen shot for reference.
I forgot to mention. This teamName property is a label. use it in the listview. Only problem with using this approach and when the team name is updated. you would also need to update the column.
Create a new property with the name "Team Name" and alias "teamName" with data type Label. Add this column in the listview. Every time you save content, the saving method will add the name of the content picker
how to show selected content picker name or it's property name in Content node list view for child items
Hi
This is Rohan Dave.
I am showing List view in Umbraco backoffice Content for some specific Content node.
Ex. 1) I have "Team" as root document type with "List view enable" for child items. Underneath it i have "Team Details" documnet type which is child document with "Team Name" as property. From "Content -> Team" and i have added 3 teams in it and showing ok in List view.
2) Now i have another document type "Team Leaders" is root type with "List View enable" for child items. Underneath it i have "Team Leader Details" document type which is child document with "Team Leader Name" as textControl property and "Team" as Content Picker. So i can select team against each leader. Up to this all working ok.
Now for "Team Leaders" listview i need to show "Team" name as well but right now it's showing blank or "umb://document" etc. I want to show Team name in list view. See the attached screen shot for reference.
Any help would be appreciated. !
thanks in advance ! rohan
@Rohan, did you have any luck with this? I have the exact same need.
Hi Jim
No i didn't find the way.
If you come across any solution then please share with me.
Thanks, Rohan
you can do this in the contentservice saving.
https://our.umbraco.org/Documentation/Reference/Events/ContentService-Events
Hi
thanks for information.
i will check with the way you mentioned.
thanks,
rohan
I forgot to mention. This teamName property is a label. use it in the listview. Only problem with using this approach and when the team name is updated. you would also need to update the column.
UPDATE
An alternative is to make your own listview
https://24days.in/umbraco-cms/2016/custom-list-view-layouts/
Thanks Marcio - Sorry for the late reply.
I've implemented a custom list view, but I don't see a way to get the name of the content item though. How can that be done?
Hi,
Create a new property with the name "Team Name" and alias "teamName" with data type Label. Add this column in the listview. Every time you save content, the saving method will add the name of the content picker
Hi,
I know this is an old post, but for people who are still looking for an answer. In Umbraco 8 you can do this with a column template:
Some documentation: https://our.umbraco.com/Documentation/Fundamentals/Backoffice/Property-Editors/Built-in-Property-Editors/Listview/
Cheers, Dennis
is working on a reply...