A new look for one class in lists
Recipes in card view show the cooking time.
Life cycle: Redesign, example 17 of 34. Worked out on the Fit & Healthy site of Exponential 6.0.15+.
Contents
In the Layouts editor
- Lists with Item view type Card show recipes with the new template.
With templates
- The theme's
itemViewTemplate()preferscontent/views/<view>/<class>.tpland falls back tocontent/views/<view>.tpl; addextension/mysite/design/media/templates/content/views/card/ng_recipe.tpl.
Which to choose
Per class, so other classes keep the generic card.
Check
- A recipe card shows the cooking time; an article card is unchanged.
Related pages
- How a block maps to its templates
- Redesign examples, every page
- Free documentation: this page is free to copy, translate and improve under the GNU FDL 1.3.
Become an Exponential Partner
Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.