Collection Title: Contact
Collection Name: submission
Collection Public Path: contact
Layout: application.html
Template Directory: contact
Fields:
- Name (text)
- Email (text)
- Message (textarea)
Primary Label: Created At
- Locally, create the template directory
contact
in thetemplates
directory. Addindex.html
insidecontact
. For the form, you don't need any other templates. - Add the example
airmail.html
layout to yourlayouts
directory. Add the examplecontact_email.html
template to yourairmail
directory. (If you ever change the directory public path, the name of this file is derrieved from the public make path with_email.html
appended) - Make sure the
contact.js
script is in your scripts.
- Edit the
contact.js
on line 68, so that NUMBER is replaced with the id of your collection. You can find the ID of your collection by going to the Modify view in the admin and looking in the URL.aerostat_collection_id:NUMBER,
- In the Admin, go to Settings and then the Email tab.
- Add your email to the Public Make email list, so emails send to you.