Behzad
Behzad

Reputation: 29

formatting number in joomla k2 extrafields

I want to show some extrafields in k2 component (version : 2.6) of joomla (version :2.5.17) with thousand separator , in Item view and Category view , How can I?

Upvotes: 1

Views: 60

Answers (1)

Michael Yaeger
Michael Yaeger

Reputation: 824

In your custom K2 template file item.php, try the following code:

<?php foreach ($this->item->extra_fields as $key=>$extraField): ?>
<?php if($extraField->value): ?>
<?php echo $extraField->value; ?>, 
<?php endif; ?>
<?php endforeach; ?>

Upvotes: 0

Related Questions