Ich bin neuling bei Typo3 und merke jetzt schon dass es ein Fehler war auf die neuste Version 8.7 setzten statt der Version 7 wo mehr Dokumentation zu finden ist.
Leider funktioniert meine Ausgabe mit Fluid nicht. Wenn ich neue Contents im Backend des Plugins eintrage dann werden die Daten in die Datenbank geschrieben, jedoch funktioniert die Ausgabe nicht.
Die ext_tables und ext_emconfig habe ich an die neue Version 8 angepasst, trotzdem komme ich nicht weiter.
Im Anhang sind alle relevanten Daten.
Die Ausgabe soll über:
<f:for each="{products}" as="product">
<tr>
<td align="top">{product.name}</td>
<td align="top"><f:format.crop maxCharacters="100">{product.description}</f:format.crop></td>
<td align="top">{product.quantity}</td>
Datenbank php:
<?php
return [
'ctrl' => [
'title' => 'Inventory',
'label' => 'name',
],
'columns' => [
'name' => [
'label' => 'Item Label',
'config' => [
'type' => 'input',
'size' => '20',
'eval' => 'trim'
]
],
'description' => [
'label' => 'Item Description',
'config' => [
'type' => 'text',
'eval' => 'trim'
]
],
'quantity' => [
'label' => 'Stock Quantity',
'config' => [
'type' => 'input',
'size' => '4',
'eval'=> 'int'
]
],
],
'types' => [
'0' => ['showitem' => 'name, description, quantity']
]
];
ext_tables.php:
<?php
defined('TYPO3_MODE') || die('Access denied.');
call_user_func(
function($extKey)
{
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($extKey, 'Configuration/TypoScript', 'blub');
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin('TYPO3.blub', 'List', 'The Blub List');
},
$_EXTKEY
);