{"id":1135,"date":"2016-04-28T12:05:46","date_gmt":"2016-04-28T12:05:46","guid":{"rendered":"https:\/\/www.taywa.ch\/blog\/?p=1135"},"modified":"2016-06-07T13:55:11","modified_gmt":"2016-06-07T13:55:11","slug":"typo3-7-lts-subheader-bei-den-contenttypen-text-text-mit-bild-und-bilder-hinzufuegen","status":"publish","type":"post","link":"https:\/\/www.taywa.ch\/blog\/typo3\/typo3-7-lts-subheader-bei-den-contenttypen-text-text-mit-bild-und-bilder-hinzufuegen\/","title":{"rendered":"Typo3 7 LTS \/ 8 LTS: Subheader bei den Contenttypen &#8218;text&#8216;, &#8218;text mit bild&#8216; und &#8218;bilder&#8216; hinzuf\u00fcgen"},"content":{"rendered":"<p><strong>problem:<\/strong> wir m\u00f6chten in typo3 7 LTS das untertitel Feld im backend nicht nur beim ctype header sondern auch bei den inhaltselementen text, textpic. und image anzeigen.<br \/>\nfr\u00fcher (in typo3 4.5 oder typo3 6.2) ging das so: in der datei typo3conf\/extTables.php folgende zeile hinzuf\u00fcgen:<\/p>\n<pre># alt:\r\nt3lib_extMgm::addToAllTCAtypes('tt_content','subheader', 'text,textpic,html,image', 'after:header');\r\n<\/pre>\n<p><strong>l\u00f6sung:<\/strong><br \/>\nleider funktioniert der aufruf in der extTables.php in typo3 7 LTS so nicht mehr. neu muss die funktion &#8218;addToAllTCAtypes&#8216; wiefolgt aufgerufen werden:<\/p>\n<pre># neu:\r\n\\TYPO3\\CMS\\Core\\Utility\\ExtensionManagementUtility::addToAllTCAtypes('tt_content','subheader', 'text,textpic,html,image', 'before:bodytext');\r\n<\/pre>\n<p><strong>achtung I:<\/strong><br \/>\nspezielle beachtung verdient der 4. parameter &#8211; die position im backendformular. mit dem feldnamen &#8218;after:header&#8216; geht es nicht mehr wegen eines bugs. dies kann man umgehen indem man &#8218;before:bodytext&#8216; als position angibt &#8211; was visuell fast aufs selbe hinauskommt.<br \/>\n<a href=\"https:\/\/typo3.org\/api\/typo3cms\/class_t_y_p_o3_1_1_c_m_s_1_1_core_1_1_utility_1_1_extension_management_utility.html#aba12675080ad9c2ba1321947349c5ca3\" target=\"_blank\">dokumentation von addToAllTCAtypes<\/a><\/p>\n<p><strong>achtung II:<\/strong><br \/>\ndie extTables.php wird in Typo3 8 vorraussichtlich nicht mehr unterst\u00fctzt.<\/p>\n<p><strong>achtung II<strong>I<\/strong>:<\/strong><\/p>\n<p>Wir haben eine TYPO3\u00a0Extension:\u00a0taywa_subheader\u00a0gemacht f\u00fcr TYPO3 7\/8:<\/p>\n<p><a href=\"https:\/\/typo3.org\/extensions\/repository\/view\/taywa_subheader\">https:\/\/typo3.org\/extensions\/repository\/view\/taywa_subheader<\/a><\/p>\n<p><a href=\"https:\/\/github.com\/taywa\/t3ext-taywa_subheader\">https:\/\/github.com\/taywa\/t3ext-taywa_subheader<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>problem: wir m\u00f6chten in typo3 7 LTS das untertitel Feld im backend nicht nur beim ctype header sondern auch bei den inhaltselementen text, textpic. und image anzeigen. fr\u00fcher (in typo3 4.5 oder typo3 6.2) ging das so: in der datei typo3conf\/extTables.php folgende zeile hinzuf\u00fcgen: # alt: t3lib_extMgm::addToAllTCAtypes(&#8218;tt_content&#8216;,&#8217;subheader&#8216;, &#8218;text,textpic,html,image&#8216;, &#8218;after:header&#8216;); l\u00f6sung: leider funktioniert der aufruf in<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,171,197,196],"tags":[118,97,180],"class_list":["post-1135","post","type-post","status-publish","format-standard","hentry","category-typo3","category-typo3-7-lts","category-typo3-8-lts","category-typo3-migration","tag-backend","tag-exttables-php","tag-typo3"],"_links":{"self":[{"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/posts\/1135","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/comments?post=1135"}],"version-history":[{"count":8,"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/posts\/1135\/revisions"}],"predecessor-version":[{"id":1158,"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/posts\/1135\/revisions\/1158"}],"wp:attachment":[{"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/media?parent=1135"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/categories?post=1135"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/tags?post=1135"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}