Phantasmal.Umbraco.HideUncreatedVariants 1.1.0

The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package Phantasmal.Umbraco.HideUncreatedVariants --version 1.1.0
                    
NuGet\Install-Package Phantasmal.Umbraco.HideUncreatedVariants -Version 1.1.0
                    
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="Phantasmal.Umbraco.HideUncreatedVariants" Version="1.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Phantasmal.Umbraco.HideUncreatedVariants" Version="1.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Phantasmal.Umbraco.HideUncreatedVariants" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Phantasmal.Umbraco.HideUncreatedVariants --version 1.1.0
                    
#r "nuget: Phantasmal.Umbraco.HideUncreatedVariants, 1.1.0"
                    
#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.
#:package Phantasmal.Umbraco.HideUncreatedVariants@1.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Phantasmal.Umbraco.HideUncreatedVariants&version=1.1.0
                    
Install as a Cake Addin
#tool nuget:?package=Phantasmal.Umbraco.HideUncreatedVariants&version=1.1.0
                    
Install as a Cake Tool

Hide uncreated variants

NuGet

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • 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