Content Collection View

The Content Collection View block is where content collections come to life. As pictured below, this block provides robust search and filtering capabilities across all the items in your content collection at blazingly fast speeds. Out of the box this block is not applied to any pages.

  1. Search - Rock provides full text indexing to allow a person to search for words or phrases across all of the content contained in the collection. This happens so quickly, the list of items below the search bar are updated in real time as you're typing.
  2. Attribute Filters - The Speaker search filter is actually a content channel item attribute. Later on, we'll cover how to use item attributes as filters.
  3. Year Filter - The year filter comes for free, but you can disable it in the block settings.
  4. Content Channel Items - This is the list of items that match the search criteria and any filters that have been applied. These items could be from multiple different content channels included in the collection.
  5. Relevance - By default, the items are listed based on relevance to the search, but you can change how they're sorted here. Block settings let you control which sort options are available.

Note

Universal Search
For those who are curious about how things work under the hood, the Content Collection View block utilizes the Universal Search feature. This allows for powerful searches at super-fast speeds.

We already mentioned a couple of the settings for this block. Now let's take a detailed look at the other available options. You can change or completely disable different parts of the block, allowing you to customize how it works according to what makes the most sense for your content collection. For instance, if the full-text search wouldn't be as useful because your content is all audio/video then you can simply turn it off.

  1. Content Collection - Here you'll choose which content collection to use. Try to use descriptive names for your content collections so they're easy to identify when you're setting up this block.
  2. Search Options - As pictured in the prior screenshot above, a person can use the filters panel and the full-text search, as well as adjust the sort order. Any of these items can be disabled.
  3. Number of Results - This controls how many results will be shown at a time. If the search returns more than this number of results, there will be a Show More button to show additional results.
  4. Search on Load - If this is enabled, then a person will see items listed without performing a search. The number of items the person sees is set by the Number of Results setting.
  5. Group Results by Source - Content collections pull in content from different sources, such as content channels and calendars. Enable this option to group search results according to their source. This means you'll get results for each source. For instance, if your content collection contains two content channels and if your Number of Results is set to five then you would see two sections with five items each, for a total of 10 items in the results.
  6. Enabled Sort Orders - The person viewing the block will be able to sort the results by the options you select here. This setting only applies if Show Sort is enabled.
  7. Trending Term - This setting only applies to the name of the sort order for "trending" items. You might choose to call it "Popularity" or "Most Watched". We'll talk more about trending features below.
  8. Results Template - This is an advanced setting that lets you change how the results are displayed overall. For instance, this controls the Show More button.
  9. Item Template - This is another advanced setting, but this lets you control how individual items show up within the search results. You'll need to update this area to tell the block what page to go to when an individual item is clicked, to view that item. Out of the box the change will need to be made on line 2, replacing the # symbol with the URL to the new page.
  10. Pre-Search Template - Before the person performs a search, and if you have Search on Load disabled, the template here will be shown to the person where search results would normally appear. Like the above two settings, this is an advanced setting that you won't be changing often, if ever.
  11. Filters - Here you can choose which filters to show on the page. You can also click and drag each filter so that it appears above or below other filters. Lastly, you can click the ti ti-pencil icon to add a custom header that will appear above the filter.
  12. Personalization - Content channel items can have personalization segments and request filters applied to them. If a match is found with the current person and/or their visit, those content channel items will be "boosted" (moved up) in the search results, by the amount chosen in the Boost field. See the Personalization chapter for additional details on setting up personalization.

Note

Content Collection Security
Content collections index, store, and display items without regard to their individual security settings. Ignoring security helps greatly with performance, however it can make restricted content accessible to people or groups who wouldn't have access elsewhere in Rock.