mirror of
https://github.com/werkraum-media/events.git
synced 2024-12-23 07:06:09 +01:00
Daniel Siepmann
a756998f1f
Import now properly handles images. It only added missing images beforehand but now will properly: - Remove - Resort - Add - Update Relates: #10521
112 lines
3.8 KiB
PHP
112 lines
3.8 KiB
PHP
<?php
|
|
|
|
return [
|
|
'sys_file' => [
|
|
[
|
|
'uid' => 1,
|
|
'pid' => 0,
|
|
'missing' => 0,
|
|
'storage' => 1,
|
|
'type' => \TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE,
|
|
'identifier' => '/staedte/beispielstadt/events/theater-rudolstadt_johannes-gei-er_photo-by-lisa-stern_web_-jpg.jpg',
|
|
'extension' => 'jpg',
|
|
'name' => 'theater-rudolstadt_johannes-gei-er_photo-by-lisa-stern_web_-jpg.jpg',
|
|
'identifier_hash' => 'fe4fcc840baa706899f7060096f693a01d8be36d',
|
|
'folder_hash' => 'dcb2fdd85835a5ae315fdd7ef5cb2b859d9ec437',
|
|
'sha1' => 'da39a3ee5e6b4b0d3255bfef95601890afd80709',
|
|
],
|
|
[
|
|
'uid' => 2,
|
|
'pid' => 0,
|
|
'missing' => 0,
|
|
'storage' => 1,
|
|
'type' => \TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE,
|
|
'identifier' => '/staedte/beispielstadt/events/tueftlerzeit-sfz-rudolstadt-jpg.jpg',
|
|
'extension' => 'jpg',
|
|
'name' => 'tueftlerzeit-sfz-rudolstadt-jpg.jpg',
|
|
'identifier_hash' => 'c87e5e8f8984291f9134cd2f8712e5ff82544d96',
|
|
'folder_hash' => 'dcb2fdd85835a5ae315fdd7ef5cb2b859d9ec437',
|
|
'sha1' => 'da39a3ee5e6b4b0d3255bfef95601890afd80709',
|
|
],
|
|
[
|
|
'uid' => 3,
|
|
'pid' => 0,
|
|
'missing' => 0,
|
|
'storage' => 1,
|
|
'type' => \TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE,
|
|
'identifier' => '/staedte/beispielstadt/events/lutherkirche-jpg.jpg',
|
|
'extension' => 'jpg',
|
|
'name' => 'lutherkirche-jpg.jpg',
|
|
'identifier_hash' => '8eca2f20c1226c3b1d2ec64418f10cb69926a7c0',
|
|
'folder_hash' => 'dcb2fdd85835a5ae315fdd7ef5cb2b859d9ec437',
|
|
'sha1' => 'da39a3ee5e6b4b0d3255bfef95601890afd80709',
|
|
],
|
|
],
|
|
'sys_file_reference' => [
|
|
[
|
|
'uid' => 1,
|
|
'pid' => 2,
|
|
'uid_local' => 1,
|
|
'uid_foreign' => 1,
|
|
'tablenames' => 'tx_events_domain_model_event',
|
|
'fieldname' => 'images',
|
|
'sorting_foreign' => 1,
|
|
'table_local' => 'sys_file',
|
|
'title' => null,
|
|
'description' => null,
|
|
'alternative' => null,
|
|
],
|
|
[
|
|
'uid' => 2,
|
|
'pid' => 2,
|
|
'uid_local' => 2,
|
|
'uid_foreign' => 1,
|
|
'tablenames' => 'tx_events_domain_model_event',
|
|
'fieldname' => 'images',
|
|
'sorting_foreign' => 3,
|
|
'table_local' => 'sys_file',
|
|
'title' => null,
|
|
'description' => null,
|
|
'alternative' => null,
|
|
],
|
|
[
|
|
'uid' => 3,
|
|
'pid' => 2,
|
|
'uid_local' => 3,
|
|
'uid_foreign' => 1,
|
|
'tablenames' => 'tx_events_domain_model_event',
|
|
'fieldname' => 'images',
|
|
'sorting_foreign' => 2,
|
|
'table_local' => 'sys_file',
|
|
'title' => null,
|
|
'description' => null,
|
|
'alternative' => null,
|
|
],
|
|
],
|
|
'sys_file_metadata' => [
|
|
[
|
|
'uid' => 1,
|
|
'pid' => 0,
|
|
'file' => 1,
|
|
'title' => 'Theater-Rudolstadt_Johannes-Geißer_photo-by-Lisa-Stern_web_.jpg',
|
|
'description' => '',
|
|
'alternative' => 'DD Import',
|
|
],
|
|
[
|
|
'uid' => 2,
|
|
'pid' => 0,
|
|
'file' => 2,
|
|
'title' => 'Tueftlerzeit©SFZ-Rudolstadt.jpg',
|
|
'description' => 'Description of Tueftlerzeit',
|
|
'alternative' => 'DD Import',
|
|
],
|
|
[
|
|
'uid' => 3,
|
|
'pid' => 0,
|
|
'file' => 3,
|
|
'title' => 'Lutherkirche.jpg',
|
|
'description' => '',
|
|
'alternative' => 'DD Import',
|
|
],
|
|
],
|
|
];
|