I’ve released Hide It, a small Umbraco package that adds a hide/show button to Block List and Block Grid, making it easy to temporarily hide content without removing it.
Cool!
We’ve considered similar functionality in the past but did not go through with the efforts yet with the concern for indexing and how such blocks should be handled within search.
Friendly heads-up on the consideration
Looking forward to checking it out because there are definitely good use cases for such a package.
I haven’t validated this in a full headless project yet, but based on the implementation it should also be filtered in Content Delivery API output.
HideIt registers custom implementations of Umbraco’s BlockListPropertyValueConverter and BlockGridPropertyValueConverter in DI, so filtering runs in ConvertIntermediateToObject(...) as part of Umbraco’s core value-conversion pipeline (before both Razor rendering and Delivery API serialization). That means API consumers should receive BlockListModel/BlockGridModel values already filtered to visible items.