Advertisement
siristru

Joomla: custom fields in module

Aug 3rd, 2019
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.32 KB | None | 0 0
  1.     <?php
  2.     $item->jcfields = FieldsHelper::getFields('com_content.article', $item, true);
  3.             $fields = [];
  4.             foreach($item->jcfields as $jcfield)
  5.             {
  6.                 $fields[$jcfield->name] = $jcfield;
  7.             }
  8.  
  9.             //print_r($fields);
  10.                     $pubLink = $fields['link-do-publikacji']->rawvalue;
  11.                     ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement