Skip to content

Commit 93b7fdc

Browse files
committed
Incoproated review comment
1 parent 10c2cdb commit 93b7fdc

File tree

1 file changed

+21
-17
lines changed

1 file changed

+21
-17
lines changed

15/umbraco-ui-builder/areas/sections.md

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ A section in Umbraco represents a distinct area within the backoffice, such as c
1212

1313
Sections are defined using the `AddSection` method on the root-level `UIBuilderConfigBuilder` instance.
1414

15-
### Example: Using the `AddSection()` Method
15+
### Using the `AddSection()` Method
1616

1717
This method adds a new section to the Umbraco menu with the specified name, allowing custom areas for organizing content in the backoffice.
1818

@@ -22,9 +22,13 @@ config.AddSection("Repositories", sectionConfig => {
2222
});
2323
```
2424

25-
**Code Reference:** `AddSection(string name, Lambda sectionConfig = null) : SectionConfigBuilder`
25+
**Code Reference:**
2626

27-
### Example: Using the `AddSectionBefore()` Method
27+
```cs
28+
AddSection(string name, Lambda sectionConfig = null) : SectionConfigBuilder
29+
```
30+
31+
### Using the `AddSectionBefore()` Method
2832

2933
This method adds a section before another section with the specified alias, allowing for customized ordering of sections in the backoffice.
3034

@@ -36,7 +40,7 @@ config.AddSectionBefore("settings", "Repositories", sectionConfig => {
3640

3741
**Code Reference:** `AddSectionBefore(string beforeAlias, string name, Lambda sectionConfig = null) : SectionConfigBuilder`
3842

39-
### Example: Using the `AddSectionAfter()` Method
43+
### Using the `AddSectionAfter()` Method
4044

4145
This method adds a section after another section with the specified alias, allowing for a custom order of sections in the backoffice.
4246

@@ -50,7 +54,7 @@ config.AddSectionAfter("media", "Repositories", sectionConfig => {
5054

5155
## Customizing the Section Alias
5256

53-
### Example: Setting a Custom Alias with `SetAlias()`
57+
### Setting a Custom Alias with `SetAlias()` Method
5458

5559
This method sets a custom alias for the section.
5660

@@ -64,7 +68,7 @@ sectionConfig.SetAlias("repositories");
6468

6569
## Configuring the Section Tree
6670

67-
### Example: Using the `Tree()` Method for Configuration
71+
### Using the `Tree()` Method for Configuration
6872

6973
This method configures the tree structure for the section, which is used to organize content types. For more information, see the [Trees](trees.md) article.
7074

@@ -78,7 +82,7 @@ sectionConfig.Tree(treeConfig => {
7882

7983
## Adding Dashboards to the Section
8084

81-
### Example: Adding a Dashboard with `AddDashboard()`
85+
### Adding a Dashboard with the `AddDashboard()` Method
8286

8387
This method adds a dashboard to the section with the specified alias, providing tools and features for content management. For more information, see the [Dashboards](dashboards.md) article.
8488

@@ -90,7 +94,7 @@ sectionConfig.AddDashboard("Team", dashboardConfig => {
9094

9195
**Code Reference:** AddDashboard(string name, Lambda dashboardConfig = null) : DashboardConfigBuilder
9296

93-
### Example: Using `AddDashboardBefore()` to Place a Dashboard
97+
### Using `AddDashboardBefore()` to Place a Dashboard
9498

9599
This method adds a dashboard before another dashboard with the specified alias, allowing custom placement in the section. For more information, see the [Dashboards](dashboards.md) article.
96100

@@ -102,7 +106,7 @@ sectionConfig.AddDashboardBefore("contentIntro", "Team", dashboardConfig => {
102106

103107
**Code Reference:** `AddDashboardBefore(string beforeAlias, string name, Lambda dashboardConfig = null) : DashboardConfigBuilder`
104108

105-
### Example: Using `AddDashboardAfter()` to Place a Dashboard
109+
### Using `AddDashboardAfter()` to Place a Dashboard
106110

107111
This method adds a dashboard after another dashboard with the specified alias, giving control over dashboard order. For more information, see the [Dashboards](dashboards.md) article.
108112

@@ -118,7 +122,7 @@ sectionConfig.AddDashboardAfter("contentIntro", "Team", dashboardConfig => {
118122

119123
You can extend existing sections by adding Umbraco UI Builder trees and dashboards, context apps, and virtual subtrees. This can be done by calling the `WithSection` method on the root-level `UIBuilderConfigBuilder` instance.
120124

121-
### Example: Extending an Existing Section with `WithSection()`
125+
### Extending an Existing Section with `WithSection()`
122126

123127
This method extends an existing section with additional configuration, enabling more customization for existing areas.
124128

@@ -132,7 +136,7 @@ config.WithSection("member", withSectionConfig => {
132136

133137
## Adding Trees to an Existing Section
134138

135-
### Example: Using the `AddTree()` Method
139+
### Using the `AddTree()` Method
136140

137141
This method adds a tree to the section, helping to visualize and organize content types. For more information, see the [Trees](trees.md) article.
138142

@@ -144,7 +148,7 @@ withSectionConfig.AddTree("My Tree", "icon-folder", treeConfig => {
144148

145149
**Code Reference:** `AddTree(string name, string icon, Lambda treeConfig = null) : TreeConfigBuilder`
146150

147-
### Example: Grouping Trees with `AddTree()` Method
151+
### Grouping Trees with `AddTree()` Method
148152

149153
This method adds a tree within a specified group, improving content organization by grouping related trees together. For more information, see the [Trees](trees.md) article.
150154

@@ -158,7 +162,7 @@ withSectionConfig.AddTree("My Group", "My Tree", "icon-folder", treeConfig => {
158162

159163
## Adding a Tree Before or After an Existing Tree
160164

161-
### Example: Using `AddTreeBefore()` to Position a Tree
165+
### Using `AddTreeBefore()` to Position a Tree
162166

163167
This method adds a tree before another tree within the section, allowing you to customize the tree order. For more information, see the [Trees](trees.md) article.
164168

@@ -170,7 +174,7 @@ withSectionConfig.AddTreeBefore("member", "My Tree", "icon-folder", treeConfig =
170174

171175
**Code Reference:** `AddTreeBefore(string treeAlias, string name, string icon, Lambda treeConfig = null) : TreeConfigBuilder`
172176

173-
### Example: Using `AddTreeAfter()` to Position a Tree
177+
### Using `AddTreeAfter()` to Position a Tree
174178

175179
This method adds a tree after another tree within the section, enabling specific ordering of trees. For more information, see the [Trees](trees.md) article.
176180

@@ -184,7 +188,7 @@ withSectionConfig.AddTreeAfter("member", "My Tree", "icon-folder", treeConfig =>
184188

185189
## Adding a Dashboard to an Existing Section
186190

187-
### Example: Using the `AddDashboard()` Method
191+
### Using the `AddDashboard()` Method
188192

189193
This method adds a new dashboard to the section with the specified name. For more information, see the [Dashboards](dashboards.md) article.
190194

@@ -196,7 +200,7 @@ withSectionConfig.AddDashboard("Team", dashboardConfig => {
196200

197201
**Code Reference:** `AddDashboard (string name, Lambda dashboardConfig = null) : DashboardConfigBuilder`
198202

199-
### Example: Using the `AddDashboardBefore()` Method
203+
### Using the `AddDashboardBefore()` Method
200204

201205
This method adds a dashboard before the dashboard with the specified alias. For more information, see the [Dashboards](dashboards.md) article.
202206

@@ -208,7 +212,7 @@ withSectionConfig.AddDashboardBefore("contentIntro", "Team", dashboardConfig =>
208212

209213
**Code Reference:** `AddDashboardBefore (string beforeAlias, string name, Lambda dashboardConfig = null) : DashboardConfigBuilder`
210214

211-
### Example: Using the `AddDashboardAfter()` Method
215+
### Using the `AddDashboardAfter()` Method
212216

213217
This method adds a dashboard after the dashboard with the specified alias. For more information, see the [Dashboards](dashboards.md) article.
214218

0 commit comments

Comments
 (0)