I have created a FS_LIST as below
<FS_LIST name="st_orglist" hFill="yes"> <DATASOURCE type="inline" useLanguages="no"> <LABELS> <LABEL lang="*"> if(!#item.st_organisation.isEmpty, #item.st_organisation, "") </LABEL> </LABELS> <ACTIONS> <ACTION name="ADD"/> <ACTION name="REMOVE"/> <ACTION name="UP"/> <ACTION name="DOWN"/> <ACTION name="EDIT"/> </ACTIONS> <COLUMNS> <COLUMN show="no">#identifier</COLUMN> <COLUMN show="yes">#text</COLUMN> </COLUMNS> <LAYOUT> <ADD component="toolbar" constraint="top"/> <ADD component="overview" constraint="center"/> <ADD component="stackedview" constraint="bottom"/> </LAYOUT> <TEMPLATES source="sectiontemplates"> <TEMPLATE uid="st_organisationlist"/> </TEMPLATES> </DATASOURCE> <LANGINFOS> <LANGINFO lang="*" label="Edit sections"/> </LANGINFOS> </FS_LIST> |
Which relies on the following section template st_organisationlist:
<CMS_INPUT_COMBOBOX name="st_organisation" allowEmpty="no" singleLine="no" sortOrder="ascending" useLanguages="no"> <CMS_INCLUDE_CONTENT type="entries" table="CIS.organisation"> <LABEL lang="*">#row.organisation</LABEL> </CMS_INCLUDE_CONTENT> <LANGINFOS> <LANGINFO lang="*" label="Organisation"/> </LANGINFOS> </CMS_INPUT_COMBOBOX> |
The label mentioned in the FS_LIST:
<LABEL lang="*">
if(!#item.st_organisation.isEmpty, #item.st_organisation, "")
</LABEL>
should now display the selected organisation name when selecting one from the dropdown list. This however does not seem to work, althoug it does work for an text input item.
Could someone tell me what I am missing or overlooking?
Thanks in advance.