0.0.5 • Published 4 months ago
@tanglemedia/directus-extension-bundle-form-submissions v0.0.5
@tanglemedia/directus-extension-bundle-form-submissions
A Directus extension bundle that adds a form submission module into your Directus project. The package will install the following:
- A collection named tngl_form_submissions
A Form Submissions Analytics dashboard which shows the number of submissions for today, for the past week, month, 2 weeks, 3 months, 6 months, and a year.
It automatically sets the following:
- Creates a new role called Analytics. If the Analytics role already exist, it will not create a new one.
- Anaytics role will have CREATE and UPDATE permissions to the tngl_form_submissions
Requirements
- Directus >= 10.10.1
- Node >= 18.x.x
Install
Add the following variables to your Directus env file:
SITE_BASE_URL
(Base URL of the site you want to track the page views)
npm i @tanglemedia/directus-extension-bundle-form-submissions
npx directus bootstrap
to update your database and restart directus