Jayakumar
Occasional Observer

CMS_INPUT_COMBOBOX iteration issue - display id but i need values

Hello,

I have below dom in the database table,

<CMS_INPUT_DOM
name="snippetText"
bold="yes"
hFill="yes"
italic="yes"
list="yes"
listConfig="style:Listenart[2:Numbers|1:Bullet]"
rows="10"
table="yes"
useLanguages="no">
<FORMATS>
<TEMPLATE name="p"/>
<TEMPLATE name="b"/>
</FORMATS>
<LANGINFOS>
<LANGINFO lang="*" label="Content"/>
</LANGINFOS>
</CMS_INPUT_DOM>

field type is xml,

 

then i inserted text values in the table using the dom,

and then i trying to iterate the values in the CMS_INPUT_COMBOBOX but i am getting the only ids instead of values.

<CMS_INPUT_COMBOBOX name="snippet_text" hFill="yes" singleLine="no" useLanguages="no">
<CMS_INCLUDE_OPTIONS type="database">
<LABELS>
<LABEL lang="*">#item.content</LABEL>
</LABELS>
<TABLE>home_knowledge_base.tt_text_snippet</TABLE>
</CMS_INCLUDE_OPTIONS>
<LANGINFOS>
<LANGINFO lang="*" label="Snippet Content"/>
</LANGINFOS>
</CMS_INPUT_COMBOBOX>

 

Need help to iterate and display values in the cms_input_combobox.

 

 

 

 

 

 

 

0 Kudos
1 Reply
hoebbel
e-Spirit employee

Re: CMS_INPUT_COMBOBOX iteration issue - display id but i need values

Dear Jayakumar,

I am very sorry, but as far as I know it is not possible to use a column of type XML for labeling using #item.
For the use case, a possible solution may be that a CMS_INPUT_TEXTAREA input component is mapped to a STRING column of appropriate length and this column is then used.

Best regards
Holger

0 Kudos