Questions tagged [com-fields]
The com-fields tag has no usage guidance.
9
questions
2
votes
1
answer
46
views
Creating a field plug-in, need the com_content form to be enctype multipart
I've been writing a field plug-in for adding files to articles in com_content. I've got the basics of the field plug-in working ok, extending the JFormFieldFile class
The issue I've hit is, for the ...
0
votes
1
answer
37
views
Reason for parameter for using custom fields in configuration
In the Joomla Core Extensions we have a parameter for selecting if custom fields are used in an extension or not. For example here: https://github.com/joomla/joomla-cms/blob/staging/administrator/...
1
vote
2
answers
333
views
Get values of other custom fields in field layout override
I am using a repeatable custom field for articles in Joomla! 3.9.16 with an alternative layout (override) of com_fields/layouts/field/render.php and an override of plugins/fields/repeatable/tmpl/...
1
vote
1
answer
72
views
How can I call com_contact fields in an article view?
We have linked the author to com_contacts and now I want to show an author image which will be a custom field in com_contacts.
I was able to show it as a com_user custom field using the following ...
0
votes
1
answer
81
views
Custom fields published state not working as expected
I am using the following code to check to see if my repeatable custom field's state is published/unpublished. If the state is set to 0, the code in between should be hidden, but instead an error is ...
2
votes
1
answer
275
views
Override output for repeatable custom fields
I am struggling to find a way to output the values from a repeatable field in Joomla 3.9.15.
I am currently accessing the custom fields assigned to articles using the following code:
JHtml::...
0
votes
1
answer
42
views
How could I make Joomla! fields as a function
<?php
// Turn fields from array numbers into field names. I usually stick this in the head somewhere.
foreach($this->item->jcfields as $jcfield){
$this->item->field[$jcfield-&...
0
votes
1
answer
285
views
JForm::setFieldAttribute frontend vs backend usage
I'm missing something. I've written a plugin to manipulate specific custom user fields (the new custom fields extension). I create the fields, and make them required, but in /adminstrator I remove ...
5
votes
2
answers
11k
views
Getting custom fields and their values (com_fields)
I started working a project on the upcoming 3.7 version, using the com_fields.
I have created an article and a category level group of fields. The idea is that I want to use the category level fields ...