2017 © Pedro Peláez
 

contao-bundle contao-nested-forms

Allow nested forms/sub forms in Contao Open Source CMS

image

mvo/contao-nested-forms

Allow nested forms/sub forms in Contao Open Source CMS

  • Wednesday, April 25, 2018
  • by m-vo
  • Repository
  • 2 Watchers
  • 1 Stars
  • 26 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 24 % Grown

The README.md

contao-nested-forms

This bundle adds the ability to use sub forms in the form generator of Contao Open Source CMS to allow reusing groups of fields. After installing and updating the database you'll find a new form field type Sub Form., (*1)

Usage

Usage is straightforward:, (*2)

  • Create a form A with some fields.
  • Create a form B and select one field to be a Sub Form (meta field).
  • In this field select A as source form.

The resulting form B now contains A's fields at the position of the Sub Form meta field. You can select if you want to overwrite the mandatory properties of the sub fields or keep them as they are., (*3)

Naming

The field names of a sub form get prefixed by the name of the meta field and two underscores (e.g: MySubField__FieldA). The easiest way to avoid collisions is by not using double underscores __ in your field names., (*4)

Multiple Sub Forms

You can use as many nested forms as you wish. Multiple nesting levels are supported as well, just make sure you don't create self referencing loops. Note that overwriting mandatory properties does not cascade down., (*5)

Installation

Step 1: Download the Bundle

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:, (*6)

$ composer require mvo/contao-nested-forms

Step 2: Enable the Bundle

Skip this point if you are using a Managed Edition of Contao., (*7)

Enable the bundle by adding it to the list of registered bundles in the app/AppKernel.php file of your project:, (*8)

<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...

            new \Mvo\ContaoNestedForms\MvoContaoNestedFormsBundle(),
        );

        // ...
    }

    // ...
}

Step 3: Update your Database

The Versions

25/04 2018

dev-master

9999999-dev

Allow nested forms/sub forms in Contao Open Source CMS

  Sources   Download

MIT

The Requires

 

The Development Requires

forms contao nested embed form generator sub

25/04 2018

v1.0.4

1.0.4.0

Allow nested forms/sub forms in Contao Open Source CMS

  Sources   Download

MIT

The Requires

 

The Development Requires

forms contao nested embed form generator sub

09/04 2018

v1.0.3

1.0.3.0

Allow nested forms/sub forms in Contao Open Source CMS

  Sources   Download

MIT

The Requires

 

The Development Requires

forms contao nested embed form generator sub

07/04 2018

v1.0.2

1.0.2.0

Allow nested forms/sub forms in Contao Open Source CMS

  Sources   Download

MIT

The Requires

 

The Development Requires

forms contao nested embed form generator sub

07/04 2018

v1.0.1

1.0.1.0

Allow nested forms/sub forms in Contao Open Source CMS

  Sources   Download

MIT

The Requires

 

The Development Requires

forms contao nested embed form generator sub

02/04 2018

v1.0.0

1.0.0.0

Allow nested forms/sub forms in Contao Open Source CMS

  Sources   Download

MIT

The Requires

 

The Development Requires

forms contao nested embed form generator sub