title: "How to use template in AFFINE?"
author: "Allen"
tags: Content
slug: how-to-use-template
description: "How to use template in AFFiNE? Feel Free to check out this guideline blog."
created: 2024-12-18
updated: 2025-01-18
layout: blog
publish: true

How to Save a Template
Open the page's Property and check the Template option.

- Open the Property from the document's top bar and select the Template checkbox.

- Open Property in the doc info area and select Template.

Once checked, a Template edit option will appear at the top, indicating that your Template setting is active.
How to Use a Template for Creation
In the product, you can use different entry points to create documents with a Template. Specifically:
Using a Template in a Blank Document

Whenever you open a new document, three new entry points will appear at the bottom, select Template.
Setting a Template for Journal

A distinct template for the Journal can be added, which will be visible upon opening the Journal sidebar. After configuring it, modifications can be made at the bottom. Additionally, this can be adjusted in Settings under Workspace, Preference, and My Template.

Setting a Template for Every New Document

If you want every document to use a specific template style by default, you can enable the specified setting in Settings/Preference/My Template. Note that the Template's activation order is: Journal's Template > Doc's Template, so when you set Doc's Template, Journal will still follow Journal's Template default setting.
Modify the Add Button to Ask Every Time in Settings

Version 0.20 and above offers a new creation option. You can choose "Ask me every time" in Settings/Editor/New doc default mode. This way, every time you create a new file, you can choose from a blank Page, blank edgeless, and Template.

How to Adjust a Template

You can open the corresponding Template document in the All docs page to modify the Template. In this version, you can select Template at the bottom of the sidebar and directly navigate to the corresponding document for modification.
Frequently Asked Questions
Does the Template differentiate between edgeless and page?
Templates use Snapshot for import and export, so they do not differentiate between Edgeless and Page. Content from both Edgeless and Page will be added to the document.
How should I create a Template in Edgeless mode?
Simply set the doc mode to Edgeless in the Property.
Can I directly use the official website's Templates?
Currently, you cannot directly use the official website's Templates within the AFFiNE App. However, you can still import them via the website's Template page and then modify the Property attributes to set it as a default Template.
Are the preference settings for Journal and Doc's Templates distinguished?
Yes, the Templates for Journal and Doc are independent and can be set separately.
Is the Template list shared across the workspace?
Yes, Templates are shared across the workspace.