{"id":543,"date":"2014-11-07T13:19:44","date_gmt":"2014-11-07T11:19:44","guid":{"rendered":"https:\/\/s3lf.de\/blog\/?p=543"},"modified":"2014-11-07T13:45:09","modified_gmt":"2014-11-07T11:45:09","slug":"change-fields-of-personal-data-in-contao-backend","status":"publish","type":"post","link":"https:\/\/s3lf.de\/blog\/2014\/change-fields-of-personal-data-in-contao-backend\/","title":{"rendered":"Change fields of &#8222;Personal Data&#8220; in Contao Backend"},"content":{"rendered":"<p>I was wondering how to change the fields which a backend user can edit by clicking on &#8222;User John Doe&#8220; in the backend.<\/p>\n<p><a href=\"https:\/\/s3lf.de\/blog\/wp-content\/uploads\/2014\/11\/personal-data.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-547\" src=\"https:\/\/s3lf.de\/blog\/wp-content\/uploads\/2014\/11\/personal-data.png\" alt=\"personal-data\" width=\"1002\" height=\"618\" srcset=\"https:\/\/s3lf.de\/blog\/wp-content\/uploads\/2014\/11\/personal-data.png 1002w, https:\/\/s3lf.de\/blog\/wp-content\/uploads\/2014\/11\/personal-data-300x185.png 300w, https:\/\/s3lf.de\/blog\/wp-content\/uploads\/2014\/11\/personal-data-624x384.png 624w\" sizes=\"auto, (max-width: 1002px) 100vw, 1002px\" \/><\/a><\/p>\n<p>It&#8217;s simple.<\/p>\n<p>Just create a new module (or use an existing one like <code>mycompany_mycustomerlocal<\/code>) and under <code>dca\/tl_user.php<\/code> with the following palette definition:<\/p>\n<pre>$GLOBALS['TL_DCA']['tl_user']['palettes']['login'] = '{name_legend},username,'    . 'name,email;{password_legend},password';<\/pre>\n<p>That is it.<\/p>\n<p>I found this by digging into the code a <code>system\/modules\/core\/modules\/ModuleUser.php:52<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was wondering how to change the fields which a backend user can edit by clicking on &#8222;User John Doe&#8220; in the backend. It&#8217;s simple. Just create a new module (or use an existing one like mycompany_mycustomerlocal) and under dca\/tl_user.php with the following palette definition: $GLOBALS[&#8218;TL_DCA&#8216;][&#8218;tl_user&#8216;][&#8218;palettes&#8216;][&#8218;login&#8216;] = &#8218;{name_legend},username,&#8216; . &#8217;name,email;{password_legend},password&#8216;; That is it. I found [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-543","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/s3lf.de\/blog\/wp-json\/wp\/v2\/posts\/543","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/s3lf.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/s3lf.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/s3lf.de\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/s3lf.de\/blog\/wp-json\/wp\/v2\/comments?post=543"}],"version-history":[{"count":6,"href":"https:\/\/s3lf.de\/blog\/wp-json\/wp\/v2\/posts\/543\/revisions"}],"predecessor-version":[{"id":550,"href":"https:\/\/s3lf.de\/blog\/wp-json\/wp\/v2\/posts\/543\/revisions\/550"}],"wp:attachment":[{"href":"https:\/\/s3lf.de\/blog\/wp-json\/wp\/v2\/media?parent=543"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/s3lf.de\/blog\/wp-json\/wp\/v2\/categories?post=543"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/s3lf.de\/blog\/wp-json\/wp\/v2\/tags?post=543"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}