Zum Inhalt springen

Filelink / Dateiliste -> Anzahl der Downloads

Erstellt am 31. Juli 2006 · 1 Antwort · letzte Antwort am 1. August 2006

Tags: TCA, Inhaltselemente, Frage

McGregor ·

Hi!

Wie kann ich die Menge der Downloads pro tt_content.uploads ändern. Ich weiß, dass ich ein zweites Contentelement mit weiteren Downloads einfügen kann, aber das möchte ich nicht.
Wie erweitere ich die Anzahl von derzeit 10 auf ca. 50???

Danke
McGregor

McGregor ·

Hi!

Ich hab's selbst herausgefunden (wie immer #giggle# )

Dazu muss man ein wenig an der localconf.php schrauben.
Ich habe dazu eine neue php-Datei angelegt (extTables.php) (in typo3conf/)

Inhalt:

<?php
/* Set max media file size to 100 MB */
$GLOBALS['TCA']['tt_content']['columns']['media']['config']['max_size'] = 100*1024;
/* Set max number media file size to 100 */
$GLOBALS['TCA']['tt_content']['columns']['media']['config']['maxitems'] = 100;
/* Set max multimedia file size to 100 MB */
$GLOBALS['TCA']['tt_content']['columns']['multimedia']['config']['max_size'] = 100*1024;
/* Set max number multimedia file size to 100 */
$GLOBALS['TCA']['tt_content']['columns']['multimedia']['config']['maxitems'] = 100;
?>

Und dann muss man in die localconf.php folgendes eintragen:

$typo_db_extTableDef_script = "extTables.php";

That's it.

Grüße
McGregor

P.S. Ich habe auch noch die Dateigröße angepasst 😃