Cuisine types
Cuisine types such as Italian, Mexican or Thai group recipes by origin. They are on by default; switch them off with Use Cuisines in Configuration > Main Features.
JoomRecipe starts with a list of cuisines, among them American, Asian, Caribbean, Chinese, French, Hungarian, Indian, Irish, Italian, Korean, Latin, Mediterranean, Mexican, Moroccan, Tex-Mex and Thai.
Add a cuisine type
A cuisine type has a code and a name. The code is stored with the recipe; the name is a language string, so the same cuisine can have a name in each language of your site.
1. Create the cuisine
- Go to Components > JoomRecipe > Cuisine Types and click New.
- Enter the Cuisine Type CODE in capitals, letters and numbers only, with an underscore between words. For example
WEST_AFRICAN. - Add a Cuisine Description and a Cuisine Image for the cuisine page, a text and background colour on Label Colors, and the browser title, meta description and robots on the SEO tab.
- Save.
2. Give it a name
- Go to System > Language Overrides.
- Choose the Administrator language you want, for example English (en-GB) - Administrator, and click New.
- Language Constant:
COM_JOOMRECIPE_CUISINE_followed by your code, for exampleCOM_JOOMRECIPE_CUISINE_WEST_AFRICAN. - Text: the name, for example "West African".
- Tick For both locations, so the name also shows on the site, and save.
- Repeat for each language of your site.
Without this string the site shows the language constant instead of a name.
Cuisine pages
Cuisine names on recipes link to a cuisine page with the cuisine's picture, description and recipes, when Link Cuisines is on. A By Cuisine menu item shows one cuisine or all of them. To give cuisine pages clean URLs, select that menu item as Default Cuisine Menu Item in Configuration > SEO / Routing.
The order of cuisines in the recipe form's list is set by Cuisine select order in Configuration > Recipe Form > Dropdown Sort Order.