2 title = "Page Templates"
5 slug = "page-templates"
8 Within BookStack you can mark a page as a template so that its content
9 can easily be reused when editing and creating pages.
10 This can be super useful when you need to create many pages following
13 ## Creating a Page Template
15 A page template in BookStack is simply a normal page that has been marked as a template.
16 Start by creating/editing the page you want to use as a template.
17 Within the editor sidebar you should see a templates tab.
18 Within this tab you should find a "Page is a template" checkbox.
19 Simply check that option and save the page to make the page become a template.
20 If you don't see that checkbox, you likely lack the "Manage page templates" role system permission.
22 
24 Note: Visibility of page templates are controlled via visibility of the page itself. If a user lacks permission to view the page marked as a template, it will not show as an available template for them.
26 ## Using Page Templates
28 Page templates can be accessed when creating or editing a page.
29 Within the editor sidebar you should see a templates tab.
30 If you have templates available they will be listed in this area.
31 A search bar will also show for easy searching of templates.
33 There are multiple ways to add a template into a page:
35 - Select the template box itself to replace the editor content with contents of the template.
36 - Select the up arrow of the template box to prepend its contents to the editor.
37 - Select the down arrow of the template box to append its contents to the editor.
38 - Drag the template box into the editor to insert its contents into the dragged location.
40 
42 Keep in mind that using a template simply copies its content at time-of-use, it is not
43 a "live" connection to the template page, and updating the template page won't affect pages that have previously used it as a template.