This page displays detailed information for a specific country. It also displays a list of cities and a list of festivals in the current country.
You can display detailed information about a country by dropping the Countries widget on the page and configuring the widget to display only country details. To do that, select the One particular country only... and do not select specific country. This way the Countries widget displays only the detail view of the currently navigated in URL country. For example ~/country/united-states-of-america.
You must set the Details item template of the Countries widget to My Vacation - Full country content template. The template shows some information about the country, a landscape image of it, and an option to view where on the map the country is located.
The following screenshot shows the display of Countries widget:
Use the following markup for My Vacation - Full country content template:
You can display child items by filtering by parent item. If you want to display all Cities and Festivals in the currently opened country, you can drop both Cities and Festivals widgets and configure them to display cities From the currently open country. To display all items in a horizontal list, you can set the following templates: My vacation - List of Cities - Horizontal for the list of cities and My vacation - List of festivals - Horizontal for the list of festivals. You must also set the details item page for each widget to be City and Festival page, respectively. For more information how to filter child items with parent items from multiple levels, see Display hierarchy of content items.
The following screenshot shows the display of the Cities and Festivals widgets:
Use the following markup for My vacation - List of Cities – Horizontal template:
Use the following markup for My vacation - List of festivals – Horizontal template:
To do this, drop the Hotels widget and set the list view widget template to My vacation - List of hotels - With Thumbnail template. This is the same template that you used for displaying popular hotels on the Home page. On this page, however, you need to display only hotels for the currently opened country. Note that Hotel type is child of City type, which is child of the Country type and we want to filter hotels by currently opened country (grandparent). Perform the following:
The following screenshot shows the display of Hotels widget:
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