Commit proof of concept because wow
This commit is contained in:
parent
2c0c86d4cb
commit
0d59e58618
1 changed files with 22 additions and 2 deletions
|
@ -22,11 +22,16 @@
|
||||||
{# expected if statement would start here #}
|
{# expected if statement would start here #}
|
||||||
{% set classes = classes|merge(['is-dark']) %}
|
{% set classes = classes|merge(['is-dark']) %}
|
||||||
|
|
||||||
|
{% set title_paragraph_index = 'silly' %}
|
||||||
|
{% set tpi = null %}
|
||||||
{% set has_title_paragraph = false %}
|
{% set has_title_paragraph = false %}
|
||||||
{% if content.field_body_paragraph %}
|
{% if content.field_body_paragraph %}
|
||||||
{% for paragraph in content.field_body_paragraph['#items'] %}
|
{% for i, paragraph in content.field_body_paragraph['#items'] %}
|
||||||
{% if paragraph.entity.type.0.entity.id == 'title' %}
|
{% if paragraph.entity.type.0.entity.id == 'title' %}
|
||||||
{% set has_title_paragraph = true %}
|
{% set has_title_paragraph = true %}
|
||||||
|
{{ content.field_body_paragraph[i] }}
|
||||||
|
{% set title_paragraph_index = i %}
|
||||||
|
{% set tpi = i %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -42,6 +47,21 @@
|
||||||
</section>
|
</section>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{{ content.content }}
|
{{ content.field_simple_multivalue[0] }}
|
||||||
|
{% for i in 1..2 %}
|
||||||
|
{{ content.field_simple_multivalue[i] }}
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
|
AND HERE COMES THE REST<br />
|
||||||
|
No number huh? {{ title_paragraph_index }}
|
||||||
|
<br />Ehh? {{ tpi }}
|
||||||
|
<br />Gah. {{ has_title_paragraph }}
|
||||||
|
<section{{ attributes.addClass(classes) }}>
|
||||||
|
{% for i, paragraph in content.field_body_paragraph if i|first != '#' %}
|
||||||
|
NOO NUMBERSSS {{ i }}
|
||||||
|
{{ paragraph }}
|
||||||
|
{% endfor %}
|
||||||
|
{{ content|without('content', 'field_body_paragraph') }}
|
||||||
|
</section>
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in a new issue