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
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> | |
<sitecore> | |
<pipelines> | |
<httpRequestEnd> | |
<processor type="YourProject.Core.Processors.ResponseHeaders, YourProject.Core"/> | |
</httpRequestEnd> | |
</pipelines> | |
</sitecore> | |
</configuration> |
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 Sitecore; | |
using Sitecore.Data; | |
using Sitecore.Pipelines.HttpRequest; | |
namespace YourProject.Core.Processors | |
{ | |
public class ResponseHeaders : HttpRequestProcessor | |
{ | |
private readonly ID _responseHeadersItem = new ID("{2C9586BD-4384-4DBF-B595-CF914572B9CD}"); |
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 Sitecore; | |
using Sitecore.Data; | |
using Sitecore.Pipelines.HttpRequest; | |
namespace YourProject.Core.Processors | |
{ | |
public class ResponseHeaders : HttpRequestProcessor | |
{ | |
private readonly ID _responseHeadersItem = new ID("{2C9586BD-4384-4DBF-B595-CF914572B9CD}"); |
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
{ | |
"viewPaths": [ | |
"frontend/views" | |
], | |
"partialPaths": [ | |
"frontend/views/_partials" | |
], | |
"componentPaths": [ | |
"frontend/components/atoms", | |
"frontend/components/molecules", |
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 Microsoft.Practices.Unity; | |
using System.Web.Hosting; | |
using NitroNet.ViewEngine.IO; | |
using System.Configuration; | |
using NitroNet.UnityModules; | |
using NitroNet.Sitecore.UnityModules; | |
namespace NitroNetSitecoreMVC.App_Start | |
{ |
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 Microsoft.Practices.Unity; | |
using System.Web.Hosting; | |
using NitroNet.ViewEngine.IO; | |
using NitroNet.UnityModules; | |
using System.Configuration; | |
namespace NitroNetMVC.App_Start | |
{ | |
/// <summary> |
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.Web.Mvc; | |
using System.Web.Optimization; | |
using System.Web.Routing; | |
using NitroNet.Sitecore;; | |
namespace NitroNetMVC | |
{ | |
public class MvcApplication : System.Web.HttpApplication | |
{ | |
protected void Application_Start() |
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.Web.Mvc; | |
using System.Web.Optimization; | |
using System.Web.Routing; | |
using NitroNet.Mvc; | |
namespace NitroNetMVC | |
{ | |
public class MvcApplication : System.Web.HttpApplication | |
{ | |
protected void Application_Start() |
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 (new EnforceVersionPresenceDisabler()) | |
{ | |
//Dein Code | |
} |
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 language = Sitecore.Context.Language; //DE ist hier Kontextsprache | |
var item = Sitecore.Context.Database.GetItem("<id>", language); | |
var childItems = item.Children; |
NewerOlder