[TYPO3] Generate thumbnails for BE display when importing into DB - how?
Bernd Wilke
19m0nyq02 at sneakemail.com
Tue Aug 21 13:04:41 CEST 2007
Karsten Dambekalns schrieb:
> Hi.
>
> I am filling a table used by an extension through some direct import
> from another system. Among the fields filled is an image field.
>
> How do I make TYPO3 display a thumbnail in the BE after importing?
while defining the table for TYPO3 you have to select show_thumbs=1
Kickstarter has an option which will output in 'tca.php' something like:
$TCA["tx_dummy_test"] = array (
"ctrl" => $TCA["tx_dummy_test"]["ctrl"],
[...]
"columns" => array (
[...]
"testpics" => Array (
"exclude" => 1,
"label" =>
"LLL:EXT:dummy/locallang_db.xml:tx_dummy_test.testpics",
"config" => Array (
"type" => "group",
"internal_type" => "file",
"allowed" =>
$GLOBALS["TYPO3_CONF_VARS"]["GFX"]["imagefile_ext"],
"max_size" => 500,
"uploadfolder" => "uploads/tx_dummy",
"show_thumbs" => 1, // <<<<<<<<< here are the thumbs
"size" => 5,
"minitems" => 0,
"maxitems" => 10,
)
),
),
[...]
);
Bernd
--
http://www.pi-phi.de/t3v4/cheatsheet.html
More information about the TYPO3-english
mailing list