Skip to content

Commit 1f19260

Browse files
authored
Merge pull request #133 from jcdcdev/dev/v10
10.1.5
2 parents bae0f89 + 4387968 commit 1f19260

File tree

2 files changed

+3
-86
lines changed

2 files changed

+3
-86
lines changed

.github/README.md

Lines changed: 2 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -14,94 +14,11 @@ Is your Backoffice a bit untidy?
1414
- Member Types
1515
- Data Types
1616

17-
> [!IMPORTANT]
18-
> Version 10 will only receive security updates and no new features.
17+
> [!WARNING]
18+
> Version 10 is no longer supported and is End of Life (EOL).
1919
2020
> Please review the [security policy](https://github.com/jcdcdev/Umbraco.Community.BackOfficeOrganiser?tab=security-ov-file#supported-versions) for more information.
2121
22-
## Quick Start
23-
24-
- Go to the backoffice
25-
- Click `Settings`
26-
- Click `Organise`
27-
- Select the types you wish to organise
28-
- Click submit and confirm
29-
- Refresh your page and enjoy a cleaner backoffice ✨
30-
31-
## Configuration
32-
33-
Add the following to your `appsettings.json` file
34-
35-
```json title="appsettings.json"
36-
"BackOfficeOrganiser": {
37-
"DataTypes": {
38-
"InternalFolderName": "Internal",
39-
"ThirdPartyFolderName": "Third Party",
40-
"CustomFolderName": "Custom"
41-
}
42-
}
43-
```
44-
45-
## Extending
46-
47-
You can implement your own `Organise Action`, a method that determines where a type should be moved to. Implement the following interfaces:
48-
49-
- `Document Types` => `IContentTypeOrganiseAction`
50-
- `Media Types` => `IMediaTypeOrganiseAction`
51-
- `Member Types` => `IMemberTypeOrganiseAction`
52-
- `Data Types` => `IDataTypeOrganiseAction`
53-
54-
### Example
55-
```csharp title="ExampleContentTypeOrganiseAction.cs"
56-
using jcdcdev.Umbraco.Core.Extensions;
57-
using Umbraco.Cms.Core.Models;
58-
using Umbraco.Cms.Core.Services;
59-
60-
namespace Umbraco.Community.BackOfficeOrganiser.Organisers.ContentTypes;
61-
62-
public class ExampleContentTypeOrganiseAction : IContentTypeOrganiseAction
63-
{
64-
// Handle all but container types (Folders)
65-
public bool CanMove(IContentType contentType, IContentTypeService contentTypeService) => !contentType.IsContainer;
66-
67-
public void Move(IContentType contentType, IContentTypeService contentTypeService)
68-
{
69-
var folderId = -1;
70-
var folderName = string.Empty;
71-
var isComposition = contentTypeService.GetComposedOf(contentType.Id).Any();
72-
73-
if (contentType.AllowedTemplates?.Any() ?? false)
74-
{
75-
folderName = "Pages";
76-
}
77-
else if (isComposition)
78-
{
79-
folderName = "Compositions";
80-
}
81-
else if (contentType.IsElement)
82-
{
83-
folderName = "Element Types";
84-
}
85-
86-
if (!folderName.IsNullOrWhiteSpace())
87-
{
88-
folderId = contentTypeService.GetOrCreateFolder(folderName).Id;
89-
}
90-
91-
contentTypeService.Move(contentType, folderId);
92-
}
93-
}
94-
95-
public class Composer : IComposer
96-
{
97-
public void Compose(IUmbracoBuilder builder)
98-
{
99-
// Make sure you register your action BEFORE the default!
100-
builder.ContentTypeOrganiseActions().Insert<ExampleContentTypeOrganiseAction>();
101-
}
102-
}
103-
```
104-
10522
## Contributing
10623

10724
Contributions to this package are most welcome! Please visit the [Contributing](https://github.com/jcdcdev/Umbraco.Community.BackOfficeOrganiser/contribute) page.

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ The following table outlines the versions of the project that are currently supp
99
1010
| Package Version | Umbraco Version | Security Phase Start | End of Life |
1111
| ---------------------------------------------------------------------------------- | --------------- | -------------------- | ----------- |
12-
| [10.x](https://github.com/jcdcdev/Umbraco.Community.BackOfficeOrganiser/tree/v10) | 10 | 2024-06-16 | 2025-06-16 |
1312
| [13.x](https://github.com/jcdcdev/Umbraco.Community.BackOfficeOrganiser/tree/v13) | 13 | 2025-12-14 | 2026-12-14 |
1413
| [15.x](https://github.com/jcdcdev/Umbraco.Community.BackOfficeOrganiser/tree/v15) | 15 | 2025-08-14 | 2025-11-14 |
1514
| [16.x](https://github.com/jcdcdev/Umbraco.Community.BackOfficeOrganiser/tree/v16) | 16 | 2026-03-12 | 2026-06-12 |
1615
## Unsupported Versions
1716

1817
| Package Version | Umbraco Version | End of Life |
1918
| ---------------------------------------------------------------------------------- | --------------- | ----------- |
19+
| [10.x](https://github.com/jcdcdev/Umbraco.Community.BackOfficeOrganiser/tree/v10) | 10 | 2025-06-16 |
2020
| [12.x](https://github.com/jcdcdev/Umbraco.Community.BackOfficeOrganiser/tree/v12) | 12 | 2024-06-29 |
2121
| [14.x](https://github.com/jcdcdev/Umbraco.Community.BackOfficeOrganiser/tree/v14) | 14 | 2025-05-30 |
2222

0 commit comments

Comments
 (0)