Hot answers tagged

2

I think you are looking for the rawvalue property of the field object /* Rearrange Fields for use */ foreach($this->item->jcfields as $jcfield){ $this->item->jcFields[$jcfield->name] = $jcfield; } $absolute_path_to_image = JUri::base() . $this->item->jcFields['your-field-name']->rawvalue;


1

This is what I finally did. If someone knows a cleaner solution please let me know. defined('JPATH_BASE') or die; use Joomla\CMS\Factory; use Joomla\CMS\Language\Text; use Joomla\CMS\Form\FormHelper; FormHelper::loadFieldClass('list'); class JFormFieldObjecttypes extends JFormFieldList { protected $type = 'Objecttypes'; public function getOptions(...


Only top voted, non community-wiki answers of a minimum length are eligible