Simple Dashboards

Simplifies C# based Umbraco Dashboards

NuGet package icon for Umbraco.Community.SimpleDashboards

Easy C# Configuration

Define it all in one C# class!

  • Access Rules
  • Sections
  • Name

Language Variant Support

Define culture based names using C# => SetName("Name", "cy-GB")

You can still use lang files if required.

No Manifest File

No package.manifest or lang/lang.xml files are required to get a dashboard up and running.

Readme

Umbraco.Community.SimpleDashboards

Umbraco Marketplace GitHub License NuGet Downloads Project Website

This packages aims to help developers quickly put together Umbraco Dashboards using C# only.

Features

  • C# dashboard creation
  • No javascript or umbraco-package.json files required
  • Supports both Views & View Components
  • Easy to define section permissions

Quick Start

Install Package

dotnet add package Umbraco.Community.SimpleDashboards 

Register Dashboard

By default, this will display in the content section for Admins only.

using Umbraco.Community.SimpleDashboards.Web; 
public class BasicDashboard : SimpleDashboard { }

Create View

  • Your view must go in /Views/Dashboard
  • You view must be the name of your C# class (without Dashboard)
    • For example: BasicDashboard.cs => /Views/Dashboard/Basic.cshtml
@inherits Umbraco.Community.SimpleDashboards.Web.DashboardViewPage

<uui-box headline="Hello Umbraco">
    <p>My Dashboard is: @Model.Dashboard.Alias</p>
</uui-box>

More Examples

docs/examples.md

Contributing

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

Acknowledgments (thanks!)

💖