Adding a Structure for Frequently Asked Questions
Clarity wants a way to manage its Frequently Asked Questions page that empowers its site maintainers to add questions, remove questions, and group them together easily.
Here, you’ll create a structure with a repeatable field to allow creating articles with any number of questions. A repeatable field is one that you can have as many instances of as you want. In this case, you’ll add a repeatable pair of text fields (a question and its answer).
Start Creating the FAQs Structure
-
Log in as Preston Palmer, your public site administrator, if you haven’t already.
-
Navigate to the Site Menu () → Content & Data → Web Content.
-
Click the Structures tab.
-
Click Add () to add a new structure.
-
Click into the title field at the top of the page and name the structure
FAQs
. -
Click Properties () and enter this description:
Generic structure for a set of common questions and answers.
Now you’re ready to configure the structure with the necessary fields.
Configure the FAQs Structure’s Fields
-
Click Builder () to reopen the Builder menu.
-
From the Builder menu, drag a Text field into the body of the structure.
The text field is added to the structure, and the menu on the right automatically changes to its configuration.
-
Set these values in the text field’s configuration:
-
Label: Question
-
Field Type: Multiple Lines
-
Enable the Required Field toggle.
-
-
Click the Advanced tab and change the Field Reference value to
QuestionText
.Using this instead of the automatically generated reference value makes it easier to refer to it in templates later.
-
Exit the text field’s configuration and drag a Rich Text field from the Builder menu onto the first one.
This adds both fields into a field group containing them.
-
Set these values in the rich text field’s configuration:
-
Label: Answer
-
Enable the Required Field toggle.
-
-
Click the Advanced tab and change the Field Reference value to
AnswerText
. -
Click the fields group containing the two text fields to access its configuration and set these fields:
-
Label: FAQ
-
Enable the Collapsible toggle.
-
Enable the Repeatable toggle.
-
-
Click the Advanced tab and change the Field Reference value to
FAQ
. -
Click Save at the top of the page.
Now the structure is ready to use, and you can add FAQs or Event web content articles to your site. Content structures, however, require display templates to go with them.
Next: add a template for your Event structure.