Phantasmal.Umbraco.HideUncreatedVariants
1.1.0
dotnet add package Phantasmal.Umbraco.HideUncreatedVariants --version 1.1.0
NuGet\Install-Package Phantasmal.Umbraco.HideUncreatedVariants -Version 1.1.0
<PackageReference Include="Phantasmal.Umbraco.HideUncreatedVariants" Version="1.1.0" />
<PackageVersion Include="Phantasmal.Umbraco.HideUncreatedVariants" Version="1.1.0" />
<PackageReference Include="Phantasmal.Umbraco.HideUncreatedVariants" />
paket add Phantasmal.Umbraco.HideUncreatedVariants --version 1.1.0
#r "nuget: Phantasmal.Umbraco.HideUncreatedVariants, 1.1.0"
#:package Phantasmal.Umbraco.HideUncreatedVariants@1.1.0
#addin nuget:?package=Phantasmal.Umbraco.HideUncreatedVariants&version=1.1.0
#tool nuget:?package=Phantasmal.Umbraco.HideUncreatedVariants&version=1.1.0
Hide uncreated variants
An Umbraco 17 backoffice extension that hides content tree nodes that have no variant for the currently selected language. Frontend only, with no server code.
Install
dotnet add package Phantasmal.Umbraco.HideUncreatedVariants
Restart the site. The extension is discovered from the package's static web assets. No configuration is required.
Behaviour
When you view the content tree in a given language, nodes with no variant for that language (the dimmed, bracketed items) are removed from the tree. A toggle at the top of the Content section sidebar turns the filter on and off, and the choice is stored in localStorage.
Invariant document types are always shown. Items with no variant data are shown as a safe fallback.
How it works
A backoffice entry point patches window.fetch and removes uncreated items from the document tree and collection responses before they render. The current language comes from UMB_APP_LANGUAGE_CONTEXT. A sidebar app provides the toggle.
Build the frontend
cd src/Phantasmal.Umbraco.HideUncreatedVariants/Client
npm install
npm run build
The output goes to wwwroot/App_Plugins/HideUncreatedVariants/dist. A built copy is committed, so this is only needed when changing the TypeScript.
Pack
dotnet pack src/Phantasmal.Umbraco.HideUncreatedVariants/Phantasmal.Umbraco.HideUncreatedVariants.csproj -c Release
Compatibility
Umbraco 17 and later. Requires a multi-language site with culture variation enabled.
Licence
MIT. See LICENSE.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- No dependencies.
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 |
|---|