[opencms-dev] SelectorWidget, option with empty value

Paoletti Corrado c.paoletti at fineco.it
Tue Mar 21 11:40:08 CET 2017


Hi Tobias,
thanks for your reply. Solution you suggested doesn't work.

According to the page:

http://documentation.opencms.org/opencms-documentation/content-in-opencms/defining-a-content-type/defining-the-contents-behavior/adjusting-the-contents-appearance-in-the-content-editor/widget-configuration/#3.1

it seems to be possible to use different combinations.

Kind regards,

Corrado


-----Original Message-----
From: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Tobias Karrer
Sent: giovedì 16 marzo 2017 18:13
To: The OpenCms mailing list
Subject: Re: [opencms-dev] SelectorWidget, option with empty value

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
>
>
>
_______________________________________________
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