Skip to main content

Create a Q & A List

To create a topic containing a question and answer list (FAQs):

  1. Create a new topic or edit an existing one by selecting it in the Content Manager.

  2. In the topic, use the element context menu to add the qandaset element. This is the "container" element for all of your questions and answers.

    When you add a qandaset element, Paligo automatically adds some of the "child" elements that it needs for your questions and answers.

    qandaset-1-pair-questions.jpg

    The structure is:

     <qandaset>
        <qandaentry>
          <question>
            <para><?placeholder Insert text?></para>
          </question>
          <answer>
            <para><?placeholder Insert text?></para>
          </answer>
        </qandaentry>
      </qandaset>

    The important things to note here are that:

    • The qandaset is the "container" element for all of the questions and answers

    • Each question and answer pair go inside a qandaentry element

    • Each question consists of a question element and a para element inside it. You add your text inside the para element.

    • Each answer consists of an answer element and a para element inside it. You add your text inside the para element.

  3. Enter your text for the question and the answer.

  4. To add another question and answer in the same list, you need to position the cursor carefully. It has to be below the answer and at the position where qandaset is the last element shown on the element structure menu.

    FAQs-2ndquestionandanswer-position.jpg
  5. Use the element context menu to add the qandaentry element.

    To access the element context menu, press Alt and Enter (Windows) or Option ⌥ and Enter (Mac).

    add-qandaentry.jpg

    Paligo adds an extra question and answer pair.

    added-second-q-and-a.jpg

    Note

    If the element context menu does not allow you to search and find the qandaentry element, it is because the cursor is not in the correct position. Go back to step 4 and make sure that the cursor is in the correct place.

  6. Repeat steps 3-5 inclusive to add all of the questions and answers for your list.

  7. Select any part of the list and then select the qandaset element in the element structure menu.

  8. In the Element attributes section, add the defaultlabel element and set its value to either:

    • none

      The questions and answers will have no prefix. The question text is bold and the answer is regular text.

    • number

      The questions are numbered.

    • qanda

      The questions have a Q: prefix and the answers have an A: prefix.

    qandaset-attributes.jpg
  9. Select Save. Save icon.

When you publish your topic, the list will appear as a question and answer list. The questions will use the formatting that you set for the defaultlabel attribute.

Tip

When publishing to HTML5, Paligo adds a list of links before the Q and As. The links have the same text as the questions.

FAQ_default_HTML5_layout_2_small.png

Add the below code string at the end of the layout CSS to:

  • Hide the links before the Q and As.

  • Add a space between the Q and A labels and the text.

  • Add spaces between the Q and As.

/* Styling for Q&A sets*/
div.qandaset ul
{display:none;  /* hides links Q-title */
}
div.qandaset
{margin-bottom:15px; /* space between Q&A set */
}
div.qandaset tr td p
{margin-bottom:5px; /* space between Q & A rows */
}
div.qandaset tr td:first-child 
{padding-right:5px; /* space after labels (e.g. "Q:")*/
}