1
0
Fork 0
mirror of https://github.com/anyproto/docs.git synced 2025-06-07 21:37:03 +09:00

GITBOOK-245: Update_Create a new type

This commit is contained in:
Charlotte Chiang 2023-07-11 14:47:53 +00:00 committed by gitbook-bot
parent 0ad7361e97
commit d2ddf5865e
No known key found for this signature in database
GPG key ID: 07D2180C7B12D0FF
8 changed files with 18 additions and 14 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 366 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 366 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 218 KiB

View file

@ -1,29 +1,33 @@
---
description: How to create a new type.
description: How to create new types from the library and your editor
---
# Create a New Type
From the [anytype-library](../anytype-library/ "mention") you can create a new **Type** by clicking the middle bar.
The [anytype-library](../anytype-library/ "mention") is the central place to manage, search for, and create new types.
The classification hierarchy goes as follows:
### Creating Types from the Library
1. Types
2. Templates
3. Relations
Click on the search bar and input the name of the type you'd like to create. The dropdown menu will be populated with any matching terms from the Anytype lbirary. You can select any of these, and they'll be installed newly in your types library. If you'd prefer instead to create your own type, simply choose the option `+ Create type "Type name".`
### To create a type navigate to you Library
<figure><img src="../../.gitbook/assets/Types Library.png" alt=""><figcaption></figcaption></figure>
Click on the bar in the middle and select the first option, Create new type.&#x20;
If you opt to create your own type, the Type page will open automatically. From here, you can add templates and relations to the type, which will be applied automatically any time you create an object of this type.
![](<../../.gitbook/assets/image (8).png>)
<figure><img src="../../.gitbook/assets/Type page.png" alt=""><figcaption></figcaption></figure>
Next you will be prompted to give a name to your Type.
If you've decided that this Type is no relevant, you can use the three-dots menu in the corner to delete the type from your space. Please proceed with caution; any objects of this type will show an alert if the type has been removed from your library.
Underneath, you can create new templates for your type. Create as many as you'd like. When selecting the type in a new document, you will be prompted with your choices of templates.
<figure><img src="../../.gitbook/assets/Delete type.png" alt=""><figcaption></figcaption></figure>
![](<../../.gitbook/assets/image (37).png>)
### Creating Types from the Object Editor
Here in the Type you can also add any Relations that go with this type.&#x20;
In case you think of a new object type just as you're creating an object, you can create a new type on-the-fly. In this case, use the type selection menu in the same way as the search bar in the Types library. The type will be automatically added to your Types library, while you can proceed with editing the object of your new type.
Underneath Relations you can also see any objects that are attached to this Type. This will become populated once you start using your new type.
<figure><img src="../../.gitbook/assets/Type Creation on-the-fly.png" alt=""><figcaption></figcaption></figure>
If you decide later on that you want to convert your object to a new object type _after it's created_, again - you can do so by selecting the object type, choosing 'Change type', and entering the name of the type which you would like to create.
<figure><img src="../../.gitbook/assets/Type creation from change-type menu (1).png" alt=""><figcaption></figcaption></figure>
Any type you create from the object editor will be available for editing in the types library using the steps above.