Create a form for adding pages from a template
Scenario
To guide Confluence users in content creation, you can provide a simple form for creating structured pages. The form consists of:
A page title prefix and postfix
An input field with a helper text for entering a page title
A named button
The auto-generated pages can:
Automatically use a Confluence template or page
Automatically categorize the page under a parent page
Automatically add labels to the page
Result
Recipe
Apps |
Linking for Confluence, Scaffolding Forms & Templates for Confluence
|
|---|---|
Platform | Cloud |
Level | Easy |
Estimated time | 5 minutes ⏱ |
Macros | Add Page via Form |
Create the form
As a Confluence space administrator, create a form for adding pages about the organization projects.
Create a space template named
Project templateand populate it with the base structure for the project pages.Create a page named
Projectsand insert the Add Page via Form macro.For the Button text parameter, enter a name for the button. For example, enter
Create a page.To configure the base structure for the generated pages, specify the following Page source parameters:
Set Source type to Template/blueprint to use a Confluence template as the base for the new pages.
From the Source drop-down list, select the page you created in step 1, that is, Project template.
For the Parent parameter, leave the default Current page value.
This setting creates new pages as child pages of the page that hosts the form.For the Field hint parameter, enter
Project name.
When the form input field is empty, this text appears as a helper text.Expand the Configure page title prefix/postfix section and set the Page title prefix parameter to
Project -. This setting ensures that all new pages are named Project - <Project name>.The titles of all pages begin with Project.
The editor adds the specific project name in the form input field.
For the Labels parameter, enter
project. This setting adds the project label to the new pages.Click Insert.
Optionally, add the Child Pages macro.
Click Publish.
Create a page using the form
As a Confluence page editor, to create a page for a project using the form:
On the Projects page, enter a project name in the form input field and click the Create page button.
A page draft, named Project - <Project name>, opens in edit mode. It contains the Project template content.Fill out the template for the corresponding project.
Click Publish.
The page is created as a child page of the Projects page.
