Skip to content

Commit 040418e

Browse files
committed
Update readme
1 parent a7c8ec9 commit 040418e

1 file changed

Lines changed: 45 additions & 7 deletions

File tree

README.md

Lines changed: 45 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,47 @@
1-
[![Build Status](https://travis-ci.org/MetaModels/attribute_translatedtabletext.svg)](https://travis-ci.org/MetaModels/attribute_translatedtabletext)
2-
[![Latest Version tagged](http://img.shields.io/github/tag/MetaModels/attribute_translatedtabletext.svg)](https://github.com/MetaModels/attribute_translatedtabletext/tags)
3-
[![Latest Version on Packagist](http://img.shields.io/packagist/v/MetaModels/attribute_translatedtabletext.svg)](https://packagist.org/packages/MetaModels/attribute_translatedtabletext)
4-
[![Installations via composer per month](http://img.shields.io/packagist/dm/MetaModels/attribute_translatedtabletext.svg)](https://packagist.org/packages/MetaModels/attribute_translatedtabletext)
1+
Translated multi table
2+
======================
53

6-
Translated table text
7-
================
4+
The translated multi table attribute.
85

9-
The translated table text attribute.
6+
With this attribute you are able to create complex table structures with the MultiColumnWizard.
7+
Create a config in the initConfig or somewhere else and write something like this:
8+
9+
```php
10+
$GLOBALS['TL_CONFIG']['metamodelsattribute_multi']['mm_test']['multi_test'] = array(
11+
'tl_class' => 'clr',
12+
'minCount' => 0,
13+
'columnFields' => array(
14+
'col_title' => array(
15+
'label' => 'Title',
16+
'exclude' => true,
17+
'inputType' => 'text',
18+
'eval' => array
19+
(
20+
'style'=>'width:130px'
21+
)
22+
),
23+
'col_highlight' => array(
24+
'label' => 'Hervorheben',
25+
'exclude' => true,
26+
'inputType' => 'checkbox',
27+
'eval' => array
28+
(
29+
'style' => 'width:40px'
30+
)
31+
),
32+
'col_url' => array(
33+
'label' => 'URL',
34+
'exclude' => true,
35+
'inputType' => 'text',
36+
'eval' => array
37+
(
38+
'style'=>'width:130px',
39+
'mandatory'=>false,
40+
'rgxp'=>'url'
41+
)
42+
),
43+
),
44+
);
45+
```
46+
47+
The `mm_test` is the name of the table and the `multi_test` is the name of the field.

0 commit comments

Comments
 (0)