Saturday 16 October 2004 5:07:50 am
Thanks, but
<tr>
<td><b>{$node.object.data_map.mealprice.contentclass_attribute.name}:</b></td>
<td>{attribute_view_gui attribute=$node.object.data_map.mealprice|l10n(currency)}</td>
</tr>
still produces a blank output. Just to confirm, the first char of l10n is a lowercase L? Additional experiment:
<tr>
<td><b>{$node.object.data_map.pricefloat.contentclass_attribute.name}:</b></td>
<td>{attribute_view_gui attribute=$node.object.data_map.pricefloat|l10n(currency)}</td>
</tr>
where now the datatype of pricefloat is a Float (instead of Price), also results in blank output, however removing the |l10n(currency) pipe causes it to be rendered correctly. What is the fundamental datatype of Price? Is it float? Why does the |l10n(currency) not work on a float? Why is there blank output of the Price datatype with and without the pipe?
In the Content view in the backend the mealprice is correctly rendered:
Price
Price £ 15.00 so the data has been input correctly but I still cannot get it to render in the frontend. I have (according to the second reply in this thread) activated eZ debug and so can see if there are synatax errors. In the egs above there are no syntax errors reported. Any help greatly appreciated [email protected]
|