@tanglemedia/directus-collection-portfolio
v0.0.3
Published
Installs the Portfolio Collection to your Directus project.
Readme
@tanglemedia/directus-collection-portfolio
Installs the Portfolio Collection to your Directus project.
The package will install the following collections:
- Portfolio Collection
tngl_portfolio - Portfolio Gallery junction
tngl_portfolio_m2m_file
It also creates a Portfolio folder in the file library. Both the image
and gallery fields upload to and browse from that folder.
Requirements
- Directus >= 10.10.1
- Node >= 18.x.x
Install
npm i @tanglemedia/directus-collection-portfolionpx directus bootstrapto update your database and restart directus
What's inside the package
Portfolio Collection
- Status (defaults to "Draft")
- Sort
- Title
- Slug (auto-generated from Title, prefixed with
SITE_BASE_URL/portfolio/) - Lead
- Date Completed (
date_completed) - Client
- Categories
- Image (banner image, scoped to the Portfolio folder)
- Flex Content (
tngl_flx_cntnt; only added when the Flex Editor package is installed) - Gallery (multiple images, scoped to the Portfolio folder)
- SEO group
- Keywords
- Description
Permissions
- Website — read
- Staff — create, read, update, delete
Environment Variables
| Variable | Purpose |
| --- | --- |
| SITE_BASE_URL | Used as the prefix of the slug field (<SITE_BASE_URL>/portfolio/) |
