{# /** * @file * Template file for the FAQ page if set to show the questions * in a list at the top * * Available variables: * - questions_list: Pre-formatted list of questions. * - questions: An array of questions to use for producing the question list at the top. * - answers: An array of answers to use for producing the main body of text. * - question: The question text. * - body: The answer text. * - links: Represents the node links, e.g. "Read more". * - use_teaser: Is true if $answer['body'] is a teaser. * - list_style: Represents the style of list, ul for unordered, ol for ordered. * - question_label: The question label, intended to be pre-pended to the question text. * - answer_label: The answer label, intended to be pre-pended to the answer text. * - limit: Represents the number of items. * * @see template_preprocess_faq_questions_top() * * @ingroup themable */ #} {{ questions_list }}
{% for item in answers|slice(0, limit) %}
{% if question_label is not empty %} {{ question_label }} {% endif %} {{ item.question }}
{% if answer_label is not empty %} {{ answer_label }} {% endif %} {{ item.body }} {{ item.links }}
{% endfor %}