public void Process(DisplayMetadataProviderContext context)
        {
            MetaDataAttributePlacementValidator.ValidateCollectionPropertyType(this, context, typeof(int));

            var modelMetaData = context.DisplayMetadata;

            modelMetaData.AddAdditionalValueIfNotEmpty("Orderable", IsOrderable);
            modelMetaData.TemplateHint = "PageCollection";
        }
        public void Process(DisplayMetadataProviderContext context)
        {
            MetaDataAttributePlacementValidator.ValidateCollectionPropertyType(this, context, typeof(int));

            var modelMetaData = context.DisplayMetadata;

            DocumentAttributeMetaDataHelper.AddFilterData(modelMetaData, FileExtensions, Tags);

            modelMetaData.TemplateHint = "DocumentAssetCollection";
        }
Example #3
0
        public void Process(DisplayMetadataProviderContext context)
        {
            MetaDataAttributePlacementValidator.ValidateCollectionPropertyType(this, context, typeof(CustomEntityIdentity));

            var modelMetaData = context.DisplayMetadata;

            modelMetaData
            .AddAdditionalValueIfNotEmpty("CustomEntityDefinitionCodes", string.Join(",", CustomEntityDefinitionCodes))
            .AddAdditionalValueIfNotEmpty("Orderable", IsOrderable);

            modelMetaData.TemplateHint = "CustomEntityMultiTypeCollection";
        }
        public void Process(DisplayMetadataProviderContext context)
        {
            MetaDataAttributePlacementValidator.ValidateCollectionPropertyType(this, context, typeof(int));

            var modelMetaData = context.DisplayMetadata;

            modelMetaData
            .AddAdditionalValueIfNotEmpty("Width", Width)
            .AddAdditionalValueIfNotEmpty("Height", Height)
            .AddAdditionalValueIfNotEmpty("MinWidth", MinWidth)
            .AddAdditionalValueIfNotEmpty("MinHeight", MinHeight);

            modelMetaData.TemplateHint = "ImageAssetCollection";
        }
Example #5
0
 public void Process(DisplayMetadataProviderContext context)
 {
     MetaDataAttributePlacementValidator.ValidateCollectionPropertyType(this, context, typeof(int));
 }