Allow site builders to specify the theme used when indexing rendered data.

Created on 21 October 2021, about 3 years ago
Updated 4 September 2024, 4 months ago

Problem/Motivation

For rendered items via the site's default site theme is used. This allows Search API to index data using a consistent theme.

In some cases, sites might have multiple themes or in our case, the default theme is not ideal for the index data and we would like to index data using the Stark theme.

Steps to reproduce

Index data and confirm that the default theme is used.

Proposed resolution

Allow site builders to specify the theme used when indexing rendered data.

I am not sure if the theme should be configurable via the Server, Index, or FieldItem.

Remaining tasks

  • Determine best approach
  • Write patch
  • Review patch
  • Test patch
✨ Feature request
Status

Needs work

Version

1.0

Component

Plugins

Created by

πŸ‡ΊπŸ‡ΈUnited States jrockowitz Brooklyn, NY

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡³πŸ‡±Netherlands ekes

    I just went searching for this feature as I yet again forgot that the default theme is used for 'render item' which means I can spend as long as I like configuring the view mode, but I still need to also add a template for that view mode or the default one (which will have some heavy customisation) will kick in and override everything I did in the UI config.

    I guess I'm going to quickly make templates again. But for next time:

    I'm thinking this option would be useful specifically on the RenderedItem processor. So the option to choose theme would make sense with the choice of which view mode to use. Just once? Not for every view mode?

Production build 0.71.5 2024