Questions tagged [custom-field]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
7
votes
2answers
2k views

How to insert “php code” inside the .xml manifest file of a Joomla module?

I want at the fieldset of a joomla module to echo an option with some fetched results from my db: <config> <fields name="params"> <fieldset name="basic"> <field> <?php $db ...
6
votes
3answers
980 views

Joomla Custom field type - How to create one

I am looking for some information about how to create a custom field type for Joomla 3.7 core custom fields. Can anyone point me in the direction of a tutorial, an example of anything that may help ...
5
votes
3answers
4k views

Joomla custom fields in Category List

With Joomla 3.7.x article custom fields have finally gotten part of Joomla content. However, I would like to ask how I can render these Custom Fields in the Joomla Category List? Adding custom ...
5
votes
1answer
292 views

How to generate a dynamic note field for a custom component?

I am attempting to develop my first custom component called com_image. Because of the structure and function of my project requirements, it made best sense to clone the com_contact folder and ...
5
votes
1answer
1k views

Triggering onContentPrepare from Category Blog view

I found this page on how to implement a custom field in article: http://docs.joomla.org/Adding_custom_fields_to_the_article_component and it works well, but only in article view. What should I do ...
4
votes
2answers
8k 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 ...
4
votes
1answer
151 views

How to remove the default editor inserted in a custom module

I have created a custom module in Joomla 3.5; I have a set of fields, but surprisingly, a default editor is inserted into the module basic tab, while I have not such fields in my fields XML: <...
4
votes
2answers
467 views

Custom Form Field not working

My attempt is to re-build the example here: https://docs.joomla.org/Creating_a_custom_form_field_type Somehow, Joomla doesn't see the City.php file in administrator/components/com_testing/models/...
4
votes
1answer
102 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 ...
4
votes
1answer
625 views

How to save data from subform fieldtype in joomla 3.7 custom field

I made a subform repeatable fieldtype custom field plugin to integrate with the custom field extension in 3.7x, and it works correctly to display the the fields during article submission. However, the ...
3
votes
2answers
2k views

How to fetch joomla article custom fields in another component?

I have created some custom fields in my joomla article from backend now I want to fetch them in another component. What would be the code to achieve it?
3
votes
2answers
174 views

How can I output each item of a multiple list custom field

print_r($item->jcfields); Array ( [1] => stdClass Object ( [id] => 1 [title] => Specialisms [name] => specialisms [checked_out] ...
3
votes
1answer
495 views

How to retrieve active filter from a custom field form?

Having followed the excellent explanation for How to create a view with filters and pagination, I have a custom field that filters for the most part. As it is, the code in the custom field is ...
3
votes
1answer
802 views

How to select predefined options in an custom form list-field?

I'm trying to pre-select several options in a custom form field. I created a new JFormField which extends JFormFieldList and gets its values from my database. This is my current code: protected ...
3
votes
4answers
857 views

Joomla custom fields type url file - upload?

I am trying to add a simple file upload field type to the com_contact using Joomla's custom fields. I see there is a 'URL scheme File' type but I couldn't figure out how to get that to work as a file ...
3
votes
2answers
1k views

Joomla 3.7.x PHP API set value of custom user field

I'm writing a PHP script that goes through the users, and reads and writes some custom user fields. The reading part is done, by the use of the FieldsHelper. It works nicely. However, trying to write ...
3
votes
1answer
54 views

Make a checkbox group disappear

I am using BreezingForms and I have a checkbox group that look for files into my database. It is possible that there is no item to select in the database; at this moment, I want the checkbox group to ...
3
votes
1answer
27 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 {...
3
votes
1answer
172 views

Create a Custom field for content for adminside as Video

I am in need of custom plugin that allow me to add custom fields like Video from admin side for Articles of all category. Can anyone guide me please. Video File type (I will select file and that ...
3
votes
1answer
72 views

Handling of Plugin Custom Field Type Data

I have written a custom field type which will allow users to upload a file (CSV). Upon submitting the file, the plugin needs to be able to read through it and then do its own thing (update database ...
3
votes
2answers
544 views

Passing Arguments for custom field

I need a custom field which has to select the database with some conditions. When customer A logged in this field has to select records belong to customer A only. The custom field is as below ...
3
votes
1answer
610 views

Getting Category's custom fields in a blog view

I'm trying to get the custom fields value of a category in a blog view. I have try the article item method but on the child item (supposed to be the current category item in the loop) : JLoader::...
2
votes
4answers
563 views

Custom Fields in component Articles - Joomla 3.6.4

i need add 2 fields to the component content (articles), need add 2 images and try some examples but don't work :-( have a github with the last try https://github.com/javimata/plg_addfield Can help ...
2
votes
2answers
652 views

How to show article's custom fields in the header of the page?

I am using Jommla's default Protostar template. I have custom fields for articles and I want to show this custom field in the header of the page, not inside the article. How can I achieve that?
2
votes
1answer
1k views

Adding custom fields to com_content category

I have a component which mainly deals with Joomla content articles. I want to add custom fields to Joomla core category. Is there any chance to add custom fields into category through a plugin or ...
2
votes
1answer
289 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 ...
2
votes
1answer
476 views

Accessing current users custom field

I´ve added a custom users field (called "test"). Now I want to call the value of this custom field for the current user who is logged in. In the mysql databse I see the custom field under _fields. So ...
2
votes
1answer
151 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 ...
2
votes
1answer
57 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 ...
2
votes
3answers
179 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 ...
2
votes
1answer
96 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 ...
2
votes
2answers
71 views

Custom form field types unavailable in plugin backend when plugin disabled

I've created a plugin and added a couple of custom fields to its backend. For that I followed the indications from the Joomla docs. I extended for example JFormFieldList to get a dropdown list of ...
2
votes
1answer
878 views

use Joomla Subform field values in custom field from same module

I have the basic xml file where in I call subforms into two tabs. Called Tab 1 and Tab 2. The content of this file is below. mod_something.xml <fieldset name="tab1"> <field ...
2
votes
2answers
1k views

Call php function in backend of module

I am trying to call a php function from the backend of a module (I'm using a custom form field). com_ajax does not work because it pulls the current menu item, which doesn't exist since it is not ...
2
votes
0answers
68 views

Joomla 4 template namespace

I'm working with latest Joomla 4 beta, and wondering how can I use namespaces with templates so I can start using and developing custom fields for my templates. I need to know what should I set in the ...
2
votes
1answer
50 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 ...
2
votes
0answers
242 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 ...
1
vote
2answers
1k views

Custom field colResizable plugin not working but works in fiddle

I got this fiddle: http://jsfiddle.net/2h4kLzgj/9/ Now I am trying to add this to a custom field in Joomla but for some reason it does not work at all in the administrator. The table shows up but ...
1
vote
1answer
54 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 ...
1
vote
1answer
525 views

Custom Fields inside module override

I am using this code inside a module override that render articles, to show the custom fields: <?php $id=$item->id; $db = JFactory::getDbo(); $query = 'select * from #...
1
vote
1answer
838 views

Dynamic fields in module parameters

I have created a Joomla module that renders a set of headlines in a widget, with links to the main item. It loads these headlines from either a Joomla category or an RSS feed, and is extensible so I ...
1
vote
1answer
467 views

Customize Global Configuration

Can we customize global configurations ( configuration.php ) to add custom parameters? . As it stores DB / FTP settings, I want to add payment gateway configurations. If there is a way to add ...
1
vote
1answer
49 views

Error JLIB_APPLICATION_ERROR_INVALID_CONTROLLER from CLI on Joomla 3.7

I have an issue with a cli php script that I'm trying to execute. I want to add an article with custom fields. The part where I add articles is working well, but when I add the code to load the ...
1
vote
1answer
32 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
1answer
54 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 ...
1
vote
1answer
69 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 ...
1
vote
2answers
208 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 ...
1
vote
1answer
82 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 $...
1
vote
1answer
47 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 ...
1
vote
1answer
302 views

How can I add custom user field values to an article?

I have created a custom user field named "Gender". How can I show this field in an article? I can only manage to show: username, name, email and User Id Here is my current Sourcerer code to access ...