AI OnAI Off
Hi,
These are some good example of ModifyMetadata uses-
https://www.gulla.net/make-episerver-string-property-wider/
https://blog.novacare.no/image-preview-in-episerver-all-properties-view/
Hi Ravinda! Thanks for the links. There is nothing in those links that touches anything about the attributes parameter. Do you have any other links that could answer my initial question?
If you add attributes to your model, they will show up in the attributes parameter.
A simple example. Adding the attribute [CultureSpecific] will make it turn up in the attributes parameter.
[CultureSpecific]
[EditorDescriptor(EditorDescriptorType = typeof(LinkItemLiteEditor))]
public virtual LinkItemCollection Links{ get; set; }
You may create your own custom attributes, to suit your specific needs.
PS. Thanks for mentioning my blog posts Ravindra, even if they did not help :-)
Hi! Can somebody explain to me how exactly to use the second parameter from the ModifyMetadata method?
In the documentation the description states: "The custom attributes attached to the model class."
What is the model class?
I have a propertylike this:
And I would like to add some parameters to be used in the ModifyMetadata method. Is it possible?
The goal is to use different linkItem editors for different LinkItemCollection properties.