Questions tagged [custom-field]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
6 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 ...
1
vote
3answers
68 views

How to add the current user's user id in query of a custom field for a plugin?

If I hardwire a created_by clause in a joomla sql custom field, the query works as it should (for this specific userid the clause is, and created_by = 305): SELECT id AS value, title AS text FROM #...
0
votes
1answer
24 views

Custom Category Field

Using Joomla 3.9, although Custom Fields is now available, I am opting to do this in a plugin instead for reasons. I have created a plugin to hook into the Category view in admin, so that I can add a ...
0
votes
2answers
30 views

Access repeatable subform fields and display in article override

I have been testing the following code to retrieve and output the values from a repeatable subform field with no success. JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR . '/components/...
0
votes
1answer
20 views

Fatal error in joomla component arrays objects

In my admin view (custom Joomla module) I get errors sometimes. User submits a custom form and it works, but when there are two checkboxes checked, I get this error: Fatal error: Cannot use object ...
0
votes
1answer
34 views

Custom field in menu item

I am trying to get a custom field type into the menu. I want this to be a dropdown which I poulate with some php code. Where the arrow points in want my dropdown field. So I created in /components/...
0
votes
1answer
39 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 ...
0
votes
1answer
42 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::...
1
vote
0answers
27 views

How do I sort articles in category blog using a custom field value?

I have created a custom field date and added content to the articles of a category. How can I now sort the articles in the category blog overview by this field? What should a blog.php and blog_item....
0
votes
1answer
24 views

How to use 'showon' with global settings in menu item parameter?

In a custom component I have some component params (config.xml) and I have some menu item params (default.xml). Inside the component params I make use of the showon attribute many times. But to keep ...
1
vote
1answer
48 views

Custom fields not for all usergroups

I'm triing to use custom fields in users for personal details on members of a group, but I've got some "system" users that don't have these details. But everytime I want to edit these users I'm nagged ...
0
votes
1answer
83 views

enable Selected option for a custom field extending JFormFieldList

I am creating a custom field extending JFormFieldList as below Form field is defined as below <field name="reltype_rev_id" multiple="true" type="customfield" ...
0
votes
1answer
29 views

how to add custom field type to user core component?

I need to integrate a custom field in the user component of joomla core that allows me to list some data in a select, I get this data from an endpoint, and because this type of field does not exist ...
4
votes
0answers
150 views

Custom Fields Issues Saving - Video Included

Joomla 3.9.13 PHP version: 7.3.9 Mysql Ver 15.1 Distrib 10.4.6-MariaDB I am using the default Joomla contacts component, with no changes or overrides. I have configured a number of custom fields ...
1
vote
1answer
75 views

How to programmatically write Joomla article customs field values?

I added some custom fields to the articles of my Joomla website: I work on a custom Joomla module that creates new articles programmatically using the below code: static function createArticle(...
2
votes
1answer
87 views

Get the list of article and related specific custom field value

I need to compose a list for a RSFormPro form field which contains options that display article titles and their respective date from a custom field. In front something like this : Select your ...
0
votes
1answer
43 views

How to extend the article search to take into account the values of custom fields?

In articles I have added a series of custom fields, now I need to be able to filter through these fields, while being in the article manager view. I have searched about it but without success, I just ...
0
votes
1answer
25 views

Only show joomla custom fields on certain category levels

Is it possible to only show a field on for example the 3rd level of categories? Now when I link a field to a top level categorie, the field is shown on all articles on all levels of categories, but is ...
1
vote
1answer
33 views

Extra fields Vs. float numbers

Well, I am trying to develop a simple web system that uses Joomla CMS. The project is simple and becomes from a thought of working with Joomla categories, subcategories, articles and extra fields ...
1
vote
1answer
150 views

How to programmatically set the value of a custom field of type checkbox?

In articles, I have created a series of custom fields, including two date fields and a checkboxes field. Now, through a plugin in the onContentBeforeSave event I need to verify that if date 1 is less ...
0
votes
1answer
31 views

Is it possible to edit the SQL custom field to be multi-select?

I want to be able to select multiple values with the SQL custom field. Is this possible? When I use a query which as multiple results, I can only pick one. I found this post: Creating custom field ...
2
votes
1answer
49 views

Get module params in custom form field

I need to get all other module field-params of the current module inside of a custom form field in backend. In tmpl/default.php it works with: $bgcolor = $params->get('bgcolor'); But in custom ...
1
vote
1answer
34 views

How to change custom field order in field group?

For articles, I have created two custom fields and I have registered both in a field group -- this much is fine. Now I would like to change the order in which the fields are displayed on the page. I ...
3
votes
1answer
24 views

Insert Contacts Custom Field In Article

I have created a few custom fields for my contacts. I now want to display these contact details withinin some articles using the following format; {field 1} will display the field with the ID 1 {...
1
vote
1answer
18 views

Custom Field Tag Style List

Joomla 3.9.11 I have created an SQL custom field for my joomla contacts called location, this allows me to assign a location to my contacts. The SQL simply selects location_name from a custom db ...
0
votes
1answer
39 views

Default value for repeatable custom field

I am trying to set a default value for the repeatable custom field. My subform has a number field, a media field and a text field. I am using the default value field in the repeatable field ...
1
vote
0answers
57 views

FieldsPlugin onCustomFieldsPrepareDom $field on save different on front and backend

I currently develop a FieldPlugin for myself. I noticed some things and don't understand them fully right now. My plugin works in the backend perfect, but raises errors on the frontend, so I did some ...
1
vote
2answers
113 views

Call com_ajax from module backend

To create thumbnails & cache files, I have to access my already created Ajax Functions inside my helper.php file. I'm already able to call the functions within the frontend (button that is ...
0
votes
0answers
74 views

Access namespaced custom field method from a plugin into another plugin

In one of my previous questions, I learned how to properly set up a namespaced custom form field, but it turns out that it's only available within its plugin scope for some reason. I need the field ...
0
votes
1answer
50 views

Joomla 4 - import parent field class into extending field class issue finding the files

Testing my Joomla 3.9 extensions in Joomla 4, some of them didn't work, because, as instructed with the (probably) old documentation my custom fields use jimport('joomla.form.formfield'); ...
0
votes
1answer
151 views

Joomla 4 - how to set namespace for custom field addfieldprefix

I have the editors-xtd\vimeo plugin with this structure ..\plugins\editors-xtd\vimeo\models\fields\(a bunch of custom fields) ..\plugins\editors-xtd\vimeo\forms\form.xml ..\plugins\editors-xtd\vimeo\...
1
vote
2answers
143 views

Extended subform field use own layout from template/html folder

I've created an extended subform field type called families.php, basically I want to have my own custom layout for this custom field, it makes sense I don't want to mess up everything just for this ...
0
votes
0answers
48 views

Adding field path and script into form relative to template path

Case 1 I am trying to add field path into templateDetails.xml without specifying a templateName. The following code works <fieldset name="name" label="label" addfieldpath="/templates/templateName/...
0
votes
1answer
55 views

fetch user custom fields in article

I have created some custom fields in user profile from backend templates/name-template/html/com_content/article/default.php and use this code for load custom fields at joomla article <?php $...
2
votes
1answer
42 views

Use a plugin defined field inside template

I've created a custom field for my plugin and it's working great, but if I want to use the same field within my templateDetails.xml I get an almost blank page in the template style edit page. I should ...
4
votes
1answer
94 views

Get form input in custom field

I'm currently working on a custom field, where I manually add a checkbox to a file upload field. PDF Upload field In onContentBeforeSave I want to read this checkbox to decide what to do with the ...
1
vote
1answer
45 views

Get parent menu item object in plugin

Problem Working with a code variation from this tutorial I'm trying to get the parent menu item instance object of a given item (currently editing) and it always returns null. /** * Prepare form ...
0
votes
1answer
282 views

Display Article custom fields in table

I am trying to customise the way the article custom fields are displayed on the category blog page. At present they are displayed in a vertical list: What I would like to do is display these in a ...
0
votes
1answer
172 views

Joomla custom fields for category - subtitle & headerimage

I have an override for the category/blog.php layout and i want to display a headerimage and a subtitle with the custom fields introduced in joomla 3.7. For this implementation I already use Joomla 3.9....
0
votes
1answer
259 views

Joomla - Custom fields in Backend - Template override

I have a Joomla-site with a lot of extra-fields in custom fields area. When I edit my articles the long list of fields is quite confusing. So I thought I could be a good idea to show the custom fields ...
2
votes
0answers
197 views

fetch article custom fields in Layouts

I have created some custom fields in my Joomla article from backend templates/name-template/html/com_content/article/default.php and use this code for load custom fields at joomla article <?php ...
0
votes
1answer
415 views

Get custom field list option value in template override blog_item.php

Using joomla! 3.9.2 I have an article custom field, type List with the ID 14. The List values are below: Text - Value 1 = 335,538,353,559 2 = 390,538,408,559 I am trying to pull the ...
2
votes
3answers
153 views

Joomla 3.x - Custom Field automatic updating in article

Perhaps I am not using the Custom Fields properly, but here is my problem: I have a piece of text which appears in a number of different articles. Rather than have to update each individual article ...
0
votes
1answer
159 views

Using a custom field with different names

I want to use a flexible field name for a field across different forms thru my extension. My custom example field looks like this: defined('_JEXEC') or die; use Joomla\CMS\Factory; use Joomla\CMS\...
2
votes
1answer
78 views

Adding Additional Fields to Admin Component

I'm using Joomla 3.9.1 and SP Simple Portfolio v1.6 I would like to add some additional fields to the SP Simple Portfolio component. Image of current fields (taken from Google); How can I add ...
0
votes
1answer
66 views

Which Custom field is better?

Which field is better for displaying code like below? Textarea or editor field ? I'm currently using Textarea I want to know which method is better and will affect the speed of the site Does anyone ...
0
votes
1answer
113 views

How do I get of joomla's custom field group and its content

How do I query the joomla custom field group and its content (if it exists)? I want the content of field groups to be "implemented" in the joomla's template com_content/article/default.php file. My ...
0
votes
2answers
229 views

How to get Custom Fields related to Joomla Content?

I want to know how they get the values of custom user fields within Joomla articles. This is to contribute ideas and ways to solve it.
1
vote
1answer
861 views

Add layout for custom field

How can i add an additional layout for repeatable.php of the custom fields in my template? So i want to create repeatable_image.php and make it available in layout render option of the custom field. ...
0
votes
1answer
344 views

Retrieve values from a custom field in Joomla 3.8

excuse for my English. I try to retrieve my value from a custom field in com_categories. I added this field by a plugin. My value is correctly saved but i don't why, i can't retrieve my value from ...