@tanglemedia/directus-collection-location
v0.0.3
Published
Installs the Location Collection to your Directus project.
Readme
@tanglemedia/directus-collection-location
Installs the Location Collection to your Directus project.
The package will install the following collections:
- Location Collection
tngl_location
Requirements
- Directus >= 10.10.1
- Node >= 18.x.x
Install
npm i @tanglemedia/directus-collection-locationnpx directus bootstrapto update your database and restart directus
What's inside the package
Location Collection
- Status (defaults to "Draft")
- Title
- URL (
slug, unique) - Image (
directus_filesrelation) - Address group
- Street 1
- Street 2
- City
- Province
- Country
- Contact group
- Phone
- Fax
- Location (geographic
point, rendered as a map) - Content (
tngl_flx_cntnt— Flex Editor content, requires@tanglemedia/directus-collection-flex-editor) - SEO group
- Keywords
- Description
Fields are ordered so the Content editor appears immediately before the SEO group.
The slug prefix is built from the
SITE_BASE_URLenvironment variable, e.g.${SITE_BASE_URL}/locations/.
