This file contains hidden or 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.Web.Routing; | |
using Umbraco.Core; | |
namespace RemoveRoutes | |
{ | |
public class RemoveRoutesStartupHandler : ApplicationEventHandler | |
{ | |
protected override void ApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext) | |
{ | |
// Reference: https://github.com/umbraco/Umbraco-CMS/issues/5206 |
This file contains hidden or 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.Services; | |
namespace My.Namespace | |
{ | |
public class EventHandler : ApplicationEventHandler | |
{ | |
protected override void ApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext) | |
{ |
This file contains hidden or 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
@inherits UmbracoTemplatePage | |
@{ | |
Response.ContentType = "text/xml"; | |
// The variables in this code block are the only ones you might need to change a little to get it to work | |
var blogName = "Cultiv"; | |
var currentUrl = string.Format("https://{0}", Request.Url.Host); | |
// Find first node under the root of document type BlogOverview | |
var blogNode = Model.Content.AncestorOrSelf(1).Descendants("BlogOverview").First(); |
This file contains hidden or 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
<dependentAssembly> | |
<assemblyIdentity name="System.Web.Cors" publicKeyToken="31bf3856ad364e35" culture="neutral" /> | |
<bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" /> | |
</dependentAssembly> | |
<dependentAssembly> | |
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" /> | |
<bindingRedirect oldVersion="0.0.0.0-10.0.0.0" newVersion="10.0.0.0" /> | |
</dependentAssembly> |
This file contains hidden or 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
<system.net> | |
<mailSettings> | |
<smtp deliveryMethod="SpecifiedPickupDirectory" from="[email protected]"> | |
<network host="localhost" /> | |
<specifiedPickupDirectory pickupDirectoryLocation="D:\Temp\Umbraco-CMS\src\Umbraco.Web.UI\App_Data\mail\" /> | |
</smtp> | |
</mailSettings> | |
</system.net> |
This file contains hidden or 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
### Keybase proof | |
I hereby claim: | |
* I am nul800sebastiaan on github. | |
* I am cultiv (https://keybase.io/cultiv) on keybase. | |
* I have a public key whose fingerprint is A91D 058D 06E9 1CA5 5EA2 E6F5 35A8 8B3E 0346 40B7 | |
To claim this, I am signing this object: |
This file contains hidden or 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
Changes to the XML Schema | |
If you ever had to test the Document Type in XSLT, you would've probably used @nodeTypeAlias. Since the new 4.5 Schema however, this has changed. | |
Consider a Document Type with an alias of subPage. In the old Schema, the umbraco.config XML file would look something like: | |
<node id="1204" nodeTypeAlias="subPage" .... > | |
And in the new schema, nodeTypeAlias no longer exists but it is rather used as the actual XML node name. So it becomes: | |
<subPage id="1204" .....> |
This file contains hidden or 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.IO; | |
using System.Web.Hosting; | |
using System.Web.Http; | |
using Umbraco.Core.Logging; | |
using Umbraco.Web.WebApi; | |
namespace Cork.Core.Controllers | |
{ | |
public class CertificateController : UmbracoApiController |
This file contains hidden or 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
<form ng-if="login.linkedProviderKey == undefined" method="POST" name="externalLoginForm" | |
action="{{externalLinkLoginFormAction}}" id="oauthloginform" name="oauthloginform"> | |
<input type="hidden" name="provider" value="{{login.authType}}" /> | |
<button class="btn btn-block btn-social" | |
ng-class="login.properties.SocialStyle" | |
id="{{login.authType}}" | |
onclick="document.forms.oauthloginform.submit();"> | |
<i class="fa" ng-class="login.properties.SocialIcon"></i> | |
<localize key="defaultdialogs_linkYour">Link your</localize> {{login.caption}} <localize key="defaultdialogs_account">account</localize> |
This file contains hidden or 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
<form ng-if="login.linkedProviderKey == undefined" method="POST" name="externalLoginForm" | |
action="{{externalLinkLoginFormAction}}" id="oauthloginform" name="oauthloginform"> | |
<input type="hidden" name="provider" value="{{login.authType}}" /> | |
<button class="btn btn-block btn-social" | |
ng-class="login.properties.SocialStyle" | |
id="{{login.authType}}" | |
onclick="document.forms.oauthloginform.submit();"> | |
<i class="fa" ng-class="login.properties.SocialIcon"></i> | |
Link your {{login.caption}} account |