A numbered top-five list
"Top 5 recipes this month", numbered.
Life cycle: Build, example 22 of 35. Worked out on the Fit & Healthy site of Exponential 6.0.15+.
Contents
In the Layouts editor
- Open Layouts > Layouts and the layout Landing Page / Home; the editor opens it in a draft.
- Open the block palette (+ at the top left) and drag List (group Listing) into the zone
main. - Fill the collection with five recipes.
- Select the block, open the Design tab and fill View type
list_numbered. - Publish layout. The pages that use the layout show the block on their next view.
Before explayouts_ui_api 1.3.29, changing only the view type did not save until another field changed (Known editor behaviors).
With templates
- In a template, an
<ol>around the fetched items does the same.
Which to choose
The view type is one choice in the editor.
Check
- The numbers start at 1 and follow the collection order.
Related pages
- Known editor behaviors
- Build 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.