miercuri, 30 iunie 2010

Typo3, modify the limited number of uploads in the resource (uploads/media) section

By default you can upload only 5 files in the resources section of the page (files which are uploaded in uploads/media). The funny thing is that there are 3 different files where the maxitems number is defined. So, you need to change it in all three of them.
These are the files

typo3/sysext/cms/ext_tables.php

typo3/sysext/cms/tbl_tt_content.php

Here is where you need to change it

'media' => array (
'exclude' => 1,
'label' => 'LLL:EXT:cms/locallang_tca.xml:pages.media',
'config' => array (
'type' => 'group',
'internal_type' => 'file',
'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'].',html,htm,ttf,txt,css',
'max_size' => $GLOBALS['TYPO3_CONF_VARS']['BE']['maxFileSize'],
'uploadfolder' => 'uploads/media',
'show_thumbs' => '1',
'size' => '3',
'maxitems' => '10',
'minitems' => '0'
)
),

Niciun comentariu: