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
| Attribute | Type | Default | Description |
|---|---|---|---|
q | string | — | Keyword query |
exclude | string | — | Exclusion keywords |
start | string | — | Start year / date bound |
end | string | — | End year / date bound |
topic | string | — | Topic filter |
manualQuery | boolean | false | Fixed query mode when true |
perPage | number | 10 | Items per page (5–20) |
Context
Uses: postType, templateSlug, previewPostType
Provides: prc-roper/per-page ← perPage
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.