Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

A new component block for the redesign

A new block type for a component the old design did not have, defined in INI with an existing handler.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/build-two-ways/examples/redesign/new-component-block.md

On this page

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

  1. In the Layouts editor
  2. With templates
  3. Which to choose
  4. Check

In the Layouts editor

  1. The palette lists it in its Category group.

With templates

  1. Define [BlockDefinition_pricing] and AvailableBlocks[]=pricing with a handler that has the fields you need (expLayoutsComponentBlockHandler gives title, content, image, link, CSS class and ID), and explayouts/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.

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.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x