Drag and drop areas allow content creators to place modules, change layout, and some styling within the content editors. Developers create predefined layouts.
dnd_area
experience and concepts. Once you’re ready to build, see getting started with dnd_area, and the dnd_area reference.
dnd_area
tags.dnd_area
tags.dnd_area
tags can only be swapped for other coded templates without dnd_area
tags.dnd_area
tags in use.
dnd_section
cannot contain a dnd_area
tag.dnd_area
. Can contain dnd_row
, dnd_column
, and dnd_module
. You cannot nest a dnd_section
within other drag and drop elements.dnd_row
. Multiple columns within a dnd_row
will align the row’s contents horizontally.dnd_module
and dnd_column
.dnd_section
tag. They are the only drag and drop element that can be a direct descendant of a dnd_area
. You can think of sections like an outer wrapping container. They can enable content to be full width or have a confined center max-width. Because sections wrap around columns and modules, it makes it easy to rearrange and implement large portions of content. The dnd_section
tag does not render an HTML <section>
element.
Below is a screenshot of how a section appears in the page editor.
dnd_section
tag, you can also create section templates which are pre-defined reusable sections that content creators can access in the page editor. For example, you could build the section shown in the screenshot above as a section template so that a content creator could quickly add it to pages as needed. Section templates have some unique capabilities, including being able to use them similar to a standard hubL template partial.
dnd_column
tag.
Use multiple columns inside of a row to place rows and the modules they contain horizontally.
Columns are vertical regions that can contain rows. You can make columns of different sizes by changing their width. A row’s size is 12 “columns” wide, this refers to the CSS grid. The columns inside of a row can be any size smaller than 12 but cannot add up to more than 12.
When multiple rows are placed inside of a column the modules inside of those rows will appear vertically stacked. Since modules are columns themselves, a module cannot be a direct descendant of a column, they must be contained within a row.
dnd_row
tag. Since modules are columns you can place them directly inside of a row. This will cause the modules to appear horizontally adjacent to each other.
Modules can be organized vertically by placing them inside of rows. If you want to place a module above another you would place that module inside a row. You would then add another module in a row above or below that first row.
dnd_module
tag. Modules are also columns. Meaning if you place two module tags, or a module and a column directly next to each other, they will appear side-by-side horizontally.
No drag and drop elements can be placed within a module. Modules cannot be direct children of a dnd_area
.
widget-span
and widget-type-cell
. You should not directly target these classes as they are used by page-editor and could change down the road.
Instead in your dnd_area
HubL add a class parameter with a class name you would like to use
standard_header_includes
.