Access media field type value via php

15 views
Skip to first unread message

Chuunibyu

unread,
Mar 28, 2018, 7:23:20 AM3/28/18
to Joomla! General Development
Hello,

i'm trying to access the value of a custom field with the media type, but if i do it like that:

$contactFields = FieldsHelper::getFields('com_contact.contact',$contact,true);
$documentFields = self::getFieldsByGroupname($contactFields,'docs');

echo $documentFields['fieldName']->rawvalue;

nothing actually appears.. both value and rawvalue are empty to be more precisely so there has to be some other way to get the value of media type fields, right?

Chuunibyu

unread,
Mar 28, 2018, 10:48:33 AM3/28/18
to Joomla! General Development
Reply all
Reply to author
Forward
0 new messages