- Issue created by @sea2709
- π«π·France pdureau Paris
Hi
Thanks for your issue
First test: Component in formatters
With:
- Unformatted list as View style
- Field as View row
- "Label test" as title field label
It looks OK, I see the Label test at every row.
<div class="views-element-container contextual-region"> <div class="views-row"> <div class="views-field views-field-title"> <span class="views-label views-label-title">Label test</span> <span class="field-content"> <button data-component-id="ui_suite_bootstrap:button" class="btn-primary btn" type="button">First article</button> </span> </div> </div> <div class="views-row"> <div class="views-field views-field-title"> <span class="views-label views-label-title">Label test</span> <span class="field-content"> <button data-component-id="ui_suite_bootstrap:button" class="btn-primary btn" type="button">Second article</button> </span> </div> </div> </div>
However, this is not exactly what you are testing here, so let's do a second test.
Second test: Component in view row
With:
- Unformatted list as View style
- Plain text as title field formatter
- "Label test" as title field label
Before the test, I need to wait for this fix: π [2.0.0-beta3] Bug in view row style plugin using views field source Active
To be continued...
array_keys(): Argument #1 ($array) must be of type array, null given
- Assigned to pdureau
- Status changed to Postponed
4 months ago 7:26am 20 September 2024 - πΊπΈUnited States sea2709 Texas
Thanks for looking into this.
I confirm your first test works on my end too. I did some tricks to overcome to the issue you mentioned π , anyway, I saw a fix for that issue and it worked. I tried again to put a label, but it doesn't show up!
- π«π·France pdureau Paris
π [2.0.0-beta3] Bug in view row style plugin using views field source Active was merged, so we can test "Component in view row"
- π«π·France pdureau Paris
Ok, i reproduced the issue, with:
- Unformatted list as View style
- "Component (UI Patterns)" as View row
- Plain text as title field formatter
- "Label test" as title field label
In
Drupal\ui_patterns_views\Plugin\UiPatterns\SourceViewFieldSource::getPropValue()
, we take the field value from$view->style_plugin->getField($row_index, $field_name)
without taking the full views_view_field renderable (with label & wrappers) - Issue was unassigned.
- π«π·France just_like_good_vibes PARIS
we need to take a decision on that one, we move to 2.1.x ?