Created
July 17, 2019 18:39
-
-
Save Chalkin/636157366d53e324df8172ef5a1f8ac9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{ sections }} | |
... | |
{{ if type == 'extended_content' }} | |
<div class="section-empty"> | |
<div class="container content"> | |
{{ if type == "text" }} | |
<div class="text"> | |
{{ text }} | |
</div> | |
{{ elseif type == "image" }} | |
<figure> | |
<img src="{{ image }}" alt="{{ caption }}" /> | |
<figcaption>{{ caption }}</figcaption> | |
</figure> | |
{{ /if }} | |
</div> | |
</div> | |
... | |
{{ /if }} | |
{{ /sections }} |
Well, that when I use the {{ body }} {{ /body }} inside the extended_content HTML, none of the other Fieldsets/types render anymore. Basicly the area where the template's html should render, stays empty.
See attached Screenshot. In this example it should actually also render the html of the simple_content type as well
Do you have any other vars named body
or content
that might be conflicting?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What exactly do you mean by
the body keyword knocks out all of the other HTML/Content of every element inside the flexible template
?