All Projects → FriendsOfREDAXO → Mform

FriendsOfREDAXO / Mform

Licence: mit
Spielend einfach umfangreiche Modul-Input-Formulare erzeugen.

Projects that are alternatives of or similar to Mform

Cms
MaxSite CMS
Stars: ✭ 123 (+89.23%)
Mutual labels:  content, backend
forms
Web forms with Substance.
Stars: ✭ 14 (-78.46%)
Mutual labels:  forms, editing
content defender
Define allowed or denied content element types in your backend layouts
Stars: ✭ 63 (-3.08%)
Mutual labels:  content, backend
Ohmyform
✏️ Free open source alternative to TypeForm, TellForm, or Google Forms ⛺
Stars: ✭ 1,065 (+1538.46%)
Mutual labels:  forms
Boltforms
Bolt Forms extension - Symfony interface and API for Bolt
Stars: ✭ 53 (-18.46%)
Mutual labels:  forms
React No Content
A SVG react component to display when there's no content.
Stars: ✭ 59 (-9.23%)
Mutual labels:  content
Poi
Mirror of Apache POI
Stars: ✭ 1,136 (+1647.69%)
Mutual labels:  content
Formio.js
JavaScript powered Forms with JSON Form Builder
Stars: ✭ 1,060 (+1530.77%)
Mutual labels:  forms
Dev Practice
Practice your skills with these ideas.
Stars: ✭ 1,127 (+1633.85%)
Mutual labels:  backend
Gaia
C++ framework for rapid server development
Stars: ✭ 58 (-10.77%)
Mutual labels:  backend
Awesomevalidation
Android validation library which helps developer boil down the tedious work to three easy steps.
Stars: ✭ 1,093 (+1581.54%)
Mutual labels:  forms
Firebaseswift
Firebase REST API wrapper for use in server-side Swift
Stars: ✭ 54 (-16.92%)
Mutual labels:  backend
Customui
Library to create custom UI's in MCPE 1.2+
Stars: ✭ 60 (-7.69%)
Mutual labels:  forms
Express Fileupload
Simple express file upload middleware that wraps around busboy
Stars: ✭ 1,069 (+1544.62%)
Mutual labels:  forms
Autosize Input
🎈 Effortless, dynamic-width text boxes in vanilla JavaScript
Stars: ✭ 64 (-1.54%)
Mutual labels:  forms
Node Typescript Boilerplate
Minimalistic project template to jump start a Node.js back-end application in TypeScript. ESLint, Jest and type definitions included.
Stars: ✭ 1,061 (+1532.31%)
Mutual labels:  backend
M680x0 Llvm
M68K LLVM Port
Stars: ✭ 62 (-4.62%)
Mutual labels:  backend
Node Javascript Ecommerce
Build ECommece Like Amazona Using Vanilla JS
Stars: ✭ 57 (-12.31%)
Mutual labels:  backend
Laravel Casts
Form builder for Laravel.
Stars: ✭ 56 (-13.85%)
Mutual labels:  forms
React Router Form
<Form> is to <form> as <Link> is to <a>
Stars: ✭ 58 (-10.77%)
Mutual labels:  forms

MForm - REDAXO Addon für bessere Input-Formulare

MForm ist ein REDAXO Addon, welches das Erstellen von Modul-Eingabeformularen erheblich erleichtert. Dabei nutzt MForm Templates welche es dem Administrator ermöglichen den Modul-Style seinen Vorstellungen anzupassen. MForm stellt alle gängigen Modul-Input-Formular-Elemente und zusätzlice Widgets bereit welche sich einfach einbinden lassen. MForm eweitert auch YForm und rex_form um zusätzliche Widgets, z.B. ein Custom-Link-Feld und Image-List für Galerien.

Screenshot Screenshot

Eine detailierte Beschreibung wie Modul-Input-Formulare mit beliebigen Elementen versehen werden können lässt sich im Doku-Plugin finden.

Hinweis

  • Der MForm Formular-Builder ist ausschließlich dafür geeignet REDAXO Modul-Input-Formulare zu generieren!

Installation

  1. Letzten release downloaden
  2. Zip Archiv entpacken
  3. Entpackten Folder in mform umbenennen
  4. MForm Ordner in den REDAXO Addon Ordner redaxo/src/addons/ verschieben
  5. In REDAXO einloggen und unter "AddOns" MForm installieren und aktivieren

Alternative Installationen

MForm kann auch direkt über den Redaxo-Installer Installiert werden. MForm Redaxo Addon Page

  1. In REDAXO einloggen
  2. Im Backend unter "Installer > Neue herunterladen" "MForm" suche und unter "Funktion" "ansehen" klicken
  3. Bei der aktuelle Version in der Liste unter "Funktion" "herunterladen" klicken
  4. Unter "AddOns" MForm installieren und aktivieren

Usage

MForm muss im Modul-Input eines REDAXO Moduls als PHP Code notiert werden.

Instanziierung

// instantiate
$MForm = new MForm();

Der MForm Classe kann im Konstruktor der Templatename übergeben werden. Dabei entspricht der Templatename dem Prefix des Templateordners.

// instantiate
$MForm = new MForm('table');

Formularelemente

Die wesentlichen Formularelemente die MForm bereitstellt werden durch Methoden hinzugefügt.

// add headline
$MForm->addHeadline("Headline");
    
// add text field
$MForm->addTextField(1, array('label'=>'Input', 'style'=>'width:200px'));

Alle MForm Methoden erwarten optional Attribute, Parameter und Optionen. Diese können auch durch Setter nachträglich dem Element zugewiesen werden.

// add text field
$MForm->addTextField(1);
$MForm->setLabel('Text Field');
$MForm->setAttributes(array('style'=>'width:200px', 'class'=>'test-field'));

Der REX_VALUE-Key muss jeder Formular-Input-Methode als Pflichtfeld übergeben werden. Informative Elemente benötigen keine ID.

Full JSON Value Support

MForm unterstützt REX_VALUE-ARRAYs wodurch es praktisch keine REX_VALUE-Limitierung mehr gibt. Zu beachten ist, dass jeder x.0 Key als Sting übergeben werden muss.

// add text field
$MForm->addTextField("1.0");
$MForm->addTextField(1.1);
$MForm->addTextField("1.2.Titel");

Formular erzeugen

Um das komponierte Formular erzeugen zu lassen muss muss die show Methode genutzt werden.

 // create output
echo $MForm->show();

Element-Methoden

MForm stellt folgende Element-Methoden bereit:

  • Strukturelle-Elemente
    • addFieldset
    • closeFieldset
    • addTab
    • closeTab
  • Text-Input- und Hidden-Elemente
    • addTextField
    • addHiddenField
    • addTextAreaField
    • addTextReadOnlyField
    • addTextAreaReadOnlyField
  • Select-Elemente
    • addSelectField
    • addMultiSelectField
  • Checkbox- und Radio-Elemente
    • addCheckboxField
    • addRadioField
  • Informelle-Elemente
    • addHtml
    • addHeadline
    • addDescription
  • System-Button-Elemente
    • addLinkField
    • addLinklistField
    • addMediaField
    • addMedialistField
  • Custom-Elemente
    • addCustomLinkField
    • addImagelistField
    • addInputField
  • Spezielle setter-Methoden
    • setLabel
    • setPlaceholder
    • setMultiple
    • setSize
Geplante Elemente
  • Callback-Element
    • callback
  • Strukturelle-Elemente
    • columns
  • Informelle-Elemente
    • addInfo
    • addWarning
    • addError

Lizenz

MForm ist unter der MIT Lizenz lizensiert.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].