iceman-fx / gridblock

Redaxo 5-Addon zum gruppieren/kombinieren mehrerer beliebiger Inhaltsmodule (Blöcke) innerhalb eines selbst definierbaren Spaltenrasters (GRID).
16 stars 3 forks source link

Hilfe bei Umstieg von mform / mblock auf mform 8.x benötigt... #71

Closed olien closed 1 month ago

olien commented 1 month ago

Sagt mal bekommt Ihr das zum rennen?

Modulinput


<?php
use FriendsOfRedaxo\MForm;

$id = 1;

    $accordion_fields = MForm::factory();
    $accordion_fields->addFieldsetArea('Accordion', MForm::factory()
            ->addTextField("acc_headline", array('label' => 'Überschrift'))
            ->addTextAreaField("acc_content", ['label' => 'Text'])
            ->setAttribute('class', 'cke5-editor')
            ->setAttribute('data-lang', \Cke5\Utils\Cke5Lang::getUserLang())
            ->setAttribute('data-content-lang', \Cke5\Utils\Cke5Lang::getOutputLang())
            ->setAttribute('data-min-height', '350')
            ->setAttribute('data-profile', 'light')
    );

    $mform = MForm::factory();
    $mform->addRepeaterElement($id, $accordion_fields);

    echo $mform->show();
olien commented 1 month ago

Komisch. Plötzlich geht es...

iceman-fx commented 1 month ago

Wir haben den magic Mode an 😃

olien commented 1 month ago

👍