Dynamic Carousel

An auto-populated carousel that dynamically loads content items as slides. Similar to Dynamic Card Group but presents results in a rotating slider format. Useful for featured content rotations driven by content queries.

The examples below show Dynamic Carousel renderings sourced from a search block. The first example uses the default carousel options (fade transition, autoplay, indicators, and navigation buttons enabled). The second example disables the fade transition and autoplay to show a standard slide effect with manual navigation only.

Usage Notes

  • The Dynamic Carousel uses the same DynamicContainer.cshtml view as Dynamic Card Group and Dynamic Components. The view iterates Model.Placeholders["dynamicsection"] and renders each child component via the rendering engine’s component factory.
  • The datasource should be a Search Block item (located under /Home/api/search/). The search block defines the query criteria that populate the carousel slides.
  • The ComponentType parameter is a Droplink to a dictionary item that tells the rendering contents resolver which component rendering to use for each slide.
  • The PageSize parameter limits the number of slides rendered. If empty, all results from the search block are shown.
  • Carousel-ShowIndicators shows dot indicators below the carousel when enabled (default: checked).
  • Carousel-ShowButtons shows previous/next navigation arrows (default: checked).
  • Carousel-Autoplay enables automatic slide progression (default: checked).
  • Carousel-CarouselFade uses a crossfade transition instead of the default slide animation (default: checked).
  • Carousel-DarkVariant switches to dark-themed carousel controls for use on light backgrounds (default: unchecked).
  • ExplicitItems allows manually specifying content items to include. AppendItems controls whether explicit items are appended to or replace search results.

Control Properties

Standard Values / Defaults

ParameterDefault Value
Carousel-ShowIndicatorsChecked (1)
Carousel-ShowButtonsChecked (1)
Carousel-AutoplayChecked (1)
Carousel-CarouselFadeChecked (1)
Carousel-DarkVariant(unchecked)
ComponentType(empty)
PageSize(empty — shows all results)
AdministrativeTags(empty)
ExplicitItems(empty)
AppendItems(unchecked)

Rendering Parameters

ParameterTypeDescription
Carousel-ShowIndicatorsCheckboxShows dot indicators below the carousel for navigating between slides.
Carousel-ShowButtonsCheckboxShows previous/next navigation arrow buttons on the carousel.
Carousel-AutoplayCheckboxEnables automatic slide progression.
Carousel-CarouselFadeCheckboxUses a crossfade transition instead of the default slide animation.
Carousel-DarkVariantCheckboxApplies dark-themed controls for use on light backgrounds.
ComponentTypeDroplink (dictionary)Selects which component rendering is used to render each slide item from the search block.
PageSizeIntegerLimits the number of slides displayed. Leave empty to show all results.
AdministrativeTagsMultilistFilters results by administrative tag taxonomy items.
ExplicitItemsMultilistManually specified content items to include in the carousel.
AppendItemsCheckboxWhen checked, explicit items are appended to search results rather than replacing them.

Template Properties

The Dynamic Carousel rendering does not use a traditional datasource template with content fields. Instead, the datasource is a Search Block item (based on the Foundation/AzureSearch/JsonBuildingBlock template) that defines the query criteria. The search block’s template fields (query path, template filter, sort order, etc.) determine which content items are returned and rendered as carousel slides.

The actual slide content fields depend on the rendering specified by the ComponentType parameter. Each result item’s fields are mapped by the selected component rendering’s model.