Skip to content

xat/contao-customselectmenu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Contao Custom Select Menu

This is a small Backend widget for the Content Management System Contao(2.11 <=). What you get is a Select-Menu with an additional last option 'other value'. If you select the 'other value' option the Select 'transforms' into an text input field. The inputType for this widget is named 'customselect'.

Credits go to Psi|4ward for the idea.

Usage

Just use it like the standard select Widget of Contao.

// some DCA example
'highlight' => array
(
	'label'                   => &$GLOBALS['TL_LANG']['tl_content']['highlight'],
	'inputType'               => 'customselect',
	'options'                 => array('Scala', 'SQL', 'Text', 'VB', 'XHTML', 'XML'),
	'eval'                    => array('includeBlankOption'=>true, 'rgxp'=>'alnum', 'tl_class'=>'w50'),
),

CustomSelectWidget

License

Copyright (c) 2012 Simon Kusterer Licensed under the LGPL license.

About

Select-Menu with an additional last option 'other value'.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •