This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Setup of an Umbraco V14+ project with Vite, TypeScript & Lit | |
## Author: Warren Buckley | |
## HackMakeDo.com | |
## if project name is not provided, ask for it | |
if (-not $ProjectName) { | |
$ProjectName = Read-Host "Enter a project name" | |
} | |
## Variables |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Variables -- | |
DECLARE @memberGroup VARCHAR(100) = 'PORTAL MEMBER' | |
DECLARE @memberGroupIntId INT | |
DECLARE @nodeId INT | |
-- Get the INT ID of the member group that is called 'Portal Member' -- | |
SELECT @memberGroupIntId = [id] | |
FROM [dbo].[umbracoNode] | |
WHERE nodeObjectType = '366E63B9-880F-4E13-A61C-98069B029728' -- This GUID is for member groups -- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema" : "./appsettings-schema.json", | |
"Serilog": { | |
"MinimumLevel": { | |
"Default": "Information", | |
"Override": { | |
"Examine.Lucene.Providers.LuceneIndex": "Debug", | |
"Examine.BaseIndexProvider": "Debug", | |
"Examine.Lucene.LoggingReplicationClient": "Debug", | |
"Examine.Lucene.ExamineReplicator": "Debug" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.Net.Http.Headers; | |
using Umbraco.Cms.Core.Composing; | |
namespace StaticAssets | |
{ | |
public class StaticAssetsHeaders : IComposer | |
{ | |
public void Compose(IUmbracoBuilder builder) | |
{ | |
builder.Services.Configure<StaticFileOptions>(options => |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "./umbraco/config/appsettings-schema.json", | |
"Umbraco": { | |
// NOTE: Other settings removed in this example for clarity | |
"CMS": { | |
"RichTextEditor": { | |
"CustomConfig": { | |
"forced_root_block": "" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.AspNetCore.Identity; | |
using Umbraco.Cms.Core.Security; | |
using Umbraco.Cms.Core.Services; | |
using Umbraco.Extensions; | |
namespace Umbraco.Cms.Web.UI.NetCore | |
{ | |
public class MyCustomIdentityErrorDescriber : BackOfficeErrorDescriber | |
{ | |
private ILocalizedTextService _textService; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@using Umbraco.Cms.Web.Common.PublishedModels; | |
@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage<ContentModels.BlogPost> | |
@using ContentModels = Umbraco.Cms.Web.Common.PublishedModels; | |
@{ | |
Layout = null; | |
} | |
<html> | |
<head> | |
<meta property="og:title" content="@Model.Header" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Umbraco.Cms.Core.Events; | |
using Umbraco.Cms.Infrastructure.Services.Notifications; | |
namespace TestingEvents | |
{ | |
public class DontShout : INotificationHandler<ContentPublishingNotification> | |
{ | |
public void Handle(ContentPublishingNotification notification) | |
{ | |
foreach (var node in notification.PublishedEntities) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Octokit.GraphQL; | |
using Octokit.GraphQL.Model; | |
using System; | |
using System.Linq; | |
using System.Threading.Tasks; | |
namespace Octokit | |
{ | |
class Program | |
{ |
NewerOlder