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
form- Forms.taskTemplate- TaskTemplates.attributeSet- AttributeSets.
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
originEntity
Origin resource
Morph to
origin_entity_type, origin_entity_id
Capabilities
Translations - Localizes
title.
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
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
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
origin_entity_id
integer | null
null
Origin resource ID; may be supplied after the resource is created.
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_idis set to the authenticated user.A layout with no
origin_entity_idis 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
layoutswhen 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
layout
integer
Layout ID.
Request Keys
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_idcannot 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, andorigin_entity_layout_typecannot be changed.
Example Request
Example Response
Admin: Delete
Delete one Layout.
Definition
DELETE /api/administration/layouts/{layout}
Route Parameters
layout
integer
Layout ID.
Behavior
Requires administration access to the affected layout or origin resource.
Example Request
Example Response
Last updated