- Issue created by @sdsheridan
- Status changed to Needs review
12 months ago 5:25am 28 December 2023 - Status changed to Fixed
5 months ago 4:40am 13 July 2024 - Status changed to Fixed
5 months ago 4:00pm 13 July 2024
Fields formatted with General Entity Reference Formatter with style single-line run together with other fields on the same line.
Create an entity reference field, and a text field. Place the text field after the entity reference field. Chose the "General Entity Reference" for the formatter, set parameters for single line. View resulting rendered content.
Modify the twig template formatter-suite-field-list.html
to add the clearfix
class to the outer div
:
...
%}
{% set itemsLength = items|length %}
{% set itemsIndex = 1 %}
<div{{ attributes.addClass(classes|merge(['clearfix'])) }}>
{% if label_hidden == false %}
<div{{ title_attributes.addClass(title_classes) }}>{{ label }}</div>
{% endif %}
{% if list_style == 'ul' %}
...
Modify the code.
None.
None.
None.
Fixed
2.0
Code