Feather: Access parent or child items in dynamic widget views
Dynamic content widgets in Feather provide you with intuitive helper methods for working with hierarchical content types. Using these simple helper methods, you can display the parent and child items of the hierarchical content types in the widget views.
Access child items
To access the child items of dynamic content object, you use the ChildItems
helper method inside the detail templates of the widget.
This method returns a collection of the ItemViewModel
type. As a result, you can access the properties of the child items using the following code:
Access parent items
To access the parent item of dynamic content object, you use the following helper method inside the detail templates of the widget: