Part 3 - Creating an FAQ article template
Overview
For our FAQ article, we will use the repeating-data macro from Scaffolding Forms and text-data macro for form inputs.
The repeating-data macro allows users to duplicate what is nested inside the repeating-data block. Â
Create the FAQ
In your knowledge base space
choose create new template
add the repeating data macro
name the macro faq
set initialRows to 5
In the repeating data macro
create a 2 x 2 table
set first column as header column
add Question to first row header column
add Answer to second row header column
 insert text-data macros into each empty cell of the table
The repeating-data block 5 initial rows so that a new copy of this template will render 5 question-answer pairs initially. The tutorial for this template can be found in our technical documentation.Â
Using the Live templates feature from Scaffolding Forms, we can create a new page with the live-template block, and render an FAQ article such as this one:
Imagine you'd like to modify the FAQ template and you have already created several FAQ pages. It would be a nightmare to have to update all of them individually.
By creating a live-template block on the page, the page renders the structure of a predefined template and displays the data entered by the user via forms. We only need to edit the template for its structure to be reflected across multiple pages running the same live template.
Great! Now users can quickly fill up the FAQ form with content and get going.
A later step in this use case is a tutorial to create a knowledge base template with the live-template macro for creating a new article.
Next
Part 4 - Creating an Issues and Solutions article template
Â