Recipe shortcodes
Shortcodes put recipes inside a Joomla article, a Custom module or any other text that runs content plugins. The Content - JoomRecipe Plugin turns them into recipes; it is enabled by the installer.
Insert a recipe
The easy way: in the article editor, click the Recipe button under the editor, pick a recipe, and the shortcode is inserted for you.
Or type it yourself. The recipe ID is in the ID column of Components > JoomRecipe > Recipes.
{joomrecipe id=5}
The older form {joomrecipe 5} still works and means the same.
Several recipes
Separate the IDs with commas to show a grid:
{joomrecipe id=1,2,3 layout=card columns=3}
The latest recipes of a category
{joomrecipe category=5 count=4 layout=card}
category is the category ID and count the number of recipes (4 by default). The newest published and validated recipes are shown.
Layouts
Add layout= to choose the look:
| Layout | Looks like |
|---|---|
full |
The complete recipe page, with directions, reviews and similar recipes |
card |
A vertical card with picture, title, description, times and ingredients |
card-horizontal |
A card with the picture on the left |
card-horizontal-full |
A wide horizontal card with more details |
stacked |
A centred card with picture, rating and description |
simple |
Picture and title only |
thumbnails |
A picture with the title over it |
calories |
A card that features the calories |
details |
A horizontal layout with a table of details |
default |
A blog-style block with the full details table |
accordion |
A panel that opens on click |
Without layout=, the Default Layout from the plugin options is used: Full unless you change it. Card layouts load only the recipe styles and are much lighter than the full view.
columns= sets the number of columns for several recipes (1, 2, 3, 4 or 6). The default comes from Grid Columns in the plugin options.
Show or hide parts
Add show_<part>=1 or show_<part>=0:
{joomrecipe id=5 layout=card show_rating=0 show_description=0}
For card layouts: show_title, show_thumbnail, show_description, show_rating, show_category, show_author, show_preparation_time, show_cook_time, show_wait_time, show_difficulty, show_cost, show_readmore, show_ingredients.
For layout=full: show_actions, show_directions, show_reviews, show_similar, show_video, show_seasons, show_tags, show_sharingbuttons, show_link.
A value in the shortcode wins over the plugin options, and the plugin options win over the JoomRecipe configuration.
Plugin options
Open System > Plugins and search for Content - JoomRecipe Plugin. Its tabs hold the defaults for every shortcode: Layout Settings (default layout and grid columns), Display Options (Card/Layout Mode) and Full View Options.