You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 14/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/block-editor/block-grid-editor.md
+23-21Lines changed: 23 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -277,7 +277,7 @@ If you are using ModelsBuilder, you can make the property rendering strongly typ
277
277
278
278
Using the default rendering together with your layout stylesheet will provide what you need for rendering the layout.
279
279
280
-
If you like to use the Default Layout Stylesheet, you must copy the stylesheet to your frontend. You can download the default layout stylesheet from the link within the DataType, we recommend putting the file in the css folder, example: `wwwroot/css/umbraco-blockgridlayout.css`.
280
+
If you like to use the Default Layout Stylesheet, you must copy the stylesheet to your frontend. You can download the default layout stylesheet from the link within the DataType, we recommend putting the file in the `css` folder, example: `wwwroot/css/umbraco-blockgridlayout.css`.
@@ -366,7 +366,7 @@ To make additions or overwrite parts of the default layout stylesheet, import th
366
366
@import'css/umbblockgridlayout.css';
367
367
```
368
368
369
-
You need to copy the Default Layout Stylesheet to your frontend. You can download the default layout stylesheet from the link within the DataType, we recommend putting the file in the css folder, example: `wwwroot/css/umbraco-blockgridlayout.css`.
369
+
You need to copy the Default Layout Stylesheet to your frontend. You can download the default layout stylesheet from the link within the DataType, we recommend putting the file in the `css` folder, example: `wwwroot/css/umbraco-blockgridlayout.css`.
370
370
371
371
### Write a new Layout Stylesheet
372
372
@@ -462,7 +462,7 @@ Building Custom Views for Block representations in Backoffice is based on the sa
462
462
463
463
In this example, we will be creating content programmatically for a "spot" Blocks in a Block Grid.
464
464
465
-
1. On a document type add a property called **blockGrid**.
465
+
1. On a Document Type add a property called **blockGrid**.
466
466
2. Then add as editor **Block Grid**.
467
467
3. In the Block Grid add a new block and click to **Create new Element Type**
468
468
4. Name this element type **spotElement** with the following properties:
@@ -610,11 +610,10 @@ public class BlockGridLayoutItem
610
610
// this represents an item in the block grid content or settings data collection
9. By injecting [ContentService](https://apidocs.umbraco.com/v14/csharp/api/Umbraco.Cms.Core.Services.ContentService.html) and [ContentTypeService](https://apidocs.umbraco.com/v14/csharp/api/Umbraco.Cms.Core.Services.ContentTypeService.html) into an API controller, we can transform the raw data into Block Grid JSON. It can then be saved to the target content item. Create a class called **BlockGridTestController.cs** containing the following:
633
632
634
-
{% hint style="warning" %}
635
-
The example below uses UmbracoApiController which is obsolete in Umbraco 14 and will be removed in Umbraco 15.
Copy file name to clipboardExpand all lines: 15/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/block-editor/block-grid-editor.md
+22-20Lines changed: 22 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -277,7 +277,7 @@ If you are using ModelsBuilder, you can make the property rendering strongly typ
277
277
278
278
Using the default rendering together with your layout stylesheet will provide what you need for rendering the layout.
279
279
280
-
If you like to use the Default Layout Stylesheet, you must copy the stylesheet to your frontend. You can download the default layout stylesheet from the link within the DataType, we recommend putting the file in the css folder, example: `wwwroot/css/umbraco-blockgridlayout.css`.
280
+
If you like to use the Default Layout Stylesheet, you must copy the stylesheet to your frontend. You can download the default layout stylesheet from the link within the DataType, we recommend putting the file in the `css` folder, example: `wwwroot/css/umbraco-blockgridlayout.css`.
@@ -366,7 +366,7 @@ To make additions or overwrite parts of the default layout stylesheet, import th
366
366
@import'css/umbblockgridlayout.css';
367
367
```
368
368
369
-
You need to copy the Default Layout Stylesheet to your frontend. You can download the default layout stylesheet from the link within the DataType, we recommend putting the file in the css folder, example: `wwwroot/css/umbraco-blockgridlayout.css`.
369
+
You need to copy the Default Layout Stylesheet to your frontend. You can download the default layout stylesheet from the link within the DataType, we recommend putting the file in the `css` folder, example: `wwwroot/css/umbraco-blockgridlayout.css`.
370
370
371
371
### Write a new Layout Stylesheet
372
372
@@ -462,7 +462,7 @@ Building Custom Views for Block representations in Backoffice is based on the sa
462
462
463
463
In this example, we will be creating content programmatically for a "spot" Blocks in a Block Grid.
464
464
465
-
1. On a document type add a property called **blockGrid**.
465
+
1. On a Document Type add a property called **blockGrid**.
466
466
2. Then add as editor **Block Grid**.
467
467
3. In the Block Grid add a new block and click to **Create new Element Type**
468
468
4. Name this element type **spotElement** with the following properties:
@@ -610,11 +610,10 @@ public class BlockGridLayoutItem
610
610
// this represents an item in the block grid content or settings data collection
9. By injecting [ContentService](https://apidocs.umbraco.com/v14/csharp/api/Umbraco.Cms.Core.Services.ContentService.html) and [ContentTypeService](https://apidocs.umbraco.com/v14/csharp/api/Umbraco.Cms.Core.Services.ContentTypeService.html) into an API controller, we can transform the raw data into Block Grid JSON. It can then be saved to the target content item. Create a class called **BlockGridTestController.cs** containing the following:
633
632
634
-
{% hint style="warning" %}
635
-
The example below uses UmbracoApiController which is obsolete in Umbraco 14 and will be removed in Umbraco 15.
0 commit comments