Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
docs(user): mention updates to the Notion importer
Elian Dorance55fe8e4437
diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Import & Export/Importing data from other applications/Notion.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Import & Export/Importing data from other applications/Notion.htmlindex c40463262e..99d77ce1a7 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Import & Export/Importing data from other applications/Notion.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Basic Concepts and Features/Import & Export/Importing data from other applications/Notion.html@@ -67,7 +67,13 @@<li><a class="reference-link" href="#root/_help_mT0HEkOsz6i1">Images</a> and <aclass="reference-link" href="#root/_help_0vhv7lsOLy82">Attachments</a>.</li>- <li>Toggle sections</li>+ <li>Toggle sections+ <ul>+ <li>Nested toggle sections are also supported.</li>+ <li>Toggle headings are stripped of their toggle button and become normal+ headings instead.</li>+ </ul>+ </li><li><a class="reference-link" href="#root/_help_YfYAtQBcfo5V">Math Equations</a> (inlineor block)</li><li><a class="reference-link" href="#root/_help_UmgZAfcltxkS">Link Previews</a>@@ -79,19 +85,23 @@<li>Links between other imported pages are converted to <a class="reference-link"href="#root/_help_hrZ1D00cLbal">Internal (reference) links</a> if they arepart of the same import.</li>- <li>Databases are imported as <a class="reference-link" href="#root/pOsGYCXsbNQG/_help_GTwFsgaA0lCt">Collections</a> (see+ <li>Databases are imported as <a class="reference-link" href="#root/_help_GTwFsgaA0lCt">Collections</a> (seebelow).</li><li><a href="#root/_help_NwBbFdNZ9h7O">Admonitions</a> are preserved, including itsemoji (added as part of the content).</li>+ <li>Columns are imported as transparent <a href="#root/_help_NdowYOC1GFKS">tables</a>,+ preserving the column definition.</li>+ <li>Table of content blocks are <em>removed</em>, as the table of contents+ is already present in the sidebar (see <a class="reference-link" href="#root/_help_BFvAtE74rbP6">Table of contents</a>),+ as well as in shared notes.</li></ul><h2>Databases</h2>-<p>Notion databases are imported into <a class="reference-link" href="#root/pOsGYCXsbNQG/_help_GTwFsgaA0lCt">Collections</a>,+<p>Notion databases are imported into <a class="reference-link" href="#root/_help_GTwFsgaA0lCt">Collections</a>,where each item of the database is saved as a page in the collection. Through- the use of <a href="#root/pOsGYCXsbNQG/tC7s2alapj8V/zEY4DaJG4YT5/_help_bwZpz2ajCEwO">inherited</a> - <a- class="reference-link" href="#root/pOsGYCXsbNQG/tC7s2alapj8V/zEY4DaJG4YT5/_help_OFXdgB2nNk1F">Promoted Attributes</a>, most of the page properties in Notion are preserved- by the import.</p>-<p>The resulting collection will be <a class="reference-link" href="#root/pOsGYCXsbNQG/GTwFsgaA0lCt/_help_2FvYrpmOXm29">Table</a> regardless+ the use of <a href="#root/_help_bwZpz2ajCEwO">inherited</a> <a class="reference-link"+ href="#root/_help_OFXdgB2nNk1F">Promoted Attributes</a>, most of the page properties+ in Notion are preserved by the import.</p>+<p>The resulting collection will be <a class="reference-link" href="#root/_help_2FvYrpmOXm29">Table</a> regardlessof the original view the database was exported in. That's because the activeview is not saved in the export and the table collection is the most compatiblewith Notion.</p>@@ -117,7 +127,7 @@<tr><td>ID</td><td>Single-valued <code spellcheck="false">number</code> or <code spellcheck="false">text</code> label- (depending of whether a prefix is configured)</td>+ (depending on whether a prefix is configured)</td></tr><tr><td>Multi-select</td>@@ -160,9 +170,9 @@</tr><tr><td>Relation</td>- <td>Mapped to <a href="#root/pOsGYCXsbNQG/tC7s2alapj8V/zEY4DaJG4YT5/_help_Cq5X6iKQop6R">relations</a>,- each link resolved to its target note via the existing cross-page map;- targets outside the import are dropped.</td>+ <td>Mapped to <a href="#root/_help_Cq5X6iKQop6R">relations</a>, each link resolved+ to its target note via the existing cross-page map; targets outside the+ import are dropped.</td></tr><tr><td>Files & Media</td>@@ -188,6 +198,21 @@</tbody></table></figure>+<aside class="admonition note">+ <p><strong>Technical information</strong>+ </p>+ <p>Every page property that can be preserved according to the table above+ is saved as a label or relation to the corresponding note (except for creation+ and modification dates which are saved at note level a).</p>+ <p>To maintain a similar UX to Notion, every property is also turned into + <a+ class="reference-link" href="#root/pOsGYCXsbNQG/tC7s2alapj8V/zEY4DaJG4YT5/_help_OFXdgB2nNk1F">Promoted Attributes</a> at collection level. This also makes the+ columns visible in the table collection. The promoted attributes are made+ inheritable so that they appear when navigating in the child notes as well.</p>+ <p>The names of the labels are intentionally converted to <code spellcheck="false">camelCase</code> to+ match Trilium's conventions, but the full name of the column is preserved+ through the <em>Alias</em> mechanism of promoted attributes.</p>+</aside><h2>Limitations</h2><h3>Missing data from the import</h3><p>The following information is not preserved by the import because it isdiff --git a/docs/User Guide/!!!meta.json b/docs/User Guide/!!!meta.jsonindex 326e9071fa..e8ab3e51bb 100644--- a/docs/User Guide/!!!meta.json+++ b/docs/User Guide/!!!meta.json@@ -7166,42 +7166,42 @@{"type": "relation","name": "internalLink",- "value": "NwBbFdNZ9h7O",+ "value": "GTwFsgaA0lCt","isInheritable": false,"position": 110},{"type": "relation","name": "internalLink",- "value": "wy8So3yZZlH9",+ "value": "NwBbFdNZ9h7O","isInheritable": false,- "position": 130+ "position": 120},{- "type": "label",- "name": "shareAlias",- "value": "notion",+ "type": "relation",+ "name": "internalLink",+ "value": "NdowYOC1GFKS","isInheritable": false,- "position": 30+ "position": 130},{"type": "relation","name": "internalLink",- "value": "GTwFsgaA0lCt",+ "value": "BFvAtE74rbP6","isInheritable": false,"position": 140},{"type": "relation","name": "internalLink",- "value": "OFXdgB2nNk1F",+ "value": "bwZpz2ajCEwO","isInheritable": false,"position": 150},{"type": "relation","name": "internalLink",- "value": "bwZpz2ajCEwO",+ "value": "OFXdgB2nNk1F","isInheritable": false,"position": 160},@@ -7218,6 +7218,20 @@"value": "Cq5X6iKQop6R","isInheritable": false,"position": 180+ },+ {+ "type": "relation",+ "name": "internalLink",+ "value": "wy8So3yZZlH9",+ "isInheritable": false,+ "position": 190+ },+ {+ "type": "label",+ "name": "shareAlias",+ "value": "notion",+ "isInheritable": false,+ "position": 30}],"format": "markdown",diff --git a/docs/User Guide/User Guide/Basic Concepts and Features/Import & Export/Importing data from other applications/Notion.md b/docs/User Guide/User Guide/Basic Concepts and Features/Import & Export/Importing data from other applications/Notion.mdindex 9aa73f7770..e452dcb861 100644--- a/docs/User Guide/User Guide/Basic Concepts and Features/Import & Export/Importing data from other applications/Notion.md+++ b/docs/User Guide/User Guide/Basic Concepts and Features/Import & Export/Importing data from other applications/Notion.md@@ -45,6 +45,8 @@ The following features are preserved by Trilium during the import process:* To-do lists* <a class="reference-link" href="../../../Note%20Types/Text/Images.md">Images</a> and <a class="reference-link" href="../../Notes/Attachments.md">Attachments</a>.* Toggle sections+ * Nested toggle sections are also supported.+ * Toggle headings are stripped of their toggle button and become normal headings instead.* <a class="reference-link" href="../../../Note%20Types/Text/Math%20Equations.md">Math Equations</a> (inline or block)* <a class="reference-link" href="../../../Note%20Types/Text/Link%20Previews.md">Link Previews</a>* <a class="reference-link" href="../../../Note%20Types/Text/Developer-specific%20formatting/Code%20blocks.md">Code blocks</a>, with a best-effort attempt to restore the language.@@ -52,6 +54,8 @@ The following features are preserved by Trilium during the import process:* Links between other imported pages are converted to <a class="reference-link" href="../../../Note%20Types/Text/Links/Internal%20(reference)%20links.md">Internal (reference) links</a> if they are part of the same import.* Databases are imported as <a class="reference-link" href="../../../Collections.md">Collections</a> (see below).* [Admonitions](../../../Note%20Types/Text/Block%20quotes%20%26%20admonitions.md) are preserved, including its emoji (added as part of the content).+* Columns are imported as transparent [tables](../../../Note%20Types/Text/Tables.md), preserving the column definition.+* Table of content blocks are _removed_, as the table of contents is already present in the sidebar (see <a class="reference-link" href="../../../Note%20Types/Text/Table%20of%20contents.md">Table of contents</a>), as well as in shared notes.## Databases@@ -59,7 +63,16 @@ Notion databases are imported into <a class="reference-link" href="../../../ColThe resulting collection will be <a class="reference-link" href="../../../Collections/Table.md">Table</a> regardless of the original view the database was exported in. That's because the active view is not saved in the export and the table collection is the most compatible with Notion.-<table><thead><tr><th scope="col">Notion type</th><th scope="col">Trilium</th></tr></thead><tbody><tr><td>Text / Select / Status / Place</td><td>Single-valued <code spellcheck="false">text</code> label</td></tr><tr><td>Number</td><td>Single-valued <code spellcheck="false">number</code> label for plain numbers. Formatted values (currency, percent, thousands separators) are normalized to a bare number, e.g. <code spellcheck="false">$1,200.50</code> → <code spellcheck="false">1200.50</code>.</td></tr><tr><td>ID</td><td>Single-valued <code spellcheck="false">number</code> or <code spellcheck="false">text</code> label (depending of whether a prefix is configured)</td></tr><tr><td>Multi-select</td><td>One text label per option (multi)</td></tr><tr><td>URL / Email / Phone</td><td><code spellcheck="false">url</code> label (<code spellcheck="false">mailto:</code>, <code spellcheck="false">tel:</code> prefix)</td></tr><tr><td>Date</td><td><ul><li data-list-item-id="eee6673ab2869e699cab68ecf33d7f114"><code spellcheck="false">datetime</code> if at least one has time.</li><li data-list-item-id="e2b9de45b9e0044bdd49f52ccbc9d143b"><code spellcheck="false">date</code> if only dates.</li><li data-list-item-id="ea59885b04bf57523709c778687bc94a5">Two attributes if any of the dates have an end date.</li></ul></td></tr><tr><td>Checkbox</td><td><code spellcheck="false">boolean</code> label (<code spellcheck="false">true</code>/<code spellcheck="false">false</code>).</td></tr><tr><td>Person</td><td>One text label per user (multi)</td></tr><tr><td>Created by / Edited by</td><td>Single-valued <code spellcheck="false">text</code> label</td></tr><tr><td>Created time / Last edited time</td><td>Assigned to the note's creation and modification date.</td></tr><tr><td>Relation</td><td>Mapped to <a href="../../../Advanced%20Usage/Attributes/Relations.md">relations</a>, each link resolved to its target note via the existing cross-page map; targets outside the import are dropped.</td></tr><tr><td>Files & Media</td><td>The files are preserved as attachments, and a link to them is prepended to the content of the note for visibility.</td></tr><tr><td>Formulas / Rollup</td><td><p>A <code spellcheck="false">text</code>, <code spellcheck="false">number</code> or <code spellcheck="false">boolean</code> label depending on the value. Dates are rendered as <code spellcheck="false">text</code> because the export doesn't offer any type information.</p><p>The Notion export does not preserve the formula/rollup configuration itself, instead it just exports the value.</p></td></tr><tr><td>Button / Verification / any other type</td><td>Unsupported, they will be dropped from the import.</td></tr></tbody></table>+<table><thead><tr><th scope="col">Notion type</th><th scope="col">Trilium</th></tr></thead><tbody><tr><td>Text / Select / Status / Place</td><td>Single-valued <code spellcheck="false">text</code> label</td></tr><tr><td>Number</td><td>Single-valued <code spellcheck="false">number</code> label for plain numbers. Formatted values (currency, percent, thousands separators) are normalized to a bare number, e.g. <code spellcheck="false">$1,200.50</code> → <code spellcheck="false">1200.50</code>.</td></tr><tr><td>ID</td><td>Single-valued <code spellcheck="false">number</code> or <code spellcheck="false">text</code> label (depending on whether a prefix is configured)</td></tr><tr><td>Multi-select</td><td>One text label per option (multi)</td></tr><tr><td>URL / Email / Phone</td><td><code spellcheck="false">url</code> label (<code spellcheck="false">mailto:</code>, <code spellcheck="false">tel:</code> prefix)</td></tr><tr><td>Date</td><td><ul><li data-list-item-id="eee6673ab2869e699cab68ecf33d7f114"><code spellcheck="false">datetime</code> if at least one has time.</li><li data-list-item-id="e2b9de45b9e0044bdd49f52ccbc9d143b"><code spellcheck="false">date</code> if only dates.</li><li data-list-item-id="ea59885b04bf57523709c778687bc94a5">Two attributes if any of the dates have an end date.</li></ul></td></tr><tr><td>Checkbox</td><td><code spellcheck="false">boolean</code> label (<code spellcheck="false">true</code>/<code spellcheck="false">false</code>).</td></tr><tr><td>Person</td><td>One text label per user (multi)</td></tr><tr><td>Created by / Edited by</td><td>Single-valued <code spellcheck="false">text</code> label</td></tr><tr><td>Created time / Last edited time</td><td>Assigned to the note's creation and modification date.</td></tr><tr><td>Relation</td><td>Mapped to <a href="../../../Advanced%20Usage/Attributes/Relations.md">relations</a>, each link resolved to its target note via the existing cross-page map; targets outside the import are dropped.</td></tr><tr><td>Files & Media</td><td>The files are preserved as attachments, and a link to them is prepended to the content of the note for visibility.</td></tr><tr><td>Formulas / Rollup</td><td><p>A <code spellcheck="false">text</code>, <code spellcheck="false">number</code> or <code spellcheck="false">boolean</code> label depending on the value. Dates are rendered as <code spellcheck="false">text</code> because the export doesn't offer any type information.</p><p>The Notion export does not preserve the formula/rollup configuration itself, instead it just exports the value.</p></td></tr><tr><td>Button / Verification / any other type</td><td>Unsupported, they will be dropped from the import.</td></tr></tbody></table>++> [!NOTE]+> **Technical information**+>+> Every page property that can be preserved according to the table above is saved as a label or relation to the corresponding note (except for creation and modification dates which are saved at note level).+>+> To maintain a similar UX to Notion, every property is also turned into <a class="reference-link" href="../../../Advanced%20Usage/Attributes/Promoted%20Attributes.md">Promoted Attributes</a> at collection level. This also makes the columns visible in the table collection. The promoted attributes are made inheritable so that they appear when navigating in the child notes as well.+>+> The names of the labels are intentionally converted to `camelCase` to match Trilium's conventions, but the full name of the column is preserved through the _Alias_ mechanism of promoted attributes.## Limitations