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;


2

You can use the "showon" field attribute to hide/show a field depending upon the value of another field. So you could have lots of Sections fields - one for each Division - and show only the appropriate Section field based on the value of the Division field. As all this is going to be fairly dynamic you'd want to build up your form dynamically from Division/...


1

It's unknown what exactly is your $fields variable, what values it contains (how it has been produced), where you use this code and generally your question lacks context. However, note that when a field is unpublished - then it's not included in the $jcfields array of the article object, for which the field has been assigned as a custom one. Now, given the ...


1

Assuming you're using Joomla's default search tools layout, it does not render labels. You can create a custom layout or a layout override specific to your component. To accomplish the second option: Copy layouts/joomla/searchtools/default/filters.php to administrator/components/com_yourcomponent/layouts/joomla/searchtools/default/filters.php Replace this ...


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