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
Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.
This free lesson teaches administrators, marketers, and other business professionals how to use the Integration hub service to create automated workflows between Sitefinity and other business systems.
This free lesson teaches administrators the basics about protecting yor Sitefinity instance and its sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.
The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important