Hallo,
ich hänge mich hier mal an und möchte fragen, ob dies für 4.9 auch noch Gültigkeit hat?
Denn irgendwie klappt das nicht - oder besser gesagt es gibt ne Fehlermeldung resp. gar keine Anzeige
Also:
PHP-Code:
<?php
return array(
'label' => array(
'de' => array('Tabelle','Erzeugt eine Tabelle.')
),
'types' => array('content','module'),
'standardFields' => array('cssID'),
'fields' => array(
'tableName' => array(
'label' => array(
'de' => array('Tabellen',''),
),
'inputType' => 'tableWizard',
),
),
);
Ergebnis im Frontend:
Eine Tabelle mit jeweils den ersten Buchstaben der Tabellenzellen und im DebugMode:
PHP-Code:
"exception" => ErrorException {#663 ?
#message: "Warning: Illegal string offset 'class'"
#code: 0
#file: "C:\laragon\www\bulma\templates\bulma\rsce_bulma_table.html5"
#line: 17
#severity: E_WARNING
trace: {?
C:\laragon\www\bulma\templates\bulma\rsce_bulma_table.html5:17 {?
include …
› <?php else: ?>
› <td class="<?= $col['class'] ?>"><?= $col['content'] ?></td>
› <?php endif; ?>
}
nehme ich <?= $col['class'] ?> raus, denn wird wegen 'content' gemeckert:
PHP-Code:
"exception" => ErrorException {#663 ?
#message: "Warning: Illegal string offset 'content'"
#code: 0
#file: "C:\laragon\www\bulma\templates\bulma\rsce_bulma_table.html5"
#line: 17
#severity: E_WARNING
trace: {?
C:\laragon\www\bulma\templates\bulma\rsce_bulma_table.html5:17 {?
include …
› <?php else: ?>
› <td class="myClass"><?= $col['content'] ?></td>
› <?php endif; ?>
}
Mit:
PHP-Code:
<?php
return array(
'label' => array(
'de' => array('Tabelle','Erzeugt eine Tabelle.')
),
'types' => array('content','module'),
'standardFields' => array('cssID'),
'fields' => array(
'tableitems' => array(
'inputType' => 'standardField',
),
),
);
wird nur der tbody aufgebaut, aber kein Inhalt:
PHP-Code:
<table id="29" class="table ">
<tbody>
</tbody>
</table>
Jemand eine Idee?
Lesezeichen