Skip to content

jcdcdev/Umbraco.Community.SimpleWorkspaceViews

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Umbraco.Community.SimpleWorkspaceViews

Umbraco Marketplace License NuGet Downloads Project Website

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

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

  • 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/WorkspaceViews
  • You view must be the name of your C# class (without WorkspaceView)
    • For example: BasicWorkspaceView.cs => /Views/WorkspaceViews/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

Check out docs/examples.md for more complex examples.

Contributing

Contributions to this package are most welcome! Please visit the Contributing page.

Acknowledgements (Thanks)

About

Simplifies C# based Umbraco CMS Workspace Views 🦆

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •