0 votes

VariantsHider

NOTE: For Umbraco v10/v13, use the Discipline package: 

https://marketplace.umbraco.com/package/dotsee.discipline

which provides the functionality of the AutoNode, NodeRestrict, VirtualNodes, and VariantsHider packages together. 

 

This is a simple plugin for Umbraco v9.4+ which hides variants in the back office content tree that have not been created yet (the ones that appear as placeholders with parentheses around them). It also adds a new menu option to the "Content" context menu allowing you to toggle between displaying and hiding said variants.

The purpose of the plugin is to unclutter the content tree for editors in case there are too many unset variants between languages. It is based on the current back office UI and CSS, and it's possible that it'll break if changes are made there.

After installing the plugin, you can enable it by adding the following in appsettings.json:

 "VariantsHider": {
   "Enabled": true,
   "Caption":  "My menu caption"
 }

Caption is optional, and you can omit it - a default caption will be displayed. Otherwise, set it to what you like it to say, e.g. "Unclutter me!".

Before hiding unset variants:

After hiding unset variants:

Screenshots

NuGet install instructions for Umbraco 9+

dotnet add package DotSee.VariantsHider

Package owner

Sotiris Filippidis

Sotiris Filippidis

Sotiris has 1501 karma points

Package Compatibility

This package is compatible with the following versions as reported by community members who have downloaded this package:
Untested or doesn't work on Umbraco Cloud
Version 8.18.x (untested)

You must login before you can report on package compatibility.

Previously reported to work on versions:

Package Information

  • Package owner: Sotiris Filippidis
  • Created: 03/07/2022
  • Current version 1.0.0
  • License MIT
  • Downloads on Our: 0
  • Downloads on NuGet: 317
  • Total downloads : 317

External resources