I need to hide a template field on both Content Editor and Experience Editor. For Content Editor, I could achieve it by overriding the GetFields pipeline. It still shows up on the Experience Editor. How do I hide it? Thanks in advance!
1 Answer
Turns out we were using a SuperFieldEditor for our X-Editor to provide access to the template fields for the component.
So I fixed the issue by disabling Field access to all authors. Now it was little tricky since I wanted to write to the field, but not allow read. Here's what I ended up setting. Works!
PageMode.IsExperienceEditor
in your view.