XF 2.2 Using format in a template modification failing

Dannymh

Active member
Hi All I have a template modification on 'custom_fields_macros'

The change looks for a specific custom field with an XF:if statement

It then replaces it with

Code:
				<dl class="{$valueClass}" data-field="{$fieldId}">
					<dt>{$fieldDefinition.title}</dt>
					<dd>${$fieldValue|currency}</dd>
				</dl>

Basically changing that numeric custom field to a currency.
The problem is that it is taking the return value as $1.00 when the initial value was 4200

I had similar issues when using a date and time stamp that I worked around by inserting a macro here, but this time when trying the same to format as currency I get the same result. Printing out the fieldValue works fine.

Any idea why this might be happening
 
Top Bottom