define_section
Author a new kind of section for this shop, as a layout tree. Use this when the shop has nothing that does what the merchant asked for. The type is forced into the custom. namespace and cannot shadow a built-in or the theme's. If it is refused you get the exact reasons back; fix them and try again. Call get_design_guide first if you have not: it has the layout language and the rules.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Lower case, dashes. Becomes custom.<name>. | |
| definition | Yes | label, category, description, icon, fields (the settings it takes) and render (the layout tree). See the DSL reference in your instructions. |