how list type works? #1491
Unanswered
UncleFB
asked this question in
Forums - Q&A
Replies: 1 comment
-
|
@UncleFB Hi. The main issue is that when using the "type": "list" with nested elements, you need to properly structure the fields property as an array. Here's the correct way to do it: If you need to keep your specific parent selector, use: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to get these divs as list
<div class="field__items"> <div class="field__item">Aircraft preparation</div> <div class="field__item">Unstable approach</div> </div>I tried this way
{ "name": "Aviation occurrence categories", "selector": "div.field.field--name-field-aviation-occurrence-type.field--type-entity-reference.field--label-above > div.field__items > div", "type": "list", }and this way
{ "name": "Aviation occurrence categories", "selector": "div.field.field--name-field-aviation-occurrence-type.field--type-entity-reference.field--label-above > div.field__items > div", "type": "list", "fields": { "name": "category", "type": "text" } }can not work either
Beta Was this translation helpful? Give feedback.
All reactions