flex-objects.html.twig 627 B

123456789101112131415161718192021
  1. {% extends 'partials/base.html.twig' %}
  2. {% block content %}
  3. {% block page_content %}
  4. {{ page.content|raw }}
  5. {% endblock %}
  6. {% block flex_content %}
  7. {% set options = page.header.flex %}
  8. {% set page_assets = page.header.assets %}
  9. {% set type = options.directory ?? page.header.directory %}
  10. {% if type %}
  11. {% set list = type|array %}
  12. {% else %}
  13. {% set type = uri.param('directory') %}
  14. {% endif %}
  15. {% set id = options.id ?? uri.param('id') %}
  16. {% include 'flex-objects/page.html.twig' %}
  17. {% endblock %}
  18. {% endblock %}