Easy C# Configuration
Define it all in one C# class!
- Access Rules
- Name
- Weight
- Badge
Language Variant Support
Define culture based names using C# => CultureName(string? currentUiCulture)
You can still use lang files if required.
No Manifest File
No package.manifest or lang/lang.xml files are required to get a Content App up and running.
Readme
Umbraco.Community.SimpleContentApps
This packages aims to help developers quickly put together Umbraco ContentApps using C# only.
Looking for Umbraco 14+ Content Apps? Check out Umbraco.Community.SimpleWorkspaceViews
Features
- Simplifies C# based ContentApp creation
- Supports both Views & View Components
- No package.manifest or lang/lang.xml files required!
- Variant support (culture specific names)
- Easy to define Access Rules
Quick Start
Install Package
dotnet add package Umbraco.Community.SimpleContentApps
Register ContentApp
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;
}
Create View
- Your view must go in
/Views/ContentApps
- You view must be the name of your C# class (without
ContentApp
)- For example:
BasicContentApp.cs
=>/Views/ContentApps/Basic.cshtml
- For example:
@using Umbraco.Community.SimpleContentApps.Core.Extensions
@inherits Umbraco.Community.SimpleContentApps.Web.SimpleContentAppViewPage
<h1>Hello Umbraco</h1>
<p>My ContentApp alias is: @Model.ContentApp.Alias()</p>
More Examples
Contributing
Contributions to this package are most welcome! Please read the Contributing Guidelines.
Acknowledgments (thanks!)
- LottePitcher - opinionated-package-starter
Releases
Umbraco 14
Umbraco 14 is supported until 30/05/2025
Heads up!
There are currently no stable releases for this version.
Click "Show pre-release" above to reveal all versions.
Click "Show pre-release" above to reveal all versions.
14.0.0-alpha0001
Pre-release
Umbraco 13
Umbraco 13 is supported until 14/12/2026
13.0.3
Latest Version
Release Notes
Changes in 13.0.3
- ๐ fix: src/TestSite.13/TestSite.13.csproj to reduce vulnerabilities cbe90ae @snyk-bot
13.0.3-alpha0003
Pre-release
Release Notes
Changes in 13.0.3-alpha0003
- ๐ fix: src/TestSite.13/TestSite.13.csproj to reduce vulnerabilities cbe90ae @snyk-bot
13.0.2
13.0.2-alpha0034
Pre-release
Release Notes
13.0.2-alpha0015
Pre-release
Release Notes
Changes in 13.0.2-alpha0015
- ๐งน chore(deps-dev): bump the npm_and_yarn group across 1 directory with 2 updates fbdfec1
13.0.0
Release Notes
13.0.0-alpha0001
Pre-release
Release Notes
Umbraco 10
Umbraco 10 is supported until 16/06/2025
10.0.1-alpha0016
Pre-release
Release Notes
Changes in 10.0.1-alpha0016
- ๐ fix: src/TestSite.10/TestSite.10.csproj to reduce vulnerabilities a779db7 @snyk-bot
10.0.1-alpha0007
Pre-release
Release Notes
Changes in 10.0.1-alpha0007
- ๐ fix: src/TestSite.10/TestSite.10.csproj to reduce vulnerabilities 7359ac9 @snyk-bot
10.0.0
Latest Version
10.0.0-alpha0001
Pre-release
Unsupported Versions
Version 12.X.X
12.0.0
12.0.0-alpha0001
Pre-release