Zitat von
fiedsch
Hallo eisenherz,
schau Dir das mal an:
https://github.com/fiedsch/contao_table_from_csv
Es ist eine rudimentäre Implementierung eines Contao Inhaltselements, das eine CSV-Datei einliest und als HTML-Tabelle ausgibt.
Noch vollkommen ohne Konfigurationsmöglichkeiten bzgl. des Formats des Inputs, sollte aber auf Deine Beispieldaten passen.
Ich hoffe, das hilft Dir neben der Anpassung der max_input_vars weiter.
Hallo!
Vielen Dank für Dein Mühe!
Ich habe das mal ausprobiert. Im BE funktioniert alles, dann kommt nach der Auswahl ein CSV Datei diese Fehlermeldung ... womit ich wieder raus bin.
Code:
Warning: include(/usr/www/users/baslerd/Droplimits/system/modules/table_from_csv/elements/ContentCsvTable.php) [function.include]: failed to open stream: No such file or directory in system/modules/core/library/Contao/ClassLoader.php on line 148
#0 system/modules/core/library/Contao/ClassLoader.php(148): __error(2, 'include(/usr/ww...', '/usr/www/users/...', 148, Array)
#1 system/modules/core/library/Contao/ClassLoader.php(148): Contao\ClassLoader::load()
#2 [internal function]: Contao\ClassLoader::load('ContentCsvTable')
#3 [internal function]: spl_autoload_call('ContentCsvTable')
#4 system/modules/core/library/Contao/Controller.php(461): class_exists('ContentCsvTable')
#5 system/cache/dca/tl_content.php(1155): Contao\Controller::getContentElement(Object(Contao\ContentModel))
#6 system/modules/core/drivers/DC_Table.php(4202): tl_content->addCteType(Array)
#7 system/modules/core/drivers/DC_Table.php(366): Contao\DC_Table->parentView()
#8 system/modules/core/classes/Backend.php(622): Contao\DC_Table->showAll()
#9 system/modules/core/controllers/BackendMain.php(126): Contao\Backend->getBackendModule('article')
#10 contao/main.php(20): Contao\BackendMain->run()
#11 {main}
Warning: include() [function.include]: Failed opening '/usr/www/users/baslerd/Droplimits/system/modules/table_from_csv/elements/ContentCsvTable.php' for inclusion (include_path='.:/usr/local/lib/php/') in system/modules/core/library/Contao/ClassLoader.php on line 148
#0 system/modules/core/library/Contao/ClassLoader.php(148): __error(2, 'include() [addCteType(Array)
#7 system/modules/core/drivers/DC_Table.php(366): Contao\DC_Table->parentView()
#8 system/modules/core/classes/Backend.php(622): Contao\DC_Table->showAll()
#9 system/modules/core/controllers/BackendMain.php(126): Contao\Backend->getBackendModule('article')
#10 contao/main.php(20): Contao\BackendMain->run()
#11 {main}
Warning: Cannot modify header information - headers already sent by (output started at /usr/www/users/baslerd/Droplimits/system/helper/functions.php:68) in system/modules/core/library/Contao/Template.php on line 255
#0 [internal function]: __error(2, 'Cannot modify h...', '/usr/www/users/...', 255, Array)
#1 system/modules/core/library/Contao/Template.php(255): header('Vary: User-Agen...', false)
#2 system/modules/core/classes/BackendTemplate.php(113): Contao\Template->output()
#3 system/modules/core/controllers/BackendMain.php(268): Contao\BackendTemplate->output()
#4 system/modules/core/controllers/BackendMain.php(130): Contao\BackendMain->output()
#5 contao/main.php(20): Contao\BackendMain->run()
#6 {main}
Warning: Cannot modify header information - headers already sent by (output started at /usr/www/users/baslerd/Droplimits/system/helper/functions.php:68) in system/modules/core/library/Contao/Template.php on line 256
#0 [internal function]: __error(2, 'Cannot modify h...', '/usr/www/users/...', 256, Array)
#1 system/modules/core/library/Contao/Template.php(256): header('Content-Type: t...')
#2 system/modules/core/classes/BackendTemplate.php(113): Contao\Template->output()
#3 system/modules/core/controllers/BackendMain.php(268): Contao\BackendTemplate->output()
#4 system/modules/core/controllers/BackendMain.php(130): Contao\BackendMain->output()
#5 contao/main.php(20): Contao\BackendMain->run()
#6 {main}
Lesezeichen