A row of three features
Three short points side by side: "Plans for every level", "Recipes", "Videos".
Life cycle: Build, example 3 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 Three columns (group Containers) into the zone
main. Its placeholders arecol_1,col_2,col_3. - Open the block palette (+ at the top left) and drag Card (group Basic) into the zone
col_1. Do the same forcol_2andcol_3. - Select the block, open the Design tab and fill on each Card Title, Content, Image URL, Link URL and Link label (default "Read more").
- Publish layout. The pages that use the layout show the block on their next view.
The Features block (group Components) is the one-block alternative with the shared component fields.
With templates
- Write
extension/mysite/design/media/templates/explayouts/tpl_block/features_three.tplin your design extension, clear the template cache, and place it with a Template block whose Template name isfeatures_three(Your own template blocks). - Loop over three content items (for example the children of a folder "Features").
def $features = fetch( 'content', 'list', hash( 'parent_node_id', <folder node id>, 'limit', 3, 'sort_by', array( 'priority', true() ) ) )
<div class="container features-three">
foreach $features as $f
<div class="feature"><h3>$f.name|wash</h3>attribute_view_gui attribute=$f.data_map.short_description</div>
/foreach
</div>
undef $featuresWhich to choose
The columns-and-cards build lets an editor change one card without touching the others; a folder-driven template lets editors change the points as content.
Check
- Three
ngl-cardblocks insidengl-three_columns(block way).
Related pages
- The Design tab
- Your own template blocks
- 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.