IMPORTANT: This version of Sitefinity CMS is out of support and the respective product documentation is no longer maintained and can be outdated. Use the version selector to view a supported product version.
When you have multiple dynamic content types, you can create various structures and offer filtering according to parent type on the frontend.
EXAMPLE: Your have a dynamic module named Travelling Agency. Your hierarchy of dynamic types is Cities » Hotels. You want to filter hotels by city – when you click a City, all Hotels in this City are displayed.
true
EXAMPLE: Your have a dynamic module named Travelling Agency. Your hierarchy of dynamic types is Countries » Cities » Hotels. You want to filter Hotels by Country. Country is nor a direct parent, but a grandparent of Hotels. When you click a Country, all Hotels in this country are displayed.
Telerik.Sitefinity.DynamicTypes.Model.<DynamicModuleName>.<DynamicTypeName>
In this case,
Telerik.Sitefinity.DynamicTypes.Model.TravellingAgency.Country
NOTE: The type that you want to use for filtering must be predecessor of the filtered type.
EXAMPLE: Your have a dynamic module named Travelling Agency. Your hierarchy of dynamic types is Countries » Cities » Hotels. You want to filter Cities by Countries, Hotels by Country, and Hotels by Cities. When you click a Country, all Cities in this County are displayed and all Hotels in this country are displayed. When you click a City – the list of the Hotels in the Country are filtered by this City.
When you apply filtering in hierarchical structures, you can configure the content types to behave as filters, rather than as regular lists and details views. For example, not to open the detailed view when a parent item is clicked and also to highlight the currently selected item.
EXAMPLE: Your hierarchy of dynamic types is Cities » Hotels. When you display the list of Hotels in the city of London, you want to add a heading before the list - Listed hotels are in London city.
If you want to display information about the parent item in the list view of a child type, you can add the following template to the list template of child items. You need to add
The DynamicContentViewMaster checks, if a DynamicDetailContainer with id parentDetailContainer exists, and binds the container, if one is found.
DynamicContentViewMaster
DynamicDetailContainer
parentDetailContainer
Back To Top
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important