Thanks Michael. When I tried it, the following errors occured:
Traceback (innermost last): Module ZPublisher.Publish, line 138, in publish Module ZPublisher.mapply, line 77, in mapply Module ZPublisher.Publish, line 48, in call_object Module Products.Five.browser.metaconfigure, line 485, in __call__ Module Products.Five.browser.pagetemplatefile, line 125, in __call__ Module Products.Five.browser.pagetemplatefile, line 59, in __call__ Module zope.pagetemplate.pagetemplate, line 131, in pt_render - Warning: Compilation failed - Warning: chameleon.exc.ParseError: Unexpected end tag. - String: "</tal:define>"
So I did the following:
<td tal:condition="python:field in ['dhhs_division']" tal:define="field_data python:view.tabular_fielddata(item, field)"> <tal:block tal:repeat="k python:field_data.keys()"> <tal:define tal:define="value python:field_data.get(k)"> <tal:cond tal:condition="value|nothing"> <span tal:content="value">Value</span> </tal:cond> </tal:define> </tal:block> </td>
And got the same results as before:
Row 1: set([u’Medical Assistance (DMA)’, u’Health Service Regulation (DHSR)’])
Row 2: Social Services (DSS)
Row 3: Blank
Am I missing something?