Skip to content

Commit 7a35baf

Browse files
committed
Formatted images and some fixes
1 parent b4700bb commit 7a35baf

File tree

5 files changed

+19
-10
lines changed

5 files changed

+19
-10
lines changed

15/umbraco-ui-builder/collections/child-collections.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ This page is a work in progress and may undergo further revisions, updates, or a
99
{% endhint %}
1010

1111
A child collection is a container for data models that are tied to a parent collection. The child collection system shares the [Collections](the-basics.md) API, offering flexibility for managing and displaying related data within your backoffice UI.
12+
1213
![Child Collections](../images/child_collections.png)
1314

14-
By default, child collections are displayed as context apps within the parent model's editor view. If multiple child collections lead to an overcrowded context apps area, consider using the [Child Collection Groups API](child-collection-groups.md). Using the aPI you can group related child collections under a single context app, with each child collection appearing in separate tabs.
15+
By default, child collections are displayed as context apps within the parent model's editor view. If multiple child collections lead to an overcrowded context apps area, consider using the [Child Collection Groups API](child-collection-groups.md). Using the API, you can group related child collections under a single context app, with each child collection appearing in separate tabs.
1516

1617
## Defining a Child Collection
1718

15/umbraco-ui-builder/collections/field-views.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Field Views allow customization of the markup used by a field when displayed in
1010

1111
You can define a field view in one of two ways:
1212

13-
### 1. Basic View File for the Built-In `FieldView` View Component
13+
### Basic View File for the Built-In `FieldView` View Component
1414

1515
For field views, place a view file in the `/Views/Shared/Components/FieldView` folder with the following markup.
1616

@@ -21,7 +21,7 @@ For field views, place a view file in the `/Views/Shared/Components/FieldView` f
2121

2222
WTo register the view, pass the name of the view file (excluding the `.cshtml` file extension) to the relevant API method.
2323

24-
### 2. Custom View Component
24+
### Custom View Component
2525

2626
For more complex field views, create a custom view component class that can use dependency injection for any required dependencies. Use the following signature:
2727

15/umbraco-ui-builder/collections/related-collections.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,6 @@ The relation config alias must match the related collection picker field alias,
142142

143143
### Using the `GetRelationsByParentIdImpl<>()` Method
144144

145-
**IEnumerable<StudentCourse> GetRelationsByParentIdImpl<StudentCourse>(int parentId, string relationAlias)**
146-
147145
Retrieves related collections based on the ID of the parent entity.
148146

149147
#### Method Syntax

15/umbraco-ui-builder/collections/retrieve-child-collections.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
description: Configuring **one-to-many** relationships in Umbraco UI Builder.
2+
description: Configuring one-to-many relationships in Umbraco UI Builder.
33
---
44

55
# Retrieve Child Collections

15/umbraco-ui-builder/collections/the-basics.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ collectionConfig.SetIconColor("blue");
8686

8787
## Defining an Entity Name
8888

89-
In Umbraco, every entity is expected to have a name property. To ensure the Umbraco UI Builder knows which property to use, you must specify it. If the entity lacks a dedicated name property, you can define how to construct a name using other properties. This is done using either the `SetNameProperty` or `SetNameFormat` methods on a `Collection` config builder instance.
89+
In Umbraco, every entity is expected to have a name property. To ensure the Umbraco UI Builder knows which property to use, you must specify it.
90+
91+
If the entity lacks a dedicated name property, you can define how to construct a name using other properties. This is done using either the `SetNameProperty` or `SetNameFormat` methods on a `Collection` config builder instance.
9092

9193
### Using the `SetNameProperty()` Method
9294

@@ -106,7 +108,11 @@ collectionConfig.SetNameProperty(p => p.Name);
106108

107109
### Using the `SetNameProperty()` Method with Custom Heading
108110

109-
Specifies which property of your entity should be used as the name property and defines a custom heading for the list view column. The property must be of type `string`. Setting a name property ensures its value is displayed as the label for the entity in trees and list views. It will also be editable in the editor interface's header region. Additionally, the property is automatically added to the searchable properties collection and used as the default sort property.
111+
Specifies which property of your entity should be used as the name property and defines a custom heading for the list view column. The property must be of type `string`.
112+
113+
Setting a name property ensures its value is displayed as the label for the entity in trees and list views. It will also be editable in the editor interface's header region.
114+
115+
Additionally, the property is automatically added to the searchable properties collection and used as the default sort property.
110116

111117
#### Method Syntax
112118

@@ -122,7 +128,9 @@ collectionConfig.SetNameProperty(p => p.Name, "Person Name");
122128

123129
### Using the `SetNameFormat()` Method
124130

125-
Defines a format expression to dynamically generate a label for the entity in trees and list views. This method is used when there is no single name property available on the entity. As a result, none of the default behaviors of the `SetNameProperty` method, such as automatic sorting, searching, or header editing, will apply.
131+
Defines a format expression to dynamically generate a label for the entity in trees and list views.
132+
133+
This method is used when there is no single name property available on the entity. As a result, none of the default behaviors of the `SetNameProperty` method, such as automatic sorting, searching, or header editing, will apply.
126134

127135
#### Method Syntax
128136

@@ -210,7 +218,9 @@ By default, entities deleted via the Umbraco UI Builder repository are permanent
210218

211219
### Using the `SetDeletedProperty()` Method
212220

213-
Defines the property of the entity to use as the deleted flag. The property must be of type `boolean` or `int`. When set, delete actions will mark the entity as deleted by setting the flag instead of removing the entity. For `boolean` properties, the flag is set to `True` when deleted. For `int` properties, the flag is set to a UTC Unix timestamp representing the deletion date. Additionally, fetch actions will automatically exclude deleted entities.
221+
Defines the property of the entity to use as the deleted flag. The property must be of type `boolean` or `int`. When set, delete actions will mark the entity as deleted by setting the flag instead of removing the entity.
222+
223+
For `boolean` properties, the flag is set to `True` when deleted. For `int` properties, the flag is set to a UTC Unix timestamp representing the deletion date. Additionally, fetch actions will automatically exclude deleted entities.
214224

215225
#### Method Syntax
216226

0 commit comments

Comments
 (0)