Skip to content

Commit 7b7fe2a

Browse files
authored
Merge pull request #107 from jcdcdev/dev/v12
12.0.2
2 parents 44e318a + e31765c commit 7b7fe2a

File tree

3 files changed

+111
-96
lines changed

3 files changed

+111
-96
lines changed

.github/README.md

Lines changed: 13 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -1,105 +1,31 @@
11
# Umbraco.Community.BackOfficeOrganiser
22

3-
[![Umbraco Marketplace](https://img.shields.io/badge/Umbraco-Marketplace-%233544B1?style=flat&logo=umbraco)](https://marketplace.umbraco.com/package/umbraco.community.backofficeorganiser)
4-
[![GitHub License](https://img.shields.io/github/license/jcdcdev/Umbraco.Community.BackOfficeOrganiser?color=8AB803&label=License&logo=github)](https://github.com/jcdcdev/Umbraco.Community.BackOfficeOrganiser/blob/main/LICENSE)
5-
[![NuGet Downloads](https://img.shields.io/nuget/dt/Umbraco.Community.BackOfficeOrganiser?color=cc9900&label=Downloads&logo=nuget)](https://www.nuget.org/packages/Umbraco.Community.BackOfficeOrganiser/)
3+
[![Umbraco Marketplace](https://img.shields.io/badge/Umbraco-Marketplace-%233544B1?style=flat&logo=umbraco)](https://marketplace.umbraco.com/package/Umbraco.Community.BackOfficeOrganiser)
4+
[![License](https://img.shields.io/github/license/jcdcdev/Umbraco.Community.BackOfficeOrganiser?color=8AB803&label=License&logo=github)](https://github.com/jcdcdev/Umbraco.Community.BackOfficeOrganiser?tab=MIT-1-ov-file)
5+
[![NuGet Downloads](https://img.shields.io/nuget/dt/Umbraco.Community.BackOfficeOrganiser?color=cc9900&label=Downloads&logo=nuget)](https://www.nuget.org/packages/Umbraco.Community.BackOfficeOrganiser)
6+
[![Project Website](https://img.shields.io/badge/Project%20Website-jcdc.dev-jcdcdev?style=flat&color=3c4834&logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0id2hpdGUiIGNsYXNzPSJiaSBiaS1wYy1kaXNwbGF5IiB2aWV3Qm94PSIwIDAgMTYgMTYiPgogIDxwYXRoIGQ9Ik04IDFhMSAxIDAgMCAxIDEtMWg2YTEgMSAwIDAgMSAxIDF2MTRhMSAxIDAgMCAxLTEgMUg5YTEgMSAwIDAgMS0xLTF6bTEgMTMuNWEuNS41IDAgMSAwIDEgMCAuNS41IDAgMCAwLTEgMG0yIDBhLjUuNSAwIDEgMCAxIDAgLjUuNSAwIDAgMC0xIDBNOS41IDFhLjUuNSAwIDAgMCAwIDFoNWEuNS41IDAgMCAwIDAtMXpNOSAzLjVhLjUuNSAwIDAgMCAuNS41aDVhLjUuNSAwIDAgMCAwLTFoLTVhLjUuNSAwIDAgMC0uNS41TTEuNSAyQTEuNSAxLjUgMCAwIDAgMCAzLjV2N0ExLjUgMS41IDAgMCAwIDEuNSAxMkg2djJoLS41YS41LjUgMCAwIDAgMCAxSDd2LTRIMS41YS41LjUgMCAwIDEtLjUtLjV2LTdhLjUuNSAwIDAgMSAuNS0uNUg3VjJ6Ii8+Cjwvc3ZnPg==)](https://jcdc.dev/umbraco-packages/back-office-organiser)
67

7-
Is your backoffice a bit untidy?
8+
9+
Is your Backoffice a bit untidy?
810

911
- Single-click (and opinionated) organiser for
1012
- Document Types
1113
- Media Types
1214
- Member Types
1315
- Data Types
1416

15-
![A screenshot of the Back Office Organiser in action](https://raw.githubusercontent.com/jcdcdev/Umbraco.Community.BackOfficeOrganiser/main/docs/screenshots/backoffice.png)
16-
17-
## Quick Start
18-
19-
- Go to the backoffice
20-
- Click `Settings`
21-
- Click `Organise`
22-
- Select the types you wish to organise
23-
- Click submit and confirm
24-
- Refresh your page and enjoy a cleaner backoffice ✨
25-
26-
## Configuration
27-
Add the following to your `appsettings.json` file
28-
29-
```JSON
30-
"BackOfficeOrganiser": {
31-
"DataTypes": {
32-
"InternalFolderName": "Internal",
33-
"ThirdPartyFolderName": "Third Party",
34-
"CustomFolderName": "Custom"
35-
}
36-
}
37-
```
38-
39-
## Extending
40-
41-
You can implement your own `Organise Action`, a method that determines where a type should be moved to. Implement the following interfaces:
17+
> [!WARNING]
18+
> Version 12 is no longer supported and is End of Life (EOL).
4219
43-
- `Document Types` => `IContentTypeOrganiseAction`
44-
- `Media Types` => `IMediaTypeOrganiseAction`
45-
- `Member Types` => `IMemberTypeOrganiseAction`
46-
- `Data Types` => `IDataTypeOrganiseAction`
20+
> Please review the [security policy](https://github.com/jcdcdev/Umbraco.Community.BackOfficeOrganiser?tab=security-ov-file#supported-versions) for more information.
4721
48-
### Example
49-
```csharp
50-
using jcdcdev.Umbraco.Core.Extensions;
51-
using Umbraco.Cms.Core.Models;
52-
using Umbraco.Cms.Core.Services;
53-
54-
namespace Umbraco.Community.BackOfficeOrganiser.Organisers.ContentTypes;
55-
56-
public class ExampleContentTypeOrganiseAction : IContentTypeOrganiseAction
57-
{
58-
// Handle all but container types (Folders)
59-
public bool CanMove(IContentType contentType, IContentTypeService contentTypeService) => !contentType.IsContainer;
60-
61-
public void Move(IContentType contentType, IContentTypeService contentTypeService)
62-
{
63-
var folderId = -1;
64-
var folderName = string.Empty;
65-
var isComposition = contentTypeService.GetComposedOf(contentType.Id).Any();
66-
67-
if (contentType.AllowedTemplates?.Any() ?? false)
68-
{
69-
folderName = "Pages";
70-
}
71-
else if (isComposition)
72-
{
73-
folderName = "Compositions";
74-
}
75-
else if (contentType.IsElement)
76-
{
77-
folderName = "Element Types";
78-
}
79-
80-
if (!folderName.IsNullOrWhiteSpace())
81-
{
82-
folderId = contentTypeService.GetOrCreateFolder(folderName).Id;
83-
}
22+
## Contributing
8423

85-
contentTypeService.Move(contentType, folderId);
86-
}
87-
}
24+
Contributions to this package are most welcome! Please visit the [Contributing](https://github.com/jcdcdev/Umbraco.Community.BackOfficeOrganiser/contribute) page.
8825

89-
public class Composer : IComposer
90-
{
91-
public void Compose(IUmbracoBuilder builder)
92-
{
93-
// Make sure you register your action BEFORE the default!
94-
builder.ContentTypeOrganiseActions().Insert<ExampleContentTypeOrganiseAction>();
95-
}
96-
}
97-
```
26+
## Acknowledgements (Thanks)
9827

99-
## Contributing
28+
- LottePitcher - [opinionated-package-starter](https://github.com/LottePitcher/opinionated-package-starter)
10029

101-
Contributions to this package are most welcome! Please read the [Contributing Guidelines](https://github.com/jcdcdev/Umbraco.Community.BackOfficeOrganiser/blob/main/.github/CONTRIBUTING.md).
10230

103-
## Acknowledgments (thanks!)
10431

105-
- LottePitcher - [opinionated-package-starter](https://github.com/LottePitcher/opinionated-package-starter)

SECURITY.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Security Policy
2+
3+
## Supported Versions
4+
5+
The following table outlines the versions of the project that are currently supported with security & feature updates:
6+
7+
> [!NOTE]
8+
> Once a version starts its security phase, it will no longer receive feature updates. Only critical bug fixes and security updates will be provided.
9+
10+
| Package Version | Umbraco Version | Security Phase Start | End of Life |
11+
| ---------------------------------------------------------------------------------- | --------------- | -------------------- | ----------- |
12+
| [10.x](https://github.com/jcdcdev/Umbraco.Community.BackOfficeOrganiser/tree/v10) | 10 | 2024-06-16 | 2025-06-16 |
13+
| [13.x](https://github.com/jcdcdev/Umbraco.Community.BackOfficeOrganiser/tree/v13) | 13 | 2025-12-14 | 2026-12-14 |
14+
| [15.x](https://github.com/jcdcdev/Umbraco.Community.BackOfficeOrganiser/tree/v15) | 15 | 2025-08-14 | 2025-11-14 |
15+
| [16.x](https://github.com/jcdcdev/Umbraco.Community.BackOfficeOrganiser/tree/v16) | 16 | 2026-03-12 | 2026-06-12 |
16+
## Unsupported Versions
17+
18+
| Package Version | Umbraco Version | End of Life |
19+
| ---------------------------------------------------------------------------------- | --------------- | ----------- |
20+
| [12.x](https://github.com/jcdcdev/Umbraco.Community.BackOfficeOrganiser/tree/v12) | 12 | 2024-06-29 |
21+
| [14.x](https://github.com/jcdcdev/Umbraco.Community.BackOfficeOrganiser/tree/v14) | 14 | 2025-05-30 |
22+
23+
24+
## Future Support
25+
26+
Project maintainers plan to support all STS (Short-Term Support) and LTS (Long-Term Support) versions of Umbraco. However, exact release dates cannot be guaranteed.
27+
28+
> [!NOTE]
29+
> Visit [jcdc.dev/blog/umbraco-version-information](https://jcdc.dev/blog/umbraco-version-information) for more information on Umbraco versions.
30+
31+
## Reporting a Vulnerability
32+
33+
If you discover a vulnerability in this project, please follow one of these steps to report it:
34+
35+
- Create an [issue](https://github.com/jcdcdev/Umbraco.Community.BackOfficeOrganiser/security/advisories/new)
36+
- Contact the project author privately at [jcdc.dev/contact](https://jcdc.dev/contact)
37+
38+
### Details
39+
40+
Include as much information as possible about the vulnerability, including:
41+
42+
- Steps to reproduce
43+
- Potential impact
44+
- Any suggested fixes
45+
46+
### Acknowledgment
47+
48+
You will receive an acknowledgment of your report as soon as possible.
49+
50+
> [!NOTE]
51+
> Response times may vary depending on other commitments.
52+
53+
### Resolution
54+
55+
Once the vulnerability is confirmed, project maintainers will work to resolve it as quickly as possible.
56+
57+
You will be notified once the issue has been resolved or rejected.
58+
59+
> [!TIP]
60+
> If the vulnerability is accepted, you will receive credit in the release notes.
61+
62+
Thank you for helping to keep this project secure!
63+

docs/README_nuget.md

Lines changed: 35 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,50 @@
11
# Umbraco.Community.BackOfficeOrganiser
22

3-
[![Documentation](https://img.shields.io/badge/Docs-Quickstart-394933?style=flat&logo=github)](https://github.com/jcdcdev/Umbraco.Community.BackOfficeOrganiser/tree/main?tab=readme-ov-file#quick-start)
4-
[![Umbraco Marketplace](https://img.shields.io/badge/Umbraco-Marketplace-%233544B1?style=flat&logo=umbraco)](https://marketplace.umbraco.com/package/umbraco.community.backofficeorganiser)
5-
[![GitHub License](https://img.shields.io/github/license/jcdcdev/Umbraco.Community.BackOfficeOrganiser?color=8AB803&label=License&logo=github)](https://github.com/jcdcdev/Umbraco.Community.BackOfficeOrganiser/blob/main/LICENSE)
6-
[![NuGet Downloads](https://img.shields.io/nuget/dt/Umbraco.Community.BackOfficeOrganiser?color=cc9900&label=Downloads&logo=nuget)](https://www.nuget.org/packages/Umbraco.Community.BackOfficeOrganiser/)
3+
[![Documentation](https://img.shields.io/badge/Docs-Quickstart-394933?style=flat&logo=github)](https://github.com/jcdcdev/Umbraco.Community.BackOfficeOrganiser#quick-start)
4+
[![Umbraco Marketplace](https://img.shields.io/badge/Umbraco-Marketplace-%233544B1?style=flat&logo=umbraco)](https://marketplace.umbraco.com/package/Umbraco.Community.BackOfficeOrganiser)
5+
[![License](https://img.shields.io/github/license/jcdcdev/Umbraco.Community.BackOfficeOrganiser?color=8AB803&label=License&logo=github)](https://github.com/jcdcdev/Umbraco.Community.BackOfficeOrganiser?tab=MIT-1-ov-file)
6+
[![NuGet Downloads](https://img.shields.io/nuget/dt/Umbraco.Community.BackOfficeOrganiser?color=cc9900&label=Downloads&logo=nuget)](https://www.nuget.org/packages/Umbraco.Community.BackOfficeOrganiser)
7+
[![Project Website](https://img.shields.io/badge/Project%20Website-jcdc.dev-jcdcdev?style=flat&color=3c4834&logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0id2hpdGUiIGNsYXNzPSJiaSBiaS1wYy1kaXNwbGF5IiB2aWV3Qm94PSIwIDAgMTYgMTYiPgogIDxwYXRoIGQ9Ik04IDFhMSAxIDAgMCAxIDEtMWg2YTEgMSAwIDAgMSAxIDF2MTRhMSAxIDAgMCAxLTEgMUg5YTEgMSAwIDAgMS0xLTF6bTEgMTMuNWEuNS41IDAgMSAwIDEgMCAuNS41IDAgMCAwLTEgMG0yIDBhLjUuNSAwIDEgMCAxIDAgLjUuNSAwIDAgMC0xIDBNOS41IDFhLjUuNSAwIDAgMCAwIDFoNWEuNS41IDAgMCAwIDAtMXpNOSAzLjVhLjUuNSAwIDAgMCAuNS41aDVhLjUuNSAwIDAgMCAwLTFoLTVhLjUuNSAwIDAgMC0uNS41TTEuNSAyQTEuNSAxLjUgMCAwIDAgMCAzLjV2N0ExLjUgMS41IDAgMCAwIDEuNSAxMkg2djJoLS41YS41LjUgMCAwIDAgMCAxSDd2LTRIMS41YS41LjUgMCAwIDEtLjUtLjV2LTdhLjUuNSAwIDAgMSAuNS0uNUg3VjJ6Ii8+Cjwvc3ZnPg==)](https://jcdc.dev/umbraco-packages/back-office-organiser)
78

8-
Is your backoffice a bit untidy?
9+
10+
Is your Backoffice a bit untidy?
911

1012
- Single-click (and opinionated) organiser for
1113
- Document Types
1214
- Media Types
1315
- Member Types
1416
- Data Types
1517

16-
![A screenshot of the Back Office Organiser in action](https://raw.githubusercontent.com/jcdcdev/Umbraco.Community.BackOfficeOrganiser/main/docs/screenshots/backoffice.png)
18+
## Quick Start
19+
20+
- Go to the backoffice
21+
- Click `Settings`
22+
- Click `Organise`
23+
- Select the types you wish to organise
24+
- Click submit and confirm
25+
- Refresh your page and enjoy a cleaner backoffice ✨
26+
27+
## Configuration
28+
29+
Add the following to your `appsettings.json` file
30+
31+
```json title="appsettings.json"
32+
"BackOfficeOrganiser": {
33+
"DataTypes": {
34+
"InternalFolderName": "Internal",
35+
"ThirdPartyFolderName": "Third Party",
36+
"CustomFolderName": "Custom"
37+
}
38+
}
39+
```
1740

1841
## Contributing
1942

20-
Contributions to this package are most welcome! Please read the [Contributing Guidelines](https://github.com/jcdcdev/Umbraco.Community.BackOfficeOrganiser/blob/main/.github/CONTRIBUTING.md).
43+
Contributions to this package are most welcome! Please visit the [Contributing](https://github.com/jcdcdev/Umbraco.Community.BackOfficeOrganiser/contribute) page.
44+
45+
## Acknowledgements (Thanks)
46+
47+
- LottePitcher - [opinionated-package-starter](https://github.com/LottePitcher/opinionated-package-starter)
48+
2149

22-
## Acknowledgments (thanks!)
2350

24-
- LottePitcher - [opinionated-package-starter](https://github.com/LottePitcher/opinionated-package-starter)

0 commit comments

Comments
 (0)