2017 © Pedro Peláez
 

contao-module justtextwidgets

Hidden fields with text values and explanation texts

image

discordier/justtextwidgets

Hidden fields with text values and explanation texts

  • Friday, February 2, 2018
  • by xtra
  • Repository
  • 2 Watchers
  • 1 Stars
  • 26,503 Installations
  • PHP
  • 5 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 9 Versions
  • 3 % Grown

The README.md

Code Quality Diagnostics Latest Version tagged Latest Version on Packagist Installations via composer per month, (*1)

justtextwidgets

Possibility to add hidden fields with text values and explanation texts to the Contao DCA., (*2)

Various input types have been developed for use in the MultiColumWizard (MCW)., (*3)

Examples for the implementation can be found in the project MetaModels., (*4)

There are four different inputType which can be used in DCA:, (*5)

  • justtext
  • justsmalltext
  • justtextoption
  • justexplanation
  • justlongexplanation

justtext

With justtext is intended for use in MCW and creates a label, text and hidden field - label and text can be hidden with the MCW parameters hideHead and hideBody. In MetaModels this is used in the table of "input/output combinations"., (*6)

$GLOBALS['TL_DCA']['tl_mytable']['fields']['justtext'] = [
    'label'     => null,
    'exclude'   => true,
    'inputType' => 'justtext',
    'eval'      => ['tl_class' => 'cbx w50']
];

justsmalltext

justsmalltext outputs a simple text and a hidden field., (*7)

$GLOBALS['TL_DCA']['tl_mytable']['fields']['justsmalltext'] = [
    'label'     => &$GLOBALS['TL_LANG']['tl_mytable']['justsmalltext'],
    'exclude'   => true,
    'inputType' => 'justsmalltext',
    'eval'      => ['tl_class' => 'cbx w50']
];

justtextoption

With justtextoption it is e.g. possible to output a text for each line in the MCW for each column. In MetaModels this is used in the rendersettings for languages at "JumpTo page"., (*8)

$GLOBALS['TL_DCA']['tl_mytable']['fields']['justtextoption'] = [
    'label'     => &$GLOBALS['TL_LANG']['tl_mytable']['justtextoption'],
    'exclude'   => true,
    'inputType' => 'justtextoption',
    'eval'      => [
        'tl_class' => 'cbx w50',
        'options'  => ['foo' => ['value' => 'foovalue'], 'bar' => ['value' => 'barvalue']],
        'default'  => 'barvalue'
    ]
];

justexplanation

With justexplanation a simple text can be output via the parameter content and the option xlabel., (*9)

$GLOBALS['TL_DCA']['tl_mytable']['fields']['justexplanation'] = [
    'label'     => &$GLOBALS['TL_LANG']['tl_mytable']['justexplanation'],
    'exclude'   => true,
    'xlabel'    => [
        ['tl_myothertable', 'myWizard']
    ],
    'inputType' => 'justexplanation',
    'eval'      => ['tl_class' => 'cbx w50', 'content' => 'Hello World!']
];

justlongexplanation

With justlongexplanation a complex html block can be output via the parameter html to show different content in your input mask., (*10)

$GLOBALS['TL_DCA']['tl_mytable']['fields']['justlongexplanation'] = [
    'label'     => &$GLOBALS['TL_LANG']['tl_mytable']['justlongexplanation'],
    'exclude'   => true,
    'inputType' => 'justlongexplanation',
    'eval'      => [
        'tl_class' => 'clr',
        'html'     => '


This is text, it contains HTML in "just long explanation". Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. , (*11)

' ], ];

The Versions

02/02 2018

dev-master

9999999-dev https://www.cyberspectrum.de

Hidden fields with text values and explanation texts

  Sources   Download

LGPL-3.0+ LGPL-3.0-or-later

The Requires

 

The Development Requires

widget text contao

02/02 2018

dev-hotfix/contao4-compatibility

dev-hotfix/contao4-compatibility https://www.cyberspectrum.de

Hidden fields with text values and explanation texts

  Sources   Download

LGPL-3.0+ LGPL-3.0-or-later

The Requires

 

The Development Requires

widget text contao

02/02 2018

1.1.0

1.1.0.0 https://www.cyberspectrum.de

Hidden fields with text values and explanation texts

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

widget text contao

27/10 2015

1.0.0

1.0.0.0 https://www.cyberspectrum.de

Hidden fields with text values and explanation texts

  Sources   Download

LGPL-3.0+

The Requires

 

The Development Requires

widget text contao

22/07 2015

1.0.0-alpha2

1.0.0.0-alpha2 https://www.cyberspectrum.de

Hidden fields with text values and explanation texts

  Sources   Download

LGPL-3.0+

The Requires

 

The Development Requires

widget text contao

22/07 2015

1.0.0-alpha1

1.0.0.0-alpha1 https://www.cyberspectrum.de

Hidden fields with text values and explanation texts

  Sources   Download

LGPL-3.0+

The Requires

 

The Development Requires

widget text contao

05/02 2014

0.5.4

0.5.4.0 https://www.cyberspectrum.de

Hidden fields with text values and explanation texts

  Sources   Download

LGPL-3.0+

The Requires

 

widget text contao

23/09 2013

0.5.3

0.5.3.0 https://github.com/discordier/justtextwidgets

Hidden fields with text values and explanation texts

  Sources   Download

LGPL-3.0+

The Requires

 

widget text contao

05/05 2013

0.5.2

0.5.2.0 https://github.com/discordier/justtextwidgets

Hidden fields with text values and explanation texts

  Sources   Download

LGPL-3.0+

The Requires

 

widget text contao