Recipes from your users
Registered users can send their own recipes from the site, with the same fields you use in the administrator. You decide whether a new recipe goes live at once or waits for you, and how many recipes each user group may send.
Set it up
- Permissions. In Components > JoomRecipe > Configuration > Permissions, give the group that may submit (usually Registered) Create and Edit Own. Add Delete own elements if users may delete their own recipes. See Permissions.
- Menu items. Create a Create Recipe menu item for the form and a My recipes management menu item where users see, edit and delete their recipes. Give both the access level Registered. Guests who open the form are sent to the login form.
- The Add Recipe button. Add Recipe Button in Configuration > Recipes shows a button to the form above recipe lists.
Moderation
Two options in Configuration > Recipe Form > General decide what happens to a new or changed recipe:
| Option | Default | Meaning |
|---|---|---|
| Auto publish | Yes | The recipe is published when saved. |
| Auto validate | No | The recipe is validated when saved. |
A recipe shows on the site only when it is both published and validated. With the defaults, a user's recipe waits until you validate it. To do that, go to Components > JoomRecipe > Recipes, filter on the validation state, then select the recipes and click Validate in the toolbar, or open a recipe and set Validated to Yes.
To publish recipes from trusted users without checking them, set Auto validate to Yes.
Submission limits
Submissions Limit in Configuration > Recipe Form > General sets the most recipes a user of each group may create. Leave a group at 0 for no limit. A user in several groups gets the highest limit of their groups. All the user's recipes count, published or not. When the limit is reached, opening the form shows a message and takes the user to their chef page.
Email notifications
In Configuration > Recipe Form > Notifications:
| Option | Sends an email to | When |
|---|---|---|
| Notify User on create | the author | their recipe is saved for the first time |
| Notify User on validate | the author | you validate their recipe |
| Notify Admin on Create | the Admin Email | a user creates a recipe |
| Notify Admin on Update | the Admin Email | a user changes a recipe |
The Admin Email is set in Configuration > Main Features. If it is empty, Joomla's site email is used.
The form
Configuration > Recipe Form also sets how the form looks and what it accepts:
- General: Form Display as Tabs or Cards, a Sticky Actions Bar with the save buttons, and whether to show the Language field, the SEO Tab and the Image Alt Text.
- Main Image: Resize picture with a Max width, the Max upload size in KB and the Authorized extensions (jpg, jpeg, png, gif, webp and avif by default). Image Upload Method chooses the built-in uploader or Joomla's media field, for the administrator form.
- Gallery Upload: the size, number and width of gallery pictures, and the size of step pictures and videos.
- Ingredients and Directions: the type of each field; see Ingredients and Directions.
- Field Visibility: by default the form shows the fields the recipe page shows (Use Recipe Settings). Set it to No to choose the fields for the form only.
- Dropdown Sort Order: the order of cuisines, serving types, seasons and tags in their lists.
A module in the joomrecipe-top-editrecipe position shows above the form, for example with rules for submitters.