Customizing the Rich Inline Template

Once your crawler fields are configured as per Setting up Crawler Fields for the Rich Inline, use these settings to fine-tune behavior beyond the defaults. This is optional, and most implementations can keep the defaults; review only the sections that apply to your site or implementation.

If you wish to skip this, and head straight to the code snippets, see our Rich Inline Template Technical Reference.

Quick configuration guide

Each row links to the matching section of the Rich Inline Template Technical Reference for the actual settings and code.

ConfigurationWhat it controlsChange it when…Typical setup
Search BarPlaceholder text, accessibility labels, and search buttonYou want the search bar to better match your site or brandKeep defaults
Basic SettingsSearch Page URL and Search Input SelectorYou need to connect Cludo to a specific search page or existing search boxReview
Selectors & Multiple InstancesSearch results, facets containers, and Instance IDYour implementation uses custom HTML or more than one Cludo searchKeep defaults
BehaviorFocus, scrolling, highlighting, loading, and browse behaviorYou want to change how search behaves after a visitor searches or filtersOptional
AutocompleteAutocomplete behavior, Pre-search Suggestions, and Search-as-you-typeYou want to fine-tune what visitors see before and while typingReview if enabled
FacetsFacet labels, selection behavior, presets, and value orderYou need to customize how visitors interact with facetsReview if using facets
FiltersHidden restrictions on what the search can returnThe search experience should only search a specific site, section, or content setOptional
Default Sort OrderHow results are orderedResults should be ordered by something other than relevance, such as dateKeep relevance for most searches
PaginationNumbered pages, endless scroll, and results per pageYou want to change how visitors move through larger result setsReview
TrackingCludo analytics, Google Analytics, and cookie consentYou need custom analytics or consent behaviorKeep defaults for most sites
Voice SearchMicrophone-based searchYou enabled Voice Search in Cludo StudioReview if enabled
Override StringsInterface text, labels, messages, and translationsYou want to replace Cludo’s default wordingOptional
CallbacksCustom JavaScript at specific search eventsA developer needs custom logic during the search experienceAdvanced
Single Page Application (SPA)Support for client-side routingYour website is an SPA or uses navigation without full page reloadsDeveloper review

Review for most implementations

Search Bar: review the placeholder text, ARIA labels, and search button. Most sites can keep the defaults unless you want the search bar to better match your site’s language or branding. See Add/update search form.

Basic Settings: confirm the Search Page URL and Search Input Selector. Your Customer ID, Engine ID, and language are already populated from Cludo Studio. See Add script.

Autocomplete: review this section if you’re using Pre-search Suggestions or Search-as-you-type. If you’re using Cludo Studio, these features may already be enabled based off it; use this mainly to fine-tune their behavior. See Autocomplete.

Facets: confirm the facets you want to use and adjust visitor-facing labels or selection behavior if needed. See Facets.

Pagination: choose between Pagination and Endless Scroll, and set how many results load at a time. See Pagination.

Optional settings

SettingWhen to use it
BehaviorChange focus, scrolling, highlighting, loading states, or allow visitors to browse results without entering a search term
FiltersPermanently restrict a search experience to a specific domain, Category, or field value
Default Sort OrderUse date or another field instead of relevance for a specialized search such as News or Events
TrackingSend analytics to a specific Google Analytics property or configure cookie consent behavior
Voice SearchFine-tune Voice Search if it was enabled in Cludo Studio
Override StringsReplace default labels, messages, or accessibility text

Advanced developer settings

SettingWhat it isRecommendation
Selectors & Multiple InstancesConnects Cludo to custom result/facet containers and separates multiple search instancesLeave defaults unless your implementation uses custom markup
CallbacksRuns custom JavaScript before or after specific search eventsUse only for custom developer functionality
Single Page Application (SPA)Supports websites that use client-side routingEnable only if your site is an SPA

Good to know

Facets vs. filters: a facet is visible and lets visitors narrow results. A filter works behind the scenes and permanently restricts what the search can return.

Default sort order: relevance should remain the default for most site searches. Date sorting is most useful for experiences such as News or Events.

Callbacks: most implementations will not need callbacks. Use them only when a developer has a specific custom behavior to implement.