Table of Contents

Row types

Rows are content elements which are used to create a content grid on pages where the page type supports it. Images

Each row can have up to 6 columns - acting as slots for paragraph types - and a number of settings which control e.g. the width of each column, if column widths are fixed or flexible, and so on.

Location of files

A row definition is associated with:

  • An definition-file which contains the row id, name, column count, etc.
  • A row template which translates the values in the definition into markup

Row definitions and row templates are stored in subfolders to the Swift-v2 design-folder. Each Grid has a separate subfolder - Swift 2 has one for Page and one for Email - under which you will find the definitions and templates:

/Files/
├── Images/
├── System/
├── Templates/
│   ├── Designs/
│   │   ├── Swift-v2/ 
│   │   │    ├── Grid/
│   │   │    │    ├── Page/
│   │   │    │    │    ├── RowDefinitions/ <---- This folder
│   │   │    │    │    ├── RowTemplates/ <---- And this folder

Row types

DynamicWeb Swift features two different grids out of the box:

  • Page - which is used on pages of the Page type
  • Email - which is used on pages of the Email type

Both of these grids have their own row types - with dedicated definitions and templates - which are listed below.

Page rows

The following row types exist out of the box for the Page-grid:

Name Column Count Column Width Type Template
1 column 1 Fixed Swift-v2_Row.cshtml
1 column flexible 1 Fixed Swift-v2_RowFlex.cshtml
2 columns 2 Fixed Swift-v2_Row.cshtml
2 columns flexible 2 Flexible Swift-v2_RowFlex.cshtml
2 columns (3/9) 2 Fixed Swift-v2_Row.cshtml
2 columns (4/8) 2 Fixed Swift-v2_Row.cshtml
2 columns (8/4) 2 Fixed Swift-v2_Row.cshtml
2 columns (9/3) 2 Fixed Swift-v2_Row.cshtml
3 columns 3 Fixed Swift-v2_Row.cshtml
3 columns flexible 3 Flexible Swift-v2_RowFlex.cshtml
4 columns 4 Fixed Swift-v2_Row.cshtml
4 columns flexible 4 Flexible Swift-v2_RowFlex.cshtml
6 columns 6 Fixed Swift-v2_Row.cshtml
6 columns flexible 6 Flexible Swift-v2_RowFlex.cshtml

Email-rows

The following row types exist out of the box for the Email-grid:

Name Column Count Column Width Type Template
Email 1 column 1 Fixed Swift-v2_EmailRow.cshtml
Email 2 columns 2 Fixed Swift-v2_EmailRow.cshtml
Email 3 columns 3 Fixed Swift-v2_EmailRow.cshtml
1 Column 1 Fixed 1Column.cshtml
2 Columns 2 Fixed 2Columns.cshtml
3 Columns 3 Fixed 3Columns.cshtml
To top