Skip to content

jcdcdev/Umbraco.Community.SimpleWorkspaceViews

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Umbraco.Community.SimpleWorkspaceViews

Umbraco Marketplace GitHub License NuGet Downloads Project Website

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

Looking for Umbraco 10+ Content Apps? Check out Umbraco.Community.SimpleContentApps

Basic Workspace View in the Umbraco Office

Features

  • C# Workspace View 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.SimpleWorkspaceViews 

Register WorkspaceView

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

using Umbraco.Community.SimpleWorkspaceViews.Core; 
public class BasicWorkspaceView : SimpleWorkspaceView { }

Create View

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

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

More Examples

docs/examples.md

Contributing

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

Acknowledgments (thanks!)