Simple Content Apps

Simplifies C# based Umbraco Content Apps

NuGet package icon for Umbraco.Community.SimpleContentApps

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

Umbraco Marketplace GitHub License NuGet Downloads Project Website

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
@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

docs/examples.md

Contributing

Contributions to this package are most welcome! Please read the Contributing Guidelines.

Acknowledgments (thanks!)

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.

3 months ago

| View release

14.0.0-alpha0001

Pre-release

Release Notes

Compare

Changes in 14.0.0-alpha0001

  • ๐ŸŒŸ feature: v14 support (WIP) 903378a

Umbraco 13

Umbraco 13 is supported until 14/12/2026

one month ago

| View release

13.0.3

Latest Version

Release Notes

Changes in 13.0.3

Compare

  • ๐Ÿž fix: src/TestSite.13/TestSite.13.csproj to reduce vulnerabilities cbe90ae @snyk-bot

one month ago

| View release

13.0.3-alpha0003

Pre-release

Release Notes

Changes in 13.0.3-alpha0003

Compare

  • ๐Ÿž fix: src/TestSite.13/TestSite.13.csproj to reduce vulnerabilities cbe90ae @snyk-bot

2 months ago

| View release

13.0.2

Release Notes

Changes in 13.0.2

Compare

  • ๐Ÿงน chore(deps-dev): bump the npm_and_yarn group across 1 directory with 2 updates fbdfec1
  • ๐Ÿž fix: upgrade lit from 3.1.3 to 3.2.0 9d7c298 @snyk-bot

2 months ago

| View release

13.0.2-alpha0056

Pre-release

Release Notes

Changes in 13.0.2-alpha0056

Compare

2 months ago

| View release

13.0.2-alpha0034

Pre-release

Release Notes

Changes in 13.0.2-alpha0034

Compare

  • ๐Ÿž fix: upgrade lit from 3.1.3 to 3.2.0 9d7c298 @snyk-bot

2 months ago

| View release

13.0.2-alpha0015

Pre-release

Release Notes

Changes in 13.0.2-alpha0015

Compare

  • ๐Ÿงน chore(deps-dev): bump the npm_and_yarn group across 1 directory with 2 updates fbdfec1

5 months ago

| View release

13.0.1

Release Notes

Compare

Changes in 13.0.1

7 months ago

| View release

13.0.0

Release Notes

Compare

Changes in 13.0.0

  • ๐ŸŒŸ feature: v13 support ad3503b

7 months ago

| View release

13.0.0-alpha0001

Pre-release

Release Notes

Compare

Changes in 13.0.0-alpha0001

  • ๐ŸŒŸ feature: v13 support ad3503b

Umbraco 10

Umbraco 10 is supported until 16/06/2025

one month ago

| View release

10.0.1-alpha0016

Pre-release

Release Notes

Changes in 10.0.1-alpha0016

Compare

  • ๐Ÿž fix: src/TestSite.10/TestSite.10.csproj to reduce vulnerabilities a779db7 @snyk-bot

2 months ago

| View release

10.0.1-alpha0007

Pre-release

Release Notes

Changes in 10.0.1-alpha0007

Compare

  • ๐Ÿž fix: src/TestSite.10/TestSite.10.csproj to reduce vulnerabilities 7359ac9 @snyk-bot

7 months ago

| View release

10.0.0

Latest Version

Release Notes

Compare

Changes in 10.0.0

  • ๐ŸŒŸ feature: ShouldShow method to give more control 5777822
  • ๐ŸŒŸ feature: improved test sites 63da608
  • ๐Ÿงน chore: prepare multi version 078b990
  • ๐ŸŒŸ feature: v10 support a8f0229

7 months ago

| View release

10.0.0-alpha0001

Pre-release

Release Notes

Compare

Changes in 10.0.0-alpha0001

  • ๐ŸŒŸ feature: ShouldShow method to give more control 5777822
  • ๐ŸŒŸ feature: improved test sites 63da608
  • ๐Ÿงน chore: prepare multi version 078b990
  • ๐ŸŒŸ feature: v10 support a8f0229

Unsupported Versions

Version 12.X.X

7 months ago

| View release

12.0.0

Release Notes

Compare

Changes in 12.0.0

  • ๐ŸŒŸ feature: v12 support c76395c

7 months ago

| View release

12.0.0-alpha0001

Pre-release

Release Notes

Compare

Changes in 12.0.0-alpha0001

  • ๐ŸŒŸ feature: v12 support c76395c

Version 0.X.X

7 months ago

| View release

0.2.6

Release Notes

Compare

Changes in 0.2.6

  • ๐Ÿงน chore(deps): bump Umbraco.Cms from 10.4.0 to 10.8.5 c528317
  • ๐Ÿงน chore(deps): bump Microsoft.ICU.ICU4C.Runtime from 68.2.0.9 to 72.1.0.3 5f28ca8
  • ๐Ÿงน chore(deps): bump jcdcdev.Umbraco.Core from 0.2.4 to 0.3.0 842d786
  • ๐Ÿž fix: lang file c468743
  • ๐Ÿงน chore: update jcdcdev.Umbraco.Core 3961068

7 months ago

| View release

0.2.5

Release Notes

Compare

Changes in 0.2.5

  • ๐Ÿ’ข ci: update github actions e55fbf6
  • ๐ŸŒŸ feature: dependabot b39ff18
  • ๐Ÿงน chore: remove v11 test site e9511a4

one year ago

| View release

0.2.4

Release Notes

Compare

Changes in 0.2.4

8 months ago

| View release

0.2.3

Release Notes

Compare

Changes in 0.2.3

  • ๐ŸŒŸ feature: multi target (Umbraco 10 -13) 96f9951
  • ๐Ÿž fix: view component naming convention did not match docs 78532d3

8 months ago

| View release

0.2.1

Release Notes

Compare

Changes in 0.2.1

  • ๐Ÿ’ข ci: templated build process f370756
  • ๐Ÿ“– doc:: improve readme b93fcca
  • ๐Ÿงน chore: update dependencies 61a5e62

8 months ago

| View release

0.2.0

Release Notes

Compare

Changes in 0.2.0

  • ๐Ÿ“„ jcdcdev.Umbraco.Core e62846a
  • ๐Ÿ“„ update release.yml b297dbd

one year ago

| View release

0.1.0

Release Notes

Compare

Changes in 0.1.0

๐Ÿ’–