getting k2 item extra fields in Portfolio 2 controller.php

News Show Pro GK5 - flexible, responsive and easily extendable free Joomla module support forum.
Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Thu Aug 20, 2015 12:33 am
Hi,
my site is offline right now, so it can be checked. The thing is, that I want to get one field from extra fields of a K2 item.

there is a place of the images wrapper in controller.php:
Code: Select all
      
for($i = 0; $i < count($this->parent->content); $i++) {         
  if($this->get_image($i)) {
  }
}


how should I get extra fields from the k2 item? sure, I added extra fields to k2, category and items.
this doesn't work:
Code: Select all
      
for($i = 0; $i < count($this->parent->content); $i++) {         
  if($this->get_image($i)) {
     $extra_fields = json_decode($this->parent->content[$i]->extra_fields);
     echo ''.implode ("|",$extra_fields).'';
  }
}
User avatar
Fresh Boarder

GK User
Thu Aug 20, 2015 8:51 am
Hi,
sorry but we cannot help in php / html code customizations.
User avatar
Platinum Boarder

GK User
Thu Aug 20, 2015 10:09 am
it is a pity ((
User avatar
Fresh Boarder


cron