A new component block for the redesign
A "pricing table" component editors can drag in.
Life cycle: Redesign, example 7 of 34. Worked out on the Fit & Healthy site of Exponential 6.0.15+.
Contents
In the Layouts editor
- The palette lists it in its Category group.
With templates
- Define
[BlockDefinition_pricing]andAvailableBlocks[]=pricingwith a handler that has the fields you need (expLayoutsComponentBlockHandlergives title, content, image, link, CSS class and ID), andexplayouts/block/pricing.tpl(Add a block type).
Which to choose
Reuse a handler when its fields fit; write one only for new fields.
Check
- The block renders
ngl-pricing.
Related pages
- Add a block type
- 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.