-
Notifications
You must be signed in to change notification settings - Fork 65
Write up Content section #37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
039d582
Write up versioning and import/export
hola-soy-milk c9becb6
Writeup
hola-soy-milk 35c8a7e
Writeup layouts
hola-soy-milk c49de8f
Add translations page
hola-soy-milk 2df8398
Writeup live preview
hola-soy-milk 089c72d
Write up editor
hola-soy-milk 9092471
Writeup, add descriptions
hola-soy-milk 75ca168
Update content/3.content/2.editor.md
hola-soy-milk 5271405
Update content/3.content/2.editor.md
hola-soy-milk a2bbd9c
Update content/3.content/2.editor.md
hola-soy-milk 7458c46
Update content/3.content/2.editor.md
hola-soy-milk 40e8f38
Update content/3.content/2.editor.md
hola-soy-milk 6569dab
Update content/3.content/2.editor.md
hola-soy-milk 17ab4ee
Update content/3.content/5.live-preview.md
hola-soy-milk 60872c6
Adapt to feedback
hola-soy-milk 5531d9d
Adapt to feedback
hola-soy-milk 555553b
Add missing TODOs
hola-soy-milk ba2959c
Add note on CrowdIn
hola-soy-milk 435d752
Update content/3.content/1.explore.md
phazonoverload 124995f
Move writeup into correct section
hola-soy-milk 5244d02
Expand on version explanation
hola-soy-milk d3fbe3a
Update content/3.content/4.import-export.md
phazonoverload aa68006
Update content/3.content/5.live-preview.md
phazonoverload 49f1351
Update content/3.content/6.content-versioning.md
phazonoverload 8661801
Add "Content Translations" section
hola-soy-milk 8de0a5a
Update content/3.content/7.translations.md
phazonoverload fc4d85c
Update content/3.content/7.translations.md
phazonoverload File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,34 +1,86 @@ | ||
| --- | ||
| description: | ||
| description: Learn to create, duplicate, archive and perform other actions with items using Directus. | ||
| --- | ||
|
|
||
| # Item Editor | ||
|
|
||
| <!-- PREAMBLE ABOUT EDITOR --> | ||
| The item editor is a tailored form for managing individual items and their field values. | ||
|
|
||
| <!-- TODO: IMAGE OF EDITOR --> | ||
|
|
||
| ## Fields & Data Model | ||
|
|
||
| <!-- Small copy, link to data modeling items --> | ||
| <!-- Half/full width, Hidden fields from data modeling settings --> | ||
| You can add fields to items by [configuring the collection's data model](/data-modeling/fields). Here, you can also configure how the fields are displayed in the item editor. | ||
|
|
||
| ## Creating Items | ||
|
|
||
| To create an item, click :icon{name="material-symbols:add-circle-outline-rounded"} in the page header to open the item page. | ||
|
|
||
| Fill in the fields as desired. Note that some of these will be [marked as required](/data-modeling/fields) and need to be filled in, or be dynamic fields. Relations will be filled in here, too. | ||
|
|
||
| ::callout{type="info" title="Singletons"} | ||
|
|
||
| If the collection is configured as a [singleton](/data-modeling/collections) in the data model | ||
| settings, the App will automatically open the item page when selecting the collection. | ||
|
|
||
| :: | ||
|
|
||
| ## Duplicating Items | ||
|
|
||
| <!-- Save as copy when small change --> | ||
| <!-- TODO: IMAGE --> | ||
|
|
||
| When editing an item, you can click on :icon{name="material-symbols:more-vert"} to select some advanced options, amongst them "Save as Copy". Selecting this will save a copy. | ||
|
|
||
| ## Archiving Items | ||
|
|
||
| <!-- 'soft delete' --> | ||
phazonoverload marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| To archive an item, follow these steps, navigate to the content module and select the desired collection. Select the desired item to open the item editor. Click :icon{name="material-symbols:archive"} located in the header and a popup will appear to confirm the action. | ||
|
|
||
| Archived items will not show up in search results or be returned in API responses. They still exist and can be retrieved using specific queries. Archiving can therefore be seen as a form of "soft deleting" an item. | ||
|
|
||
| ::callout{type="info" title="Requires Configuration"} | ||
|
|
||
| Archiving requires an [archive field](/data-modeling/collections) to be configured within the collection's data model | ||
| settings. | ||
|
|
||
| :: | ||
|
|
||
| ## Revisions | ||
|
|
||
| <!-- TODO: IMAGE --> | ||
|
|
||
| As you update field values on items, Directus saves these revisions, and they can be compared side-by-side to the current state. | ||
|
|
||
| To revert an item, navigate to the content module and select the desired collection and select the desired item. Click on "Revisions" in the editor sidebar and then on the revision you wish to preview. Go to "Revisions Made" in the side menu and view the revision differences. Click :icon{name="material-symbols:settings-backup-restore"} to revert the item's values and return to the item page. | ||
|
|
||
| ::callout{type="info" title="Revision Preview"} | ||
|
|
||
| You will also see a "Revision Preview" button in the side menu navigation, which will let you preview all the item's | ||
| values for that revision. | ||
|
|
||
| :: | ||
|
|
||
| ::callout{type="info"} | ||
|
|
||
| You can also revert items [programmatically via the API](/api-reference/system/revisions). | ||
|
|
||
| ::: | ||
|
|
||
| ## Comments | ||
|
|
||
| <!-- TODO: IMAGE --> | ||
|
|
||
| You can add comments to items in the sidebar by clicking on "Comments", which will show the form for submitting one. You can use the @ button to tag specific users in your comment. | ||
|
|
||
| ## Shares | ||
|
|
||
| <!-- TODO: IMAGE --> | ||
|
|
||
| You can create shareable links to view an item in the sidebar by clicking on Shares -> New Share. | ||
|
|
||
| Here, you can specify the name, password, roles allowed to access the item, as well as the start and end dates for the link's validity, followed by the maximum times a link can be used. | ||
|
|
||
| To share the link, click on the new share's :icon{name="material-symbols:more-horiz"} and select either "Copy Link" or "Send Link". You can also edit or destroy the share in this menu. | ||
|
|
||
| ## Next Steps | ||
|
|
||
| <!-- Link to Content Versioning, Live Preview --> | ||
| Learn how to use [content versioning](/content/content-versioning) and the [live preview](/content/live-preview) functionality. | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.