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 System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
using Umbraco.Core; | |
namespace Meh.App_Code | |
{ | |
public class ChangeMenu : ApplicationEventHandler | |
{ |
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
<?xml version="1.0" encoding="utf-8" ?> | |
<NotFoundHandlers> | |
<notFound assembly="umbraco" type="SearchForAlias" /> | |
<notFound assembly="umbraco" type="SearchForTemplate"/> | |
<notFound assembly="umbraco" type="SearchForProfile"/> | |
<notFound assembly="CatchAllRouteHandler" namespace="Our" type="CatchAll"/> | |
<notFound assembly="umbraco" type="handle404"/> | |
</NotFoundHandlers> |
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 System; | |
using Umbraco.Core; | |
using Umbraco.Core.Persistence; | |
using Umbraco.Core.Persistence.DatabaseAnnotations; | |
namespace Umbraco.Examples | |
{ | |
/// <summary> | |
/// Class that shows the use of creating a new table and inserting a new ArticlePoco. | |
/// This class is only intended for demo'ing and should not be used as it. |
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
#Umbraco Power shell API | |
#Default Nugget Params | |
param($installPath, $toolsPath, $package, $project) | |
if ($project) { | |
#Connect to Umbraco Services API | |
#Create Home DocumentType | |
#Create Properties on Home DocumentType |
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
var node = uQuery.GetNode(1234); | |
var twitter = node.GetProperty<Our.Umbraco.Models.uTwit>("twitter"); | |
// use the uTwit model... | |
// twitter.ConsumerKey | |
// twitter.ConsumerSecret | |
// twitter.OAuthToken | |
// twitter.OAuthTokenSecret | |
// twitter.ScreenName |
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 System; | |
using umbraco; | |
using Umbraco.Core; | |
using Umbraco.Core.Events; | |
using umbraco.interfaces; | |
namespace MyNameSpace | |
{ | |
public class StartupEventHandlers : IApplicationStartupHandler | |
{ |
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 System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Web; | |
using umbraco.presentation.umbracobase; | |
using System.Web.Script.Serialization; | |
namespace BaseAsJson | |
{ |
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
/* | |
* object.watch polyfill | |
* | |
* 2012-04-03 | |
* | |
* By Eli Grey, http://eligrey.com | |
* Public Domain. | |
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. | |
*/ |