Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sitecore: hiding fields in content editor?

Tags:

c#

sitecore

I'm part of a team building a website in Sitecore. We've added a template field whose value we want to hide from content editors.

(the field contains extra CSS classes for a page so we can target styles at specific pages. Not best-practice - we should put it in code - but it has its advantages when the site is in production.)

Any way to do hide specific fields in the Sitecore content editor?

Cheers

like image 886
Chris Adams Avatar asked Nov 28 '22 16:11

Chris Adams


2 Answers

You should restrict Field Read access to the field (so not Read access)

enter image description here

like image 101
Ruud van Falier Avatar answered Dec 01 '22 07:12

Ruud van Falier


Ruud's got the ticket, I think. Just to tack a little bit on to his answer, and because I wasn't sure how to do this myself the first time I worked w/ field-level security, select the Columns button in the toolbar to show the Field Read & Field Write options in the Security Editor.

Sitecore security toolbar w/ Columns highlighted

Sitecore security column dialog

like image 42
wildwend Avatar answered Dec 01 '22 07:12

wildwend