Watching a new world…

August 11th, 2006

Überschriftsfelder im typo3 Backend deaktivieren

Möchte man die Felder Justierung, Layout und Verweis im Backend für die Redakteue deaktivieren, so stößt man auf folgendes Problem: Es geht nicht!

Normalerweise würde man zunächst folgendes versuchen:

TCEFORM.tt_content.header_layout.disable = 1
TCEFORM.tt_content.header_position.disable = 1
TCEFORM.tt_content.header_link.disable = 1

…aber da tut sich nix. Die Ursache ist ein Bug im typo3 Core System, und zwar sind diese Elemente leider nicht in der sog. Exclude-List, da er Eintrag

'exclude' => 1,

bei ihrer Deklaration fehlt. Die Lösung ist ein kleicher Patch an der Datei /typo3_src-4.0/typo3/sysext/cms/tbl_tt_content.php (fett markiert):

'header_position' => Array (
‘exclude’ => 1,
‘label’ => ‘LLL:EXT:cms/locallang_ttc.php:header_position’,
‘config’ => Array (
‘type’ => ’select’,
‘items’ => Array (
Array(”, ”),
Array(’LLL:EXT:cms/locallang_ttc.php:header_position.I.1′,
‘center’),
Array(’LLL:EXT:cms/locallang_ttc.php:header_position.I.2′,
‘right’),
Array(’LLL:EXT:cms/locallang_ttc.php:header_position.I.3′,
‘left’)
),
‘default’ => ”
)
),
‘header_link’ => Array (
‘exclude’ => 1,
‘label’ => ‘LLL:EXT:cms/locallang_ttc.php:header_link’,
‘config’ => Array (
‘type’ => ‘input’,
’size’ => ‘15′,
‘max’ => ‘256′,
‘checkbox’ => ”,
‘eval’ => ‘trim’,
‘wizards’ => Array(
‘_PADDING’ => 2,
‘link’ => Array(
‘type’ => ‘popup’,
‘title’ => ‘Link’,
‘icon’ => ‘link_popup.gif’,
’script’ => ‘browse_links.php?mode=wizard’,
‘JSopenParams’ => ‘height=300,width=500,status=0,
menubar=0,scrollbars=1′
)
),
’softref’ => ‘typolink’
)
),
‘header_layout’ => Array (
‘exclude’ => 1,
‘label’ => ‘LLL:EXT:lang/locallang_general.php:LGL.type’,
‘config’ => Array (
‘type’ => ’select’,
‘items’ => Array (
Array(’LLL:EXT:lang/locallang_general.php:LGL.normal’, ‘0′),
Array(’LLL:EXT:cms/locallang_ttc.php:header_layout.I.1′, ‘1′),
Array(’LLL:EXT:cms/locallang_ttc.php:header_layout.I.2′, ‘2′),
Array(’LLL:EXT:cms/locallang_ttc.php:header_layout.I.3′, ‘3′),
Array(’LLL:EXT:cms/locallang_ttc.php:header_layout.I.4′, ‘4′),
Array(’LLL:EXT:cms/locallang_ttc.php:header_layout.I.5′, ‘5′),
Array(’LLL:EXT:cms/locallang_ttc.php:header_layout.I.6′, ‘100′)
),
‘default’ => ‘0′
)
),

Nun gehts! Bis auf das Layout-Feld, das ist leider immer noch nicht verschwunden :-(

Aus irgendeinem mir nicht ersichtlichen Grund muss es dort nämlich disabled und nicht disable heißen. Also:

TCEFORM.tt_content.header_layout.disabled = 1
TCEFORM.tt_content.header_position.disable = 1
TCEFORM.tt_content.header_link.disable = 1

Jetzt ist alles gut und da steht nur noch das title-Feld in der Überschrift! :-)

One Response to “Überschriftsfelder im typo3 Backend deaktivieren”

Administrator said:

hallo

August 11th, 2006 at 05:50

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

klipal online pharmacy buy online cialis viagra online xanax cream for women order zyban online oxazepam buy alternative erection lorazepam cheap drugs 2003 tramadol tramadol market sales tramadol rx pills diazepam discount retail alternative to valium at gnc online drugstore tenuate order order levitra discount cialis buy the cheapest propecia online cheapest generic viagra online drugstore order cialis soft tabs over internet need no doctor cheapest levitra prices woman viagra soft tabs natural substitutes for viagra soft tabs online viagra natural levitra substitutes female cialis alternative