Reputation: 336
I'm trying to display my cities node property in listView (in umbraco backoffice). Each 'city' node hold 'country' node property (the property type is- Content Picker). In list view, if i choose 'Columns Displayed' of type country, i'm getting the country node id, and if i'm choose 'Columns Displayed' of type CountryName (i have this prop in country node..) i'm getting an empty column.
Any Ideas how to get the country name (or any other property in related object) ???
Upvotes: 2
Views: 1364
Reputation: 336
A good way that i found is to add 'property index' to the node and then i can show him.
in the "GatheringNodeData" override function i take the node (in my case it's city) and add him the country name
e.Fields.Add("countryName",oNode.Parent.GetProperty("Name").Value.ToString());
Next i can just call to the property "countryName" in city.
I'm Hope it's helps others
Upvotes: 1