Questions tagged [custom-field]
With Custom Fields you can add extra information fields to Joomla's Articles and Users.
174
questions
2
votes
1
answer
27
views
Custom Fields inside Articles News Module in Joomla 4
I want to show some specific Custom Fields inside the Joomla 4 Articles News (mod_articles_news) module.
I used to use this code in Joomla 3 :
<?php $customFields = FieldsHelper::getFields('...
0
votes
0
answers
17
views
Joomla field logic control plug-in
Is there a plugin in joomla that controls the display or hiding of another field based on the specified field similar to the XML showon attribute, or similar to the conditional logic in the WordPress ...
1
vote
1
answer
40
views
Dynamically add option to Jform field
I need to conditionally add an option to an existing form field in my custom component.
The form is defined in models/forms/myview.xml like:
<form>
<fieldset>
...
<...
0
votes
1
answer
21
views
Fetching custom user field values in custom module
I'm having some problems with a custom module that I'm making to display some basic "logged in" user information.
I'm working on a template with "SP Page Builder" CMS.
My module:
{...
0
votes
0
answers
22
views
Imagelist Custom Field Joomla
I have a custom field "imagelist Field" containing a json string and I need a php code to display the images in a carousel div. Can anyone help?
The value in the database table is:
{"...
0
votes
0
answers
16
views
How to edit article custom field through the frontend?
There is a text from the additional field inside the material.
I want to implement the ability to change this text through the frontend with the ability to save it there (when authorized by the admin)....
0
votes
0
answers
16
views
display fields of a subform in an article (override) [joomla 4.1]
I want to display the rendering of fields in an article overload
Can you help me?
My fields :
name / type / id
Url / url / 33
Type of site / list / 34
date / calendar / 40
note / text / 41
Sites and ...
1
vote
1
answer
32
views
com_ajax to plugin / or plugin field
I have this customfield plugin where the user can select a folder in a popup, the call should be ajax based. The form-"field" including AJAX call etc. works already in some of my modules ...
0
votes
0
answers
16
views
Predefined List form field type php class location / registration
I'm trying to set up a Predefined List form field type as per the docs here https://docs.joomla.org/Predefined_List_form_field_type
I have the XML
<field name="_card_expiry_year" type=&...
2
votes
2
answers
49
views
Custom multiselect field not working in J4
In my Joomla 3 component, i have a custom field that is a select list with multiple=true.
The values of such an select list are binary handled like 1,2,4,8,16.
When storing, the values are getting ...
0
votes
0
answers
20
views
Rendering fields of custom subform in individual layout
So inside a custom component (com_mycomp), i need to output the single fields of a subform field custom arranged. Sounds simple, but I can only get it to be rendered in default vertical order. I can't ...
1
vote
0
answers
56
views
render Subform repeatable custom fields joomla4
I have created one subform custom fields in my Joomla 4 article from backend and selected media filed at subform
and use this code for load custom fields at joomla article
YOUR_JOOMLA_WEBSITE_ROOT/...
1
vote
1
answer
34
views
J4 - Custom Profile Plugin - Hiding Groups
I have a custom profile plugin to extend user profile data. I want to add a switch to hide all BUT the core group of fields when the user checks and edits their profile.
In my plugin (profileabc.php) ...
1
vote
1
answer
29
views
Custom fields for different table structures in custom component
I'm trying to use custom fields on my component. That works fine so far, but I have multiple data structures (tables) in my component, where I want custom fields to work.
Everything works when ...
1
vote
1
answer
28
views
joomla 4 custom field auto text cleanup
I have this Joomla 4 installed website and I need a custom field(Editor type) for my product specifications which is going to be showing a table.
For example, if I put this code:
<table>
<...
1
vote
0
answers
44
views
Delete Thumbnails Button Created as Joomla Custom Form Field Throws Me Out
I am developing a Joomla 4 Content Slider Module and it creates thumbnails in the mysite.com/cache/mymodule/ folder. I am trying to add a delete-thumbnails button. I am using a custom form field for ...
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
40
views
JFormField extension doesn't access $this->element from the constructor
I'm creating my custom Field extending the clasic JFormField like this:
class JFormFieldExtension extends JFormField {
protected $type = 'extension';
// Constructor
public function __construct(\...
1
vote
1
answer
57
views
Render Custom Fields in Admin edit view
I want to add custom fields to my component. My admin edit view uses bootstrap tabs:
<?php echo HTMLHelper::_('uitab.startTabSet', 'myTab', array('active' => 'general')); ?>
<?php echo ...
0
votes
1
answer
36
views
Layout override for repeatable subform custom field
I am trying to apply custom field override to my article and some of the fields I am trying to access are inside repeatable and non-repeatable subforms. Please how do I access and display subform ...
0
votes
1
answer
114
views
What is the correct PHP to render Subform repeatable custom fields on the front end?
When creating custom layout overrides the PHP code
<?php echo $this->item->jcfields[X]->value; ?> Works successfully, but does not function at all when it comes to repeatable subform ...
0
votes
1
answer
42
views
What would keep custom fields from rendering in the frontend on Joomla 4
When using the shortcode (example {field34}) for a field in the Article editor text area the field content is not showing on the front end.
I entered the fields manually and also used the dropdown and ...
2
votes
1
answer
78
views
Are custom fields updatable using joomla 4 api?
Simply put when using the API to update a custom field of an article, the new information is not successfully passed through. Furthermore, the original contents are deleted from the field.
The ...
1
vote
1
answer
78
views
Show article fields in module
I have two custom fields in my article for longitude and latitude. I'm then trying to build a module to get these two fields from the current article displayed and show in the module.
I have the ...
2
votes
1
answer
35
views
Getting somehow the Article ID in an Alternate Layout for Custom Fields
I am creating an Alternate Layout of /components/com_fields/layouts/field/render.php to change the layout of some given Custom Fields. And there I need the ID of the article in order to give a unique #...
0
votes
1
answer
80
views
Trying to write a custom form field that concatenates <input> and <select> values
I am a novice dabbler in Joomla PHP. I can build custom templates and simple frontend modules. I’m trying to write my first custom form field. I’ve gone over the documentation, reviewed several ...
1
vote
1
answer
115
views
Use Text-Editor in UIkit Modal (Module Backend)
For a new Project i would like to have an editor instance inside a modal popup (click on an object to add / edit details). I have my Custom Field that loads an editor like so:
$editor = JEditor::...
1
vote
0
answers
47
views
Adding custom fields on the fly in JOOMLA 3.9
I am trying to develop a hobby project based on https://www.themealdb.com/ api.
I am trying to create an article programmatically for https://www.themealdb.com/api/json/v1/1/search.php?s=Arrabiata and ...
1
vote
0
answers
50
views
How to add new field types to repeatable custom field?
By default, Joomla provides few types of fields that could be used as repeatable custom fields:
editor
media
number
text
textarea
I want to have more fields like boolean, or maybe even more rich ...
0
votes
1
answer
33
views
Registered users public listing showing only the selected fields by each user
I'm looking to display a map (google map or other) together with a list of all our registered Joomla 3.9.x users, their addresses and extra information are stored using Joomla user custom fields.
What ...
0
votes
1
answer
71
views
Trying to add subform field to existing component xml
I've added the following into my components XML file :
<field name="activity_name" type="subform" label="Activity" description="" multiple="true&...
0
votes
1
answer
52
views
Custom form field in subform. How to access parent form fields?
I have created a custom file list form field and the field is used in a repeatable subform.
The purpose of this custom form field is to display a list of files in folder based on 'name' field in main ...
2
votes
0
answers
77
views
How to create custom filter type option for a custom field to extend the custom fields in Joomla?
I'm trying to figure out how to add/extend the "Filter" options for a Custom Field. I first started looking to see if I could figure out where I could add my own filter to the list of ...
1
vote
1
answer
189
views
Get article list based on custom field value (com_fields)
I'm trying to get all the articles from a specific category with a specific value in one of the custom fields (com_fields) I have created.
I have this code:
$model = JModelLegacy::getInstance('...
1
vote
3
answers
182
views
Join #__content with #__fields_values then filter and sort using #__fields_values data
I wrote an override in Joomla 3.X and sorted the result from the DB using this query, which works:
$query = "SELECT content.*, fieldvalues.*
FROM #__content AS content,
#...
1
vote
0
answers
64
views
How to populate custom field dropdown with values from DB
I trying to create a new custom field, which will have a select field with menu items from certain menu type, I got stuck at populating this select field with values from database.
You can see the ...
2
votes
1
answer
127
views
custom form list field add disabled options - create optgroups
I have a working list based on an sql query. Now I would like to add some spacers (not selectable items).
When doing this manually in xml you can add the disabled attr to that item, but how can I do ...
1
vote
1
answer
73
views
Adding extra field to joomla categories
I need help in adding extra fields to Joomla categories(not article) in my custom component categories and I didnt find any documentation for that. I want to add a time field to categories. I tried to ...
0
votes
1
answer
83
views
How to display custom user profile plugin fields on "Edit account" page?
We are building a website with multiple authors using PWT ACL to restrict their access to the users tab so that they don't mess with each other's profile or content.
I created a custom user profile ...
1
vote
1
answer
65
views
Save/load a custom form inside a new tab in the article edit view
I have a plugin which loads a custom form in a new tab inside the article edit view. So far, no problem with this part:
public function onContentPrepareForm(Form $form, $data)
{
// Check we are ...
0
votes
0
answers
70
views
Own Custom Field Plugin - Multiple Inputs
I am currently creating a custom field plugin for Joomla! I am now faced with the task / problem that the user needs more than just one field when adding the information. In detail it is so that it is ...
1
vote
0
answers
75
views
Showon field attribute targeting field from a group to root
So this is an example XML:
<form>
<fieldset>
<field name="field1" type="text" default="" label="" description="">
...
1
vote
1
answer
152
views
Custom field type with showon attribute for list options
When creating a showon attribute in list options one can do that in form XML since Joomla 3.9 like this:
<field name="fieldx" type="list" default="0" label="...
0
votes
1
answer
140
views
How can I create my own custom field?
I know how to create a custom form field if I am building a module/component/plugin but how do I build one of the Joomla! custom fields?
I can't find a tutorial and I think I'm probably Googling the ...
1
vote
1
answer
287
views
Using form XML for custom filter and removing group definition
I'm creating a small component with a search module. I will dumb this example down so that the question will be clear.
The component manages books. The book form XML looks like this and its structure ...
1
vote
1
answer
99
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 ...
3
votes
0
answers
151
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 ...
0
votes
2
answers
122
views
Using isset or is not set PHP variable with extra fields?
I have an issue with setting up variables - if the custom field is filled then it should be shown, if it's empty - then date (+1 month from today's date) is shown.
However, it doesn't work properly. ...
0
votes
1
answer
58
views
joomla returning invalid fields for user registration
I've added in custom fields for joomla registration, however it's returning them as Invalid Fields?
$requestData = $this->input->post->get('jform', array(), 'array');
echo '<pre>';...
0
votes
1
answer
264
views
Insert custom field into modules .xml file
I have currently created a Joomla Module, and i would like to make it a bit more advanced now. I have created a Custom field, and i have tried to add it to the mod_NAMEOFMODULE.xml file. To use it ...