0

I am using NEO plugin to structure my website. Currently I have create _layouts/base.twig file as my main file. Under that I am calling

  {% block headerContent %}
  {% endblock %}

  {% block bodyContent %}
  {% endblock %}

  {% include '_sections/footer'  %}

headerContent block needs to fetch my data from HeaderBuilder but it doesn't work.

bodyContent and Footer is working.

How can I get the headerContent to work?

my HeaderBuilder/index.twig file has this below code:

{% for block in neo.level(1) %}

{% include '_includes/_neo/Builders/HeaderBuilder/' ~ block.type.handle with {
    (block.type.handle): block
} %}

{% endfor %}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.