{{ kint(view.field.field_object_label_x.original_value) }}
view.field.field_object_label_x.original_value Drupal\Core\Render\Markup(1)
contents
protected string -> string(5) "40495"
Creates a Markup object if necessary.
If $string is equal to a blank string then it is not necessary to create a
Markup object. If $string is an object that implements MarkupInterface it
is returned unchanged.
@param mixed $string
The string to mark as safe. This value will be cast to a string.
@return string|\Drupal\Component\Render\MarkupInterface
A safe string.
Defined in .../core/lib/Drupal/Component/Render/MarkupTrait.php:34
{{ view.field.field_object_label_x.original_value }}
выводит как раз то что нужно, значение моего поля - число, но только один раз, если вставляю в цикл то выводит одинаковое число из последней ноды столько раз сколько количество этих нод<div><image x="{{ field_object_label_x }}" y="{{ field_object_label_x }}" width="5200" height="6800" xlink:href="{{ field_icon }}"/></div>
{{ kint(fields) }}, {{ kint(rows.content) }}, {{ kint(rows.content.fields) }}, {{ kint(rows.content.fields.field_object_label_x) }}.
rows array(3)
fields NULL
или
rows array(3)
rows.content.fields.field_object_label_x NULL
<ol>
{% for key, value in _context %}
<li>{{ key }}</li>
{% endfor %}
</ol>
view
rows
title
options
theme_hook_original
attributes
title_attributes
content_attributes
title_prefix
title_suffix
db_is_active
is_admin
logged_in
user
directory
default_row_class
#cache
theme_hook_suggestions
theme_hook_suggestion
_parent
{% for row in rows %}
{% if row %}
{% if fields.field_object_label_y %}
{{ row.content.fields.field_object_label_y }}
{% endif %}
{% endif %}
{% endfor %}
Посмотрите views-view-unformatted.html.twig, его препроцессор и views-view-fields.html.twig, функция. Для начала нужно проинспектировать некоторые значения, чтобы лучше понимать работу.простите тут что то я Вас не понимаю)
{{ view.field.field_object_label_x.original_value }}
выводит то значение поля что нужно, осталось только правильно в цикл засунуть, неужели тут надо подключать еще препроцессоры? public table -> string(26) "node__field_object_label_x"
public tableAlias -> NULL
public realField -> string(26) "field_object_label_x_value"
public field -> string(20) "field_object_label_x"
<div><image x="{{ field_object_label_x }}" y="{{ field_object_label_x }}" width="5200" height="6800" xlink:href="{{ view.field.field_icon.original_value }}"/></div>
[field_object_label_x] => Array
(
[id] => field_object_label_x
[table] => node__field_object_label_x
[field] => field_object_label_x
[relationship] => none
[group_type] => group
[admin_label] =>
[label] =>
[exclude] =>
[alter] => Array(26)
[element_type] =>
[element_class] =>
[element_label_type] =>
[element_label_class] =>
[element_label_colon] =>
[element_wrapper_type] =>
[element_wrapper_class] =>
[element_default_classes] => 1
[empty] =>
[hide_empty] =>
[empty_zero] =>
[hide_alter_empty] => 1
[click_sort_column] => value
[type] => number_integer
[settings] => Array(2)
[group_column] => value
[group_columns] => Array(0)
[group_rows] => 1
[delta_limit] => 0
[delta_offset] => 0
[delta_reversed] =>
[delta_first_last] =>
[multi_type] => separator
[separator] => ,
[field_api_classes] =>
[plugin_id] => field
)
[tags] => Array
(
[0] => config:field.storage.node.field_icon
[1] => config:field.storage.node.field_object_label_x
[2] => config:field.storage.node.field_object_label_y
// On filter click, filter grid
$('.filters').on( 'click', 'p', function(e) {
e.stopPropagation();
var filterValue = $(this).attr('data-filter');
$grid.isotope({ filter: filterValue });
$('.item').toggleClass('visible');
e.preventDefault();
});
<input name="sku" value="<div class=" commerce-product-field="" commerce-product-field-field-sku-viws="" field-field-sku-viws="" node-18769-product-field-sku-viws"="" type="hidden">
<div class="commerce-product-field commerce-product-field-field-sku-viws field-field-sku-viws node-18769-product-field-sku-viws"> DL-1541</div>
Правда этот модуль что то ошибок кучку на выдавал типа - Notice: Undefined index: #title in Drupal\webform_views\WebformElementViews\WebformCompositeViews->getViewsData() (line 47 of modules/contrib/webform_views/src/WebformElementViews/WebformCompositeViews.php)
но наверное форму или views пересоздам уйдет