{# /** * @file * Template file for the FAQ page if set to show/hide the answers when the * question is clicked. * * Available variables: * - nodes: The array of nodes to be displayed. Each node stored in the $nodes array has the following information: * - question: The question text. * - body: The answer text. * - links: Represents the node links, e.g. "Read more". * - use_teaser: Tells whether node.body contains the full body or just the teaser * * @see template_preprocess_faq_hide_answer() * * @ingroup themable */ #}
{% if nodes|length > 0 %} {% for node in nodes %}
{{ node.question }}
{{ node.body }} {% if node.links is defined %} {{ node.links }} {% endif %}
{% endfor %} {% endif %}