Umbraco.Community.BackOfficeOrganiser
0.1.7
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Umbraco.Community.BackOfficeOrganiser --version 0.1.7
NuGet\Install-Package Umbraco.Community.BackOfficeOrganiser -Version 0.1.7
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Umbraco.Community.BackOfficeOrganiser" Version="0.1.7" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Umbraco.Community.BackOfficeOrganiser --version 0.1.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Umbraco.Community.BackOfficeOrganiser, 0.1.7"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Umbraco.Community.BackOfficeOrganiser as a Cake Addin #addin nuget:?package=Umbraco.Community.BackOfficeOrganiser&version=0.1.7 // Install Umbraco.Community.BackOfficeOrganiser as a Cake Tool #tool nuget:?package=Umbraco.Community.BackOfficeOrganiser&version=0.1.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Umbraco.Community.BackOfficeOrganiser
Is your Backoffice a bit untidy?
- Single-click (and opinionated) organiser for
- Document Types
- Media Types
- Member Types
- Data Types
Quick Start
- Go to the backoffice
- Click
Settings
- Click
Organise
- Select the types you wish to organise
- Click submit and confirm
- Refresh your page and enjoy a cleaner backoffice ✨
Configuration
Add the following to your appsettings.json
file
"BackOfficeOrganiser": {
"DataTypes": {
"InternalFolderName": "Internal",
"ThirdPartyFolderName": "Third Party",
"CustomFolderName": "Custom"
}
}
Extending
You can implement your own Organise Action
, a method that determines where a type should be moved to. Implement the following interfaces:
Document Types
⇒IContentTypeOrganiseAction
Media Types
⇒IMediaTypeOrganiseAction
Member Types
⇒IMemberTypeOrganiseAction
Data Types
⇒IDataTypeOrganiseAction
Example
using jcdcdev.Umbraco.Core.Extensions;
using Umbraco.Cms.Core.Models;
using Umbraco.Cms.Core.Services;
namespace Umbraco.Community.BackOfficeOrganiser.Organisers.ContentTypes;
public class ExampleContentTypeOrganiseAction : IContentTypeOrganiseAction
{
// Handle all but container types (Folders)
public bool CanMove(IContentType contentType, IContentTypeService contentTypeService) => !contentType.IsContainer;
public void Move(IContentType contentType, IContentTypeService contentTypeService)
{
var folderId = -1;
var folderName = string.Empty;
var isComposition = contentTypeService.GetComposedOf(contentType.Id).Any();
if (contentType.AllowedTemplates?.Any() ?? false)
{
folderName = "Pages";
}
else if (isComposition)
{
folderName = "Compositions";
}
else if (contentType.IsElement)
{
folderName = "Element Types";
}
if (!folderName.IsNullOrWhiteSpace())
{
folderId = contentTypeService.GetOrCreateFolder(folderName).Id;
}
contentTypeService.Move(contentType, folderId);
}
}
public class Composer : IComposer
{
public void Compose(IUmbracoBuilder builder)
{
// Make sure you register your action BEFORE the default!
builder.ContentTypeOrganiseActions().Insert<ExampleContentTypeOrganiseAction>();
}
}
Contributing
Contributions to this package are most welcome! Please read the Contributing Guidelines.
Acknowledgments (thanks!)
- LottePitcher - opinionated-package-starter
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- jcdcdev.Umbraco.Core (>= 0.2.1)
- Umbraco.Cms.Core (>= 10.4.0 && < 11.0.0)
- Umbraco.Cms.Web.BackOffice (>= 10.4.0 && < 11.0.0)
- Umbraco.Community.SimpleDashboards (>= 0.2.2)
-
net7.0
- jcdcdev.Umbraco.Core (>= 0.2.1)
- Umbraco.Cms.Core (>= 11.0.0 && < 13.0.0)
- Umbraco.Cms.Web.BackOffice (>= 11.0.0 && < 13.0.0)
- Umbraco.Community.SimpleDashboards (>= 0.2.2)
-
net8.0
- jcdcdev.Umbraco.Core (>= 0.2.1)
- Umbraco.Cms.Core (>= 13.0.0 && < 14.0.0)
- Umbraco.Cms.Web.BackOffice (>= 13.0.0 && < 14.0.0)
- Umbraco.Community.SimpleDashboards (>= 0.2.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
15.0.0 | 71 | 11/19/2024 |
15.0.0-alpha0014 | 63 | 11/17/2024 |
15.0.0-alpha0012 | 62 | 11/12/2024 |
15.0.0-alpha0007 | 70 | 10/23/2024 |
15.0.0-alpha0005 | 60 | 10/17/2024 |
15.0.0-alpha0004 | 57 | 10/17/2024 |
15.0.0-alpha0001 | 72 | 10/9/2024 |
14.1.4 | 76 | 11/5/2024 |
14.1.4-alpha0003 | 59 | 11/4/2024 |
14.1.3 | 74 | 10/30/2024 |
14.1.3-alpha0003 | 63 | 10/28/2024 |
14.1.2 | 89 | 10/8/2024 |
14.1.2-alpha0003 | 96 | 9/29/2024 |
14.1.1 | 102 | 9/29/2024 |
14.1.1-alpha0029 | 79 | 9/26/2024 |
14.1.1-alpha0011 | 82 | 9/24/2024 |
14.1.0 | 100 | 8/31/2024 |
14.1.0-alpha0001 | 102 | 8/9/2024 |
14.0.3-alpha0003 | 85 | 6/24/2024 |
14.0.2 | 118 | 6/13/2024 |
14.0.1 | 110 | 6/6/2024 |
14.0.1-alpha0012 | 106 | 6/6/2024 |
14.0.0 | 109 | 6/3/2024 |
14.0.0-alpha0004 | 89 | 6/6/2024 |
14.0.0-alpha0003 | 85 | 6/3/2024 |
14.0.0-alpha0001 | 105 | 5/25/2024 |
13.1.1 | 126 | 10/30/2024 |
13.1.1-alpha0007 | 68 | 10/29/2024 |
13.1.0 | 718 | 8/31/2024 |
13.1.0-alpha0001 | 120 | 8/9/2024 |
13.0.1-alpha0008 | 99 | 8/9/2024 |
13.0.1-alpha0003 | 97 | 7/28/2024 |
13.0.0 | 356 | 5/25/2024 |
13.0.0-alpha0001 | 89 | 5/25/2024 |
12.0.1 | 63 | 7/28/2024 |
12.0.0 | 98 | 5/25/2024 |
12.0.0-alpha0001 | 93 | 5/25/2024 |
10.1.1 | 76 | 10/30/2024 |
10.1.1-alpha0007 | 62 | 10/29/2024 |
10.1.0 | 101 | 8/31/2024 |
10.1.0-alpha0001 | 102 | 8/9/2024 |
10.0.1 | 62 | 7/28/2024 |
10.0.0 | 101 | 5/25/2024 |
10.0.0-alpha0001 | 92 | 5/25/2024 |
0.1.7 | 646 | 3/17/2024 |
0.1.6 | 1,619 | 1/4/2024 |
0.1.5 | 413 | 11/10/2023 |
0.1.4 | 120 | 11/9/2023 |
0.1.3 | 177 | 11/9/2023 |
0.1.2 | 116 | 11/9/2023 |
0.1.1 | 109 | 11/8/2023 |
0.1.0 | 128 | 11/8/2023 |