Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
I need use workbench moderation state in search API index. Patch attached below
Comments
Comment #2
zestagio CreditAttribution: zestagio commentedComment #3
mitchalbert CreditAttribution: mitchalbert at Betawerk commentedPatch is working and i can select the filter, but why did you need it?
Comment #4
zestagio CreditAttribution: zestagio commentedWe are developing High-Loaded project and we use facetet search form on page admin/content instead standart form and we need posibillity easy filter results by workflow state
Comment #5
jmdeleon CreditAttribution: jmdeleon at OpenPlus commentedThe patch in #2 caused an issue for me in a multilingual site... the values of the moderation states were being added to the Search API index as strings translated in the language of the node as it was being edited, and were hence not being translated correctly as facet values by the Facet API translation mechanisms -- the translated values were being set as facet values in all languages.
I re-rolled a patch to replace #2, where the untranslated moderation states were stored in the index as facet values, where they could be translated by the Search API and Facet API translation mechanisms after indexing.
Comment #6
jmdeleon CreditAttribution: jmdeleon at OpenPlus commentedRe-rolling the patch in #5 to apply better and be closer to the patch in #2...
Comment #7
jmdeleon CreditAttribution: jmdeleon at OpenPlus commented