0.0.3 • Published 4 months ago
@tanglemedia/directus-collection-people v0.0.3
@tanglemedia/directus-collection-people
Installs the People Collection to your Directus project.
The package will install the following collections:
People Collection
tngl_people
It automatically sets the following:
- Creates a new role called Website. If the Website role already exist, it will not create a new one.
- Website role will have READ permission to tngl_people collection
- Sets default presets when viewing a list of people
Requirements
- Directus >= 10.10.1
- Node >= 18.x.x
To enable auto-generation of the slug / url based on the title of the collection, please install the following Directus Extensions:
- directus-extension-wpslug-interface
- directus-extension-display-link
Install
Add the following variables to your Directus env file:
SITE_BASE_URL
(Base url of the site. Needed to properly format the full url of the page in the collection)
npm i @tanglemedia/directus-collection-people
npx directus bootstrap
to update your database and restart directus
What's inside the package
People Collection
- Status (defaults to "Draft")
- Title (required)
- Slug / URL (required, unique)
- First Name
- Last Name
- Image
- Job Title
- Contact
- Phone
- Fax
- SEO
- Keywords
- Description