Keyword

SOLVED --- Backend: Specific extrafield value in items list?

  • Bam Bam
  • Bam Bam's Avatar Topic Author
  • Offline
  • Senior Member
More
8 years 4 months ago - 8 years 4 months ago #154536 by Bam Bam
Hi everybody,

I'd like to show a value of an extrafield in backend items list (adding a column). I made an override of the items/default.php. All changes are working but not the extrafields. I tried these codes without success:
<?php echo $item->extra_fields->nummer->value; ?>
and
<?php echo $item->extra_fields[8]->value; ?>

Could you help me, please?

Kind regards
Matthew.
Last edit: 8 years 4 months ago by Bam Bam.

Please Log in or Create an account to join the conversation.

  • Bam Bam
  • Bam Bam's Avatar Topic Author
  • Offline
  • Senior Member
More
8 years 4 months ago #154537 by Bam Bam
Ehem... I just thinked again about this problem and solved it on my own. If anyone is interested:
<?php $string = $row->extra_fields; 
$extra=json_decode($string);
echo $extra[0]->value;
?>
It was for me the easiest way to get it done.

Matthew.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 4 months ago #154571 by Krikor Boghossian
Replied by Krikor Boghossian on topic Backend: Specific extrafield value in items list?
:) Kudos buddy.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum