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.
We give 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:
Great! Now users can quickly fill up the FAQ form with content and get going.
Finally, learn how you can a create a new article with this template in this tutorial.
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.