I’m trying to retrieve a unique value (specifically a title) that I’ve set within a structured field, in order to use it as the value for a <select> dropdown. The goal is to extract this value reliably so it can be used for dynamic selection or filtering purposes.
Like if there is set Color, Font → I want to have in the select the options.
attributSelect:
label: Eigenschaft für Auswählen
type: select
options: query
query:
fetch: page.variants.toStructure
text: "{{ structureItem.technicaldata.toStructure.pluck('title').unique.join(', ') }}"
value: "{{ structureItem.technicaldata.toStructure.pluck('title').unique.join(', ') }}"
variants:
label: Varianten
type: structure
fields:
title:
label: Titel
type: text
shortdescription:
label: Kurzbeschreibung
type: textarea
description:
label: Beschreibung
type: textarea
technicaldata:
label: Technische Daten
type: structure
fields:
title:
label: Titel
type: text
data:
label: Wert
type: text
Maybe someone can give me a hint ![]()