Skip to content

Content types ​

Consists of collections where each entry is accessible via url. It is build using blocks, contains metadata settings and more.

By default there are:

  • Pages
  • Posts
  • Services

Here you will learn how to manage them.

Adding new contet types ​

As usual we have to first define new data model in Directus.

Defining new content type ​

  1. Run CLI
sh
$ npx tantalum-cli setup-new-content-type
sh
$ pnpm dlx tantalum-cli setup-new-content-type
sh
$ yarn dlx tantalum-cli setup-new-content-type
sh
$ bun x tantalum-cli setup-new-content-type
  1. Answer questions
  2. Wait for CLI to do it's job.
  3. That's it 🎉. Open your Directus you will see your new collection.

Adding new item to new content type ​

  1. Open your

Add content type in Nuxt ​