Guide

Roper Context Provider

Entry point for Roper search and query data. Fetches questions from the Roper API and passes them to child blocks through block context. Default insert includes a Roper Results block.

Namespace

prc-roper/context-provider

Category

embed

Supports

Interactivity. No anchor or custom HTML. Not reusable; only one per page area (multiple: false).

Attributes

AttributeTypeDefaultDescription
qstringKeyword query
excludestringExclusion keywords
startstringStart year / date bound
endstringEnd year / date bound
topicstringTopic filter
manualQuerybooleanfalseFixed query mode when true
perPagenumber10Items per page (520)

Context

Uses: postType, templateSlug, previewPostType

Provides: prc-roper/per-pageperPage

Behavior

  • Queries the Roper API from a fixed editor query or frontend search/filter params.
  • Passes the result set and pagination metadata to Roper Results.
  • Connects search, facets, tokens, and filter UI to the Interactivity API / Router.

Editor workflows and filter recipes: user guide.

Was this helpful?