Hide fields in Backend on a page to page basis
All code for Page TSconfig.
With pages you can disable fields for page definitions.
TCEFORM.pages.title { disabled = 1 }
Or remove items from dropdowns, for example hide pagetypes:
TCEFORM.pages.doktype { removeItems = div,menu,... }
With tt_content you can hide fields for the content element editor.
TCEFORM.tt_content.CType { removeItems = header, textpic, image, bullets, table, uploads, multimedia, mailform, search, login, splash, menu, shortcut, list, script, div, html } TCEFORM.tt_content { CType.disabled = 1 sys_language_uid.disabled = 1 colPos.disabled = 1 spaceBefore.disabled = 1 spaceAfter.disabled = 1 section_frame.disabled = 1 sectionIndex.disabled = 1 linkToTop.disabled = 1 } TCEFORM.tt_content { header.disabled = 1 header_position.disabled = 1 header_layout.disabled = 1 header_link.disabled = 1 date.disabled = 1 } TCEFORM.tt_content { text_align.disabled = 1 text_face.disabled = 1 text_size.disabled = 1 text_color.disabled = 1 } TCEFORM.tt_content { rte_enabled.disabled = 1 text_properties.disabled = 1 } TCEFORM.tt_content.imageorient { #disabled = 1 removeItems = 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 17, 18 # 25, 26 } TCEFORM.tt_content { imagecols.disabled = 1 image_noRows.disabled=1 imageborder.disabled = 1 imagewidth.disabled = 1 imageheight.disabled = 1 image_link.disabled = 1 image_zoom.disabled = 1 image_compression.disabled = 1 image_effects.disabled = 1 image_frames.disabled = 1 } TCEFORM.tt_content { #imagecaption.disabled = 1 imagecaption_position.disabled = 1 } TCEFORM.tt_content { altText.disabled = 1 titleText.disabled = 1 longdescURL.disabled = 1 } TCEFORM.tt_content { hidden.disabled = 1 starttime.disabled = 1 endtime.disabled = 1 } TCEFORM.tt_content { fe_group.disabled = 1 }
