Directory
A directory shows the submissions of one form on your site: a list with search, a details page for each submission, and optional CSV and PDF downloads. Use it for a member list, a list of classified ads or a public results page.
Set up the directory in the administrator
- Click Directories in the JoomForms sidebar. Each form shows Configured or Not configured.
- Click a form. Its directory editor opens. You can also click Directory in the form editor's toolbar.
- Set the tabs below and click Save. The directory is now Configured.
General
| Setting | Meaning |
|---|---|
| Enable PDF Support | Adds a PDF download of each submission. Needs the PDF plugin. |
| PDF Filename | The name of the PDF file. |
| Enable CSV Support | Adds a CSV download of the list. |
| CSV Filename | The name of the CSV file. Use {formid}, {domain}, {date} and {alias}. |
| Hide Empty Values | Leaves out empty fields on the details page. |
| Show Google Map | Shows the map of a Google Map field. |
Fields
For each field of the form, tick where it appears:
| Column | Meaning |
|---|---|
| Show in Listing | A column in the list. |
| Searchable | Included in the search. |
| Editable | Can be changed by people who may edit. |
| Show in Details | Shown on the details page. |
| Export to CSV | Included in the CSV download. |
Layout
The Design of the details page: Inline, Inline + Titles, 2 Lines, 2 Lines + Titles or 2 Columns. Auto Generate Layout writes the HTML for you; turn it off to edit the Details Layout by hand, and use Generate Layout to start over.
Permissions
| Setting | Meaning |
|---|---|
| Can edit submissions | The user groups that may edit every submission. |
| Can delete submissions | The user groups that may delete every submission. |
| Edit own submissions | Logged-in users may edit their own submissions. |
| Delete own submissions | Logged-in users may delete their own submissions. |
Give Can edit submissions and Can delete submissions only to groups you trust, such as your staff. In 2.1.2 these rights are not limited to the form of the directory.
Emails
Emails sent when a submission is changed in the directory. Click New Email to add one, with the same settings as a form email. See Emails.
Custom Design and Scripts
CSS and Javascript for the directory pages, and PHP scripts: Scripts called on Listing Layout ($directoryLayout), Scripts called on Details Layout ($detailsLayout) and the PHP Email scripts for the directory emails.
Show the directory on the site
Create a menu item of type JoomForms > Submissions - Directory and set:
| Setting | Meaning |
|---|---|
| Form | The form. |
| Enable Directory | Must be Yes, or the page does not open. |
| Language | Show only submissions sent in this language. |
| Show Field Descriptions | Shows the field descriptions next to the values. |
| Show Only Confirmed Submissions | Hides submissions that were not confirmed by email. |
| Show Only Filtering Results | Shows the list only after the visitor searches. |
| Show All Submissions | Yes (the default) lists the submissions of all visitors. |
| Show Logged In User's Submissions | Lists only the current user's own submissions. |
| Show Submissions For User ID | Lists only the submissions of one user. |
| Items Number | Submissions per page. |
| CSV Enclosure, CSV Delimiter | For the CSV download. |
| Filter Glue, Filter Values | On the advanced tab: show only submissions with given values, joined with OR or AND. |
Show All Submissions is on by default, so everyone who can open the menu item sees every submission. For personal data, set the menu item's Access to a group, or use Show Logged In User's Submissions.