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
public class MyUmbracoApplication : UmbracoApplication | |
{ | |
protected override void OnApplicationStarted(object sender, EventArgs e) | |
{ | |
base.OnApplicationStarted(sender, e); | |
// Make sure this is run after the base.OnApplicationStarted! | |
// The NotificationsHandler in Core is hooked up as a ApplicationEventHandler so we | |
// can't put this in a handler since we can't control the execution order. | |
DisableNotificationsHandler(); | |
} |
Amir's RRYN Version (RRYN == Ruby Rake Yaml Nokogiri)
First, assuming you've not done a bunch of PowerShell before, lets get you setup with the minimums (in my opinion)
- Set your execution policy, if you haven't already. You can choose Unrestricted if you prefer, RemoteSigned is a minimum for PSGet.
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
DECLARE @propertyAlias NVARCHAR(50); | |
DECLARE @search NVARCHAR(50); | |
SET @propertyAlias = 'bodyText'; | |
SET @search = 'whatever'; | |
SELECT | |
n.id, | |
n.path, | |
n.text |
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
DECLARE @nodeId uniqueidentifier | |
SELECT @nodeId = 0 -- Put your node Id here | |
WITH NodeTree(ID, ParentID, [Level]) | |
AS | |
( | |
-- The immediate Node we're getting (which will be excluded in the final query) | |
SELECT a.ID, a.ParentID, 0 | |
FROM Node a | |
WHERE ID = @nodeId |