[opencms-dev] SelectorWidget, option with empty value

Tobias Karrer kartobi at gmail.com
Thu Mar 16 18:12:50 CET 2017


Hi Corrado,

try:

configuration="value=''option='(Default)'|value='_blank' option='Nuova finestra'|value='_self' option='Stessa pagina'"

If I remember correctly you can't "mix" how you define the options. And 
you should use single quotes for values and option names.

Regards, Tobias

Am 15.03.2017 um 17:24 schrieb Paoletti Corrado:
> Hi all,
> in a schema I use a SelectorWidget defined, in the <layouts> node, in this manner:
>
> <layout element="Target" widget="SelectorWidget" configuration="default:(Default)|_blank:Nuova finestra|_self:Stessa pagina" />
>
> I would like to assign empty value to the first option. I tried:
>
> - configuration=":(Default)|_blank:Nuova finestra|_self:Stessa pagina" />
> - configuration="value='' option="(Default)"|_blank:Nuova finestra|_self:Stessa pagina" />
>
> but each of them goes wrong.
>
> In this moment I assign a dummy value ("default") to first option but I don't like it.
>
> Kind regards,
>
> Corrado
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>
>
>



More information about the opencms-dev mailing list