mirror of
https://github.com/directus/directus.git
synced 2026-01-30 22:18:14 -05:00
* add logic to create parent collection before apply * recursively create collection * Recursively delete collection * cleanup * fix import Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com> * fix deconstruction of collections Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com> * fix deconstruction of collections Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com> * Fix destructing * Move type declaration to the top As requested during code review https://github.com/directus/directus/pull/12198#discussion_r857330627 * remove unnecessary empty array check. * remove redundant map functions * replace lodash functions in favor of built-in ones * tweaks * organize imports Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com> Co-authored-by: Stephan Schmitz <eyecatchup@gmail.com>
65 lines
3.0 KiB
Markdown
65 lines
3.0 KiB
Markdown
# Content
|
|
|
|
> The Content Module is the primary way for Users to interact with Items in a Collection. Regardless of what your data
|
|
> model contains _(be it blog posts, event bookings, IoT fleets, geo-positions, CRM, or whatever!)_ the Content Module
|
|
> enables Users to view and manage, sort and search, or import and export data.
|
|
|
|
[[toc]]
|
|
|
|
::: tip Before You Begin
|
|
|
|
To efficiently use this Module, you will need to know about [Collections](/getting-started/glossary/#collections),
|
|
[Items](/getting-started/glossary/#items) and [Fields](/getting-started/glossary/#fields).
|
|
|
|
<!--
|
|
@TODO getting-started > 30-90 min tutorial
|
|
Link to tutorial
|
|
-->
|
|
|
|
:::
|
|
|
|
## Collection Page
|
|
|
|

|
|
|
|
The Content Module is composed of Collection Pages and Item Pages. Use the Navigation Bar on the left to move between
|
|
Collections. Each Collection Page displays all Items in its Collection and comes with highly configurable
|
|
[Layouts](/getting-started/glossary/#layouts) for browsing, visualizing, and managing Items. The Page Header includes
|
|
key action buttons for sorting, searching, filtering, creating, editing, archiving, and deleting multiple Items. To
|
|
learn more, see our guide on the [Collection Page](/app/content/collections).
|
|
|
|
:::tip
|
|
|
|
This Module is for managing Items. Collections are not managed through this Module, as that creates changes in the
|
|
fundamental data model. Administrators manage Collections via the Settings menu. To learn more, see our guide on
|
|
[data model configuration](/configuration/data-model).
|
|
|
|
:::
|
|
|
|
## Item Page
|
|
|
|

|
|
|
|
When an Item is clicked on within the Collection Page, its Item Page is opened. This is a form primarily for viewing,
|
|
editing and deleting an Item. Options for commenting on, sharing, archiving, and reverting the Item are included as
|
|
well. To learn more, see our guide on the [Item Page](/app/content/items).
|
|
|
|
::: tip Manage Items via the API
|
|
|
|
This section explains how to create, view, update, and delete Items within the Directus App. However, all actions
|
|
performed in the app can also be done programmatically.\
|
|
Learn how to [manage Items via the API](/reference/items/).
|
|
|
|
:::
|
|
|
|
## Data Sharing
|
|
|
|
<video title="Data Sharing" autoplay muted loop controls>
|
|
<source src="https://cdn.directus.io/docs/v9/app-guide/content/content/content-20220415A/data-shares-20220415A.mp4" type="video/mp4" />
|
|
</video>
|
|
|
|
In a given Project, some Collections will likely be hidden for the Public as well as other Roles. There may be cases
|
|
when you want to share an Item with a person _(or people)_ that don't have the permissions to see it. This is where
|
|
Shares come in to play. You can share Item from a Collection with anyone, regardless of their permissions and even if
|
|
they are not Users within the project. To learn more, see our guide on [Data Sharing](/app/content/data-sharing).
|