Skip to content

Commit d86cc01

Browse files
authored
Merge pull request #109 from jcdcdev/dev/v14
14.1.9
2 parents cd6a603 + cb50d10 commit d86cc01

File tree

5 files changed

+143
-129
lines changed

5 files changed

+143
-129
lines changed

.github/README.md

Lines changed: 12 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -1,119 +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)
66
[![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)
77

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

1011
- Single-click (and opinionated) organiser for
1112
- Document Types
1213
- Media Types
1314
- Member Types
1415
- Data Types
15-
- Automatically sorts on save (configurable)
16-
17-
![A screenshot of the Back Office Organiser in action](https://raw.githubusercontent.com/jcdcdev/Umbraco.Community.BackOfficeOrganiser/main/docs/screenshots/backoffice.png)
18-
19-
## Quick Start
20-
21-
- Go to the backoffice
22-
- Click `Settings`
23-
- Click `Organise`
24-
- Select the types you wish to organise
25-
- Click submit and confirm
26-
- Refresh your page and enjoy a cleaner backoffice ✨
27-
28-
## Configuration
29-
Add the following to your `appsettings.json` file
30-
31-
```JSON
32-
{
33-
"BackOfficeOrganiser": {
34-
"DataTypes": {
35-
"InternalFolderName": "Internal",
36-
"ThirdPartyFolderName": "Third Party",
37-
"CustomFolderName": "Custom",
38-
"OrganiseOnSave": true
39-
},
40-
"ContentTypes": {
41-
"OrganiseOnSave": true
42-
},
43-
"MediaTypes": {
44-
"OrganiseOnSave": true
45-
},
46-
"MemberTypes": {
47-
"OrganiseOnSave": true
48-
}
49-
}
50-
}
51-
```
52-
53-
## Extending
5416

55-
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 14 is no longer supported and is End of Life (EOL).
5619
57-
- `Document Types` => `IContentTypeOrganiseAction`
58-
- `Media Types` => `IMediaTypeOrganiseAction`
59-
- `Member Types` => `IMemberTypeOrganiseAction`
60-
- `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.
6121
62-
### Example
63-
```csharp
64-
using jcdcdev.Umbraco.Core.Extensions;
65-
using Umbraco.Cms.Core.Models;
66-
using Umbraco.Cms.Core.Services;
67-
68-
namespace Umbraco.Community.BackOfficeOrganiser.Organisers.ContentTypes;
69-
70-
public class ExampleContentTypeOrganiseAction : IContentTypeOrganiseAction
71-
{
72-
// Handle all but container types (Folders)
73-
public bool CanMove(IContentType contentType, IContentTypeService contentTypeService) => !contentType.IsContainer;
74-
75-
public void Move(IContentType contentType, IContentTypeService contentTypeService)
76-
{
77-
var folderId = -1;
78-
var folderName = string.Empty;
79-
var isComposition = contentTypeService.GetComposedOf(contentType.Id).Any();
80-
81-
if (contentType.AllowedTemplates?.Any() ?? false)
82-
{
83-
folderName = "Pages";
84-
}
85-
else if (isComposition)
86-
{
87-
folderName = "Compositions";
88-
}
89-
else if (contentType.IsElement)
90-
{
91-
folderName = "Element Types";
92-
}
93-
94-
if (!folderName.IsNullOrWhiteSpace())
95-
{
96-
folderId = contentTypeService.GetOrCreateFolder(folderName).Id;
97-
}
22+
## Contributing
9823

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

103-
public class Composer : IComposer
104-
{
105-
public void Compose(IUmbracoBuilder builder)
106-
{
107-
// Make sure you register your action BEFORE the default!
108-
builder.ContentTypeOrganiseActions().Insert<ExampleContentTypeOrganiseAction>();
109-
}
110-
}
111-
```
26+
## Acknowledgements (Thanks)
11227

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

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

117-
## Acknowledgments (thanks!)
11831

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

SECURITY.md

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
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+
## Unsupported Versions
16+
17+
| Package Version | Umbraco Version | End of Life |
18+
| ---------------------------------------------------------------------------------- | --------------- | ----------- |
19+
| [12.x](https://github.com/jcdcdev/Umbraco.Community.BackOfficeOrganiser/tree/v12) | 12 | 2024-06-29 |
20+
| [14.x](https://github.com/jcdcdev/Umbraco.Community.BackOfficeOrganiser/tree/v14) | 14 | 2025-05-30 |
21+
22+
23+
## Future Support
24+
25+
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.
26+
27+
> [!NOTE]
28+
> Visit [jcdc.dev/blog/umbraco-version-information](https://jcdc.dev/blog/umbraco-version-information) for more information on Umbraco versions.
29+
30+
## Reporting a Vulnerability
31+
32+
If you discover a vulnerability in this project, please follow one of these steps to report it:
33+
34+
- Create an [issue](https://github.com/jcdcdev/Umbraco.Community.BackOfficeOrganiser/security/advisories/new)
35+
- Contact the project author privately at [jcdc.dev/contact](https://jcdc.dev/contact)
36+
37+
### Details
38+
39+
Include as much information as possible about the vulnerability, including:
40+
41+
- Steps to reproduce
42+
- Potential impact
43+
- Any suggested fixes
44+
45+
### Acknowledgment
46+
47+
You will receive an acknowledgment of your report as soon as possible.
48+
49+
> [!NOTE]
50+
> Response times may vary depending on other commitments.
51+
52+
### Resolution
53+
54+
Once the vulnerability is confirmed, project maintainers will work to resolve it as quickly as possible.
55+
56+
You will be notified once the issue has been resolved or rejected.
57+
58+
> [!TIP]
59+
> If the vulnerability is accepted, you will receive credit in the release notes.
60+
61+
Thank you for helping to keep this project secure!
62+

docs/README_nuget.md

Lines changed: 34 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +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)
77
[![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)
88

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

1112
- Single-click (and opinionated) organiser for
1213
- Document Types
1314
- Media Types
1415
- Member Types
1516
- Data Types
1617

17-
![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+
```
1840

1941
## Contributing
2042

21-
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+
2249

23-
## Acknowledgments (thanks!)
2450

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

src/Umbraco.Community.BackOfficeOrganiser.Client/package-lock.json

Lines changed: 33 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Umbraco.Community.BackOfficeOrganiser.Client/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
"lit": "^3.3.0"
1414
},
1515
"devDependencies": {
16-
"@hey-api/openapi-ts": "^0.66.5",
16+
"@hey-api/openapi-ts": "^0.67.1",
1717
"@umbraco-cms/backoffice": "^14.3.3",
1818
"typescript": "^5.8.3",
19-
"vite": "^6.3.2"
19+
"vite": "^6.3.5"
2020
},
2121
"volta": {
2222
"node": "20.9.0"

0 commit comments

Comments
 (0)