Created
November 21, 2023 16:05
-
-
Save jcdcdev/4eeb79dd2615fd756745de92c327a8fe to your computer and use it in GitHub Desktop.
Simple Content Apps - Example Content App
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 Umbraco.Cms.Core.Dashboards; | |
using Umbraco.Cms.Core.Models.ContentEditing; | |
using Umbraco.Community.SimpleContentApps.Core; | |
namespace Umbraco.Community.SimpleContentApps.TestSite; | |
public class BasicContentApp : ISimpleContentApp | |
{ | |
public string Icon => Cms.Core.Constants.Icons.Content; | |
public bool ShowInContent => true; | |
public bool ShowInContentType => false; | |
public bool ShowInMedia => false; | |
public bool ShowInMembers => false; | |
public IAccessRule[] Rules => new[] { SimpleAccessRule.AllowAdminGroup }; | |
public int Weight => 0; | |
public string Name => "Basic Content App"; | |
public string? CultureName(string? currentUiCulture) => Name; | |
public ContentAppBadge? Badge => ContentAppBadges.None; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment