[TYPO3-extbase-kickstarter] Add a blank item to the selector

Harald Hochwald hh at subotnik-music.com
Thu Feb 7 22:26:10 CET 2013


hi nico,
thanks for your answere
i just thought it is an extension builder issue because the old extension kickstarter got an option to add an blank item to a selector box.
yes i want to add the blank item to the backend
so this is the code the extension builder generated
'config' => array(
				'type' => 'select',
				'items' => array(
					array('', 0),

i have to change this?
> ['config']['items'] = array(
> 	array('kein Eintrag', 0),
> ),


tia
Harald

Am 07.02.2013 um 22:17 schrieb Nicolas de Haen:

> Hi Harald,
> 
> this is the correct configuration for the backend:
> 
> ['config']['items'] = array(
> 	array('kein Eintrag', 0),
> ),
> 
> To have an additional empty option in the frontend you only have 3 options:
> 
> 1. write your own select view helper where you can implement it yourself
> 2. prepare an array with an additional empty option in the controller and assign it to the view
> 3. add the empty option via Javascript
> 
> regards,
> Nico
> PS: this is an extbase/fluid issue not related to the extension builder
> 
> -- 
> Nico de Haen
> ndh websolutions
> 
> Webprogrammierung, OpenSource, Typo3
> 
> 
> 
> http://www.ndh-websolutions.de
> _______________________________________________
> TYPO3-project-extbase-kickstarter mailing list
> TYPO3-project-extbase-kickstarter at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-extbase-kickstarter



More information about the TYPO3-project-extbase-kickstarter mailing list