AI OnAI Off
It's possible. You can create a custom editor to remove the label.
but if you only want to remove the label of the checkboxes, the simplest way in my opinion is creating a custom SelectMany attribute.
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
public class SelectManyWithoutLabelAttribute : Attribute, IDisplayMetadataProvider
{
public void CreateDisplayMetadata(DisplayMetadataProviderContext context)
{
var extendedMetadata = context.DisplayMetadata.AdditionalValues[ExtendedMetadata.ExtendedMetadataDisplayKey] as ExtendedMetadata;
if (extendedMetadata == null)
{
return;
}
extendedMetadata.ClientEditingClass = "epi-cms/contentediting/editors/CheckBoxListEditor";
extendedMetadata.SelectionFactoryType = SelectionFactoryType;
extendedMetadata.DisplayName = "";
}
public virtual Type SelectionFactoryType { get; set; }
}
Hi, i have the requirement to show some checkboxes in an inline block without a label, but the cms is adding the property-name as fallback:
This is the main block:
and this is the ArticleFilterSettingsBlock
So i want to show the ArticleFilterbarSettings without a label since it's just a bunch of checkboxes and the "Visible filters" is already the label for both properties.
It seems to be impossible :