.. ================================================== .. FOR YOUR INFORMATION .. -------------------------------------------------- .. -*- coding: utf-8 -*- with BOM. Users Manual ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1. Install Extension 2. Make sure the Static Template of the system extension 'form' is included in your Root Template. 3. Empty the whole Cache 4. Create a Form using the Wizard - there is a new Accordion called 'Special' with a new element: Grid Element 5. Add a Grid Element to your form using doubleclick or drag and drop 6. Determine a css class for the grid - all child elements will be wrapped in a div container with that css class. 7. Add child elements to it 8. Save and close the Wizard now you can add specific classes for the child elementWraps in the grid. The property is called 'containerClass' and can be added easily int the configuration: :: prefix = tx_form confirmation 10 = GRID # new Form Element: GRID 10 { class = row # class for the wrapper div 10 = TEXTLINE 10 { containerClass = col-md-6 # containerClass for child elements name = name label { value = Name } } 20 = TEXTLINE 20 { containerClass = col-md-6 # containerClass for child elements name = email label { value = Email } } } ... This configuration will output a HTML structure like this: ::
The Extension adds Typoscript Layout pre-configuration for elementWrap of form elements since correct rendering of grid elements will only work with div elements. The layout of the form fields can be configured out of the box for the form system extension with typoscript, e.g: :: tt_content.mailform.20.layout { form (
) containerWrap (
) elementWrap (
) textline (