Keyword

How to make itemExtraFields value show on the back-end items list.

  • 野草工作室
  • 野草工作室's Avatar Topic Author
  • Offline
  • New Member
More
13 years 8 months ago #92337 by 野草工作室
I want to modify the file :\administrator\components\com_k2\views\items\tmpl\default.php  to display the items itemExtraFields value on the back-end items list.

My php code:

<?php foreach ($row->extra_fields as $extraField):?>               <?php if ($extraField->name=="Model No"):?>              <?php echo $extraField->value; ?>         <?php endif; ?>  <?php endforeach; ?>

But it don't work,how should I do ?

Thanks much!

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

More
13 years 8 months ago #92338 by vanshion
u should query value and goup from the #__k2_extra_fields, then return value. OMG,it's so difficulty

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


Powered by Kunena Forum