How to recreate this site locally
Create a folder, then start CMD in that folder.
Run the following commands
dotnet new install Umbraco.Templates::17.5.3
dotnet new umbraco --name [MyProject]
[MyProject] is the project name here and also the subfolder name
cd [MyProject]
dotnet add package Umbraco.TheStarterKit::17.0.0
dotnet add package Umbraco.Community.BlockPreview --version 5.0.0
dotnet build
Before running the site, you will need to update the appsettings.json so the Block Preview works.
Here is a sample
{
"$schema": "appsettings-schema.json",
"Serilog": {
"MinimumLevel": {
"Default": "Information",
"Override": {
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information",
"System": "Warning"
}
}
},
"Umbraco": {
"CMS": {
"ModelsBuilder": {
// must be SourceCodeAuto or SourceCodeManual
"ModelsMode": "SourceCodeAuto"
},
"Global": {
"Id": "d705c43f-9ff9-44d5-ba27-57bbda1c10c6"
},
"Content": {
"AllowEditInvariantFromNonDefault": true,
"ContentVersionCleanupPolicy": {
"EnableCleanup": true
}
},
"Unattended": {
"UpgradeUnattended": true
},
"Security": {
"AllowConcurrentLogins": false
},
"Imaging": {
"HMACSecretKey": "PPShXoj4pMJim7Cmf/V0ryr9iNYnUE5j/3Usgj6xPSqvVg3gO8y5EkMyzG0SAICQzLZPYYqSpTS26VRHJKexEw=="
}
}
},
"BlockPreview": {
"BlockGrid": {
"Enabled": true,
"IgnoredContentTypes": [ "deprecatedBlock" ,"umbBlockGridDemoTwoColumnLayoutBlock"] //need to exclude all layout doc types.
//"ContentTypes": [ "richTextBlock", "bodyText" ]
},
"BlockList": {
"Enabled": true
},
"RichText": {
"Enabled": true
}
},
"ConnectionStrings": {
"umbracoDbDSN": "Server=7800x3d\\sql;Database=U17SC;Integrated Security=true;TrustServerCertificate=true;",
"umbracoDbDSN_ProviderName": "Microsoft.Data.SqlClient"
}
}
Finally, you can run the site
dotnet run
My Blog Post
Now it gets exciting
This will be great
Umbraco Demo
Curabitur arcu erat, accumsan id imperdiet et, porttitor at sem. Curabitur arcu erat, accumsan id imperdiet et, porttitor at sem. Vivamus suscipit tortor eget felis porttitor volutpat
Read All on the Blog