Created
August 26, 2019 21:22
-
-
Save icavalheiro/69b51b8468d66f3b2ebb2361df435db0 to your computer and use it in GitHub Desktop.
Umbraco 8 customization file
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.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
using Umbraco.Core.Composing; | |
using Umbraco.Web; | |
using Umbraco.Web.Dashboards; | |
using Umbraco.Web.Sections; | |
namespace YOUR_PROJECT_NAME | |
{ | |
public class Customization : IUserComposer | |
{ | |
public void Compose(Composition composition) | |
{ | |
//Remove the "forms" label from the sections menu | |
composition.Sections().Remove<FormsSection>(); | |
//Remove the boring umbraco news section from the content dashboard | |
composition.Dashboards().Remove<ContentDashboard>(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment