[TYPO3] make title and alttext required
Ralf Hettinger
ng at ralfhettinger.de
Thu Apr 19 13:25:45 CEST 2007
Hi Bas,
a quick (but dirty) solution was to modify TYPO3's core:
In typo3/sysext/cms/tbl_tt_content.php
you'd need to change
'altText' => Array (
'exclude' => 1,
'label' => 'LLL:EXT:cms/locallang_ttc.php:image_altText',
'config' => Array (
'type' => 'text',
'cols' => '30',
'rows' => '3'
)
),
'titleText' => Array (
'exclude' => 1,
'label' => 'LLL:EXT:cms/locallang_ttc.php:image_titleText',
'config' => Array (
'type' => 'text',
'cols' => '30',
'rows' => '3'
)
),
to
'altText' => Array (
'exclude' => 1,
'label' => 'LLL:EXT:cms/locallang_ttc.php:image_altText',
'config' => Array (
'type' => 'text',
'cols' => '30',
'rows' => '3'
'eval' => 'required'
)
),
'titleText' => Array (
'exclude' => 1,
'label' => 'LLL:EXT:cms/locallang_ttc.php:image_titleText',
'config' => Array (
'type' => 'text',
'cols' => '30',
'rows' => '3'
'eval' => 'required'
)
),
More information about the TYPO3-english
mailing list