Rock Mobile Docs

Content Collection View

Universally search across multiple different content sources, with filter and sort options.

Warning

Content Collections use Universal Search and indexing, which means they do not support entity security.

This Content Collection View block is designed to bring your content collections to life. It offers powerful search and filtering tools that work across all items in your collection, delivering results at incredibly fast speeds. Learn more about Rock's Content Collection feature here in the manual:

Content Collection View Documentation

Bindings

NameTypeDescription
IsLastItemboolThis is true when outputting the last item in the filtered results. It is useful for skipping the divider beneath the final result at the bottom.
<Rock:Divider IsVisible="{Binding IsLastItem, Converter={Rock:InverseBooleanConverter}}" />

Parameters

KeyTypeDescription
AutoFocusboolDetermines if the keyboard should open automatically on page load.

Settings

NameDescription
Content Collection  The content collection to search across.  
Show FiltersWhether or not the filters should be displayed as an option for this block.
Show Full-Text SearchWhether the search field should be enabled for this block. If disabled, enabling Search On Load or passing in a pre-defined search term is advised.
Show SortWhether or not the sort options should be enabled.
Number Of ResultsThe number of results to load with each search. This block searches as the page is scrolled, so this will be the number of results returned per each load.
Search On LoadIf enabled, the block will search upon load.
Group Results by SourceWhether or not the results returned should be grouped by the content source. You can customize the header of each group by modifying the Group Header Template.
Enabled Sort OrdersThe options for sort to provide for the block.
Trending TermThe term to use for the "Trending" sort option.
FiltersThis section allows you to customize filters based on the selected Content Collection configuration.
Group Header TemplateThe lava template to use to render the group headers. This will display above each content collection source. Only useful if Group Results By Source is enabled.
Item TemplateThe XAML template to display for each item. The operation of loading XAML for long lists is expensive, so take caution to follow best layout practices.
Pre-Search TemplateThe template to display before someone has searched once.
Boost Matching SegmentsDetermines if the matching personalization segments should receive a boost.
Boost Matching Request FiltersDetermines if the matching personalization request filters should receive a boost.
Segment Boost AmountThe amount of boost to apply to matches on personalization.
Request Filter Boost AmountThe amount of boost to apply to matches on personalization.

Styling