Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Hi,
Unless there's a specific reason why you need to use [Ignore], I'd use [ScaffoldColumn(false)] to hide a field. I've used that on properties of list item models without issue.
[ScaffoldColumn(false)] also does not work for me. It is not shown in the editor where we enter the values but it is shown in the grid after entering the value.
Hi,
I think this link will help: https://world.episerver.com/forum/developer-forum/-Episerver-75-CMS/Thread-Container/2017/2/how-to-hide-some-properties-from-table-of-propertylistlttgt/
// Ha Bui
Property of list object in page is not hidden even when attributed as [Ignore]. In the code below, Name is visible in editor as non-editable field.
[PropertyDefinitionTypePlugIn]
public class StudentProperty : PropertyListBase<TestimonialList>
{
[Ignore]
}
public class Student
{
}
public class StudentBlock : BlockData
{
[EditorDescriptor(EditorDescriptorType = typeof(CollectionEditorDescriptor<Student>))]
public virtual IList<Student> Students{ get; set; }
}