Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Layouts

Introduction

Layouts define ordered LayoutRows and LayoutColumns. Their origin records ownership and access; LayoutableLayouts independently associate them with resources and purposes.

Layout structure, resource assignments, and content placement are described under Layouts.

Model Definition

Alias

layout

Origin Entity Types

Layout Types

  • default - Input layout for forms, task templates, and attribute sets.

  • formMessage - Submitted form message layout.

  • formMail - Form email body layout.

The origin type and purpose remain fixed after creation. The purpose of each actual assignment is stored separately; see LayoutableLayouts.

Relations

Key
Relation
Type
Relation Field(s)

originEntity

Origin resource

Morph to

origin_entity_type, origin_entity_id

layoutRows

Has many

layout_id

contentElements

Has many through

Layout rows, columns, and element assignments

formFields

Has many through

Layout rows, columns, and element assignments

Capabilities

List

List visible Layouts.

Definition

GET /api/layouts

Behavior

  • The results can be further restricted using Result Control filters.

  • Requires read access to the relevant layout or origin resource.

Example Request

Example Response

Show

Show one Layout.

Definition

GET /api/layouts/{layout}

Route Parameters

Parameter
Type
Description

layout

integer

Layout ID.

Behavior

  • Requires read access to the relevant layout or origin resource.

Example Request

Example Response

Admin: List

List visible Layouts.

Definition

GET /api/administration/layouts

Behavior

  • The results can be further restricted using Result Control filters.

  • Requires administration access to the relevant layout or origin resource.

Example Request

Example Response

Admin: Show

Show one Layout.

Definition

GET /api/administration/layouts/{layout}

Route Parameters

Parameter
Type
Description

layout

integer

Layout ID.

Behavior

  • Requires administration access to the relevant layout or origin resource.

Example Request

Example Response

Admin: Create

Create one Layout.

Definition

POST /api/administration/layouts

Request Keys

Key
Type
Default
Description

origin_entity_type*

string

-

Origin resource alias; see Origin Entity Types.

origin_entity_id

integer | null

null

Origin resource ID; may be supplied after the resource is created.

origin_entity_layout_type*

string

-

Original purpose from Layout Types.

lang_id

string

System language

Language key; omitting it uses the system language.

title

string | null

null

Translatable title.

sort_number

integer

Automatic

Position within the ordering scope.

Keys with * are required.

Behavior

  • user_id is set to the authenticated user.

  • A layout with no origin_entity_id is accessible to its creator. With an origin, access follows that resource; administration operations require administration access to it.

  • Creating a layout does not attach it to a resource. Supply layouts when creating or updating the resource, or use LayoutableLayouts.

Example Request

Example Response

Admin: Update

Update one Layout.

Definition

PUT /api/administration/layouts/{layout}

Route Parameters

Parameter
Type
Description

layout

integer

Layout ID.

Request Keys

Key
Type
Default
Description

origin_entity_id

integer | null

Current value

Origin resource ID; may be supplied after the resource is created.

lang_id

string

Current value

Language key; omitting it uses the system language.

title

string | null

Current value

Translatable title.

sort_number

integer

Current value

Position within the ordering scope.

Behavior

  • An existing origin_entity_id cannot be changed. It may be filled once while unset, and the caller must have administration access to the new origin.

  • user_id, origin_entity_type, and origin_entity_layout_type cannot be changed.

Example Request

Example Response

Admin: Delete

Delete one Layout.

Definition

DELETE /api/administration/layouts/{layout}

Route Parameters

Parameter
Type
Description

layout

integer

Layout ID.

Behavior

  • Requires administration access to the affected layout or origin resource.

Example Request

Example Response

Last updated