Skip to content

Instantly share code, notes, and snippets.

@jcdcdev
Created November 21, 2023 16:05
Show Gist options
  • Save jcdcdev/4eeb79dd2615fd756745de92c327a8fe to your computer and use it in GitHub Desktop.
Save jcdcdev/4eeb79dd2615fd756745de92c327a8fe to your computer and use it in GitHub Desktop.
Simple Content Apps - Example Content App
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