Create a link for adding pages with a Scaffolding live template
You can use Linking and Scaffolding Forms &Templates together to create a one-click link that generates pages with a live template and a predefined title and location. Here’s how it works:
Create your template as a Scaffolding form using the Scaffolding - Field Group macro.
Consider these best practices:Use a standard page to ensure version control for the template.
Insert one of the prebuilt Scaffolding templates and adjust the input fields for your use case.
Restrict access to the template because it will be used as a live template, meaning any changes to it will be reflected on all pages using it.
Create the link for generating pages using the Linking - Add Page macro with Live template option selected.
Consider these best practices:Place the link on the parent page that will contain the pages generated by the link.
Use the
$date(<date-format>)or$id (<format>,<startAt>)function in the page title prefix or postfix to prevent page duplication.
Use the link to generate and publish a page.
Fill out the Scaffolding form on the new page and publish your input data.
Watch this video to see the workflow in action.
