I "think" you need to change the code below [#assign listItems = content.listElements.values()]
if that doesn't work, you probably need to get values via model. HTH, Jan On May 24, 2011, at 1:12 PM, Magnolia Forums (on behalf of Timo Boellinger) wrote: > > Hi, > > I have created a new paragraph containing a controlType "multiselect" field, > named "listElements". > I am struggling to retrieve/display the content of this control element. > > I have tried various attempts of "@cms.contentNodeIterator": no iteration > done. > And different approaches with following code: > [#assign listelems = content.listElements!] > [#assign seqtb1 = listelems] > [#list seqtb1 as x] > Result: nothing rendered or freemarker stacktrace: > "freemarker.template.TemplateException: Expected collection or sequence. > seqtb1 evaluated instead to info.magnolia.freemarker.models.ContentModel" > > I could not find any samples how to render multiselect data. Could anyone > please give me a hint or example code please? > > Thanks in advance, > Timo > > -- > Context is everything: > http://forum.magnolia-cms.com/forum/thread.html?threadId=3865c875-a313-4871-ac61-2d0069ff013c > > > ---------------------------------------------------------------- > For list details see > http://www.magnolia-cms.com/home/community/mailing-lists.html > To unsubscribe, E-mail to: <[email protected]> > ---------------------------------------------------------------- ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
