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
- 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
- Answer questions
- Wait for CLI to do it's job.
- That's it 🎉. Open your Directus you will see your new collection.
Adding new item to new content type
- Open your