Questions tagged [custom-field]
With Custom Fields you can add extra information fields to Joomla's Articles and Users.
189
questions
0
votes
0
answers
12
views
Disable custom field validation
I've created a new custom field type name "lazyload" on Joomla 4.
Basically it is a list field that places an empty (no options) HTML select tag and uses the select2 plugin to fetch the ...
1
vote
0
answers
14
views
media field type ignores directory
I'using a xml formsource (<field name="media" ... />) in a subform for a custom field.
The form is working but my directory path is completely ignored. E.g. directory="mitglieder/...
1
vote
1
answer
56
views
Ordering items function deletes connected field-items of another table
Initial situation:
I have implemented the J4 ordering function in different views of a component. It works fine so far, although the component was not really rewritten for J4. .
Problem:
When I change ...
1
vote
1
answer
43
views
Creating custom field with multiple Editor instances
I created a custom form field. This field consists of multiple tabs that switch for every language that is installed to a separate WYSIWYG Editor field. So it's basically just multiple Editor fields ...
2
votes
2
answers
143
views
compose a url from an extract of a subform
I was able to compose a url from a subform that included text input fields.
I was able to display the link because it was in the same menu
<i class="fa fa-link fa-1x" aria-hidden="...
1
vote
0
answers
55
views
Custom field type "media" not allowing PDFs
Joomla media allows me to upload ".pdf" files.
But if I set up a "media" custom field it does not allow me neither to upload a PDF nor to select a PDF previously uploaded via the ...
2
votes
0
answers
56
views
How do I upload a file with article custom fields?
I've created a custom field plugin type "file" and am using it as custom field on articles so users can upload a file (the "media" type file does not suit my needs).
It looks and ...
1
vote
0
answers
30
views
Is there a way I can add field types to com_fields?
Joomla's custom fields feature is missing quite a few and important field types
Is there a way I can add field types to com_fields?
As an example, there is no "file" (https://docs.joomla.org/...
0
votes
1
answer
29
views
Can I limit a custom media field to use a single filesystem plugin?
I'm using Joomla custom fields for articles and have created a custom field of type "media".
Also, because I want to setup my own rules on where and how uploaded files are stored, I've ...
2
votes
1
answer
133
views
How can I query a custom field value in JavaScript?
I am creating a website for a composer to include a page in a blog style with YouTube videos of concerts. I am attempting to block all the code for the videos from automatically loading on the page (...
1
vote
1
answer
13
views
Super slow editing mask because repeatable custom field is in subform and calls API many times
I have some options to configure a plugin of mine. These options contain one subform field, that can be repeated. The purpose of the field is to match names of one type to ones of another type.
The ...
1
vote
0
answers
31
views
How can I override custom fields layout for the Administrator side?
I'm using Custom Fields in articles intensively.
I need to override the Custom Fields edit layout on the administrator side.
Editing the files created via Administrator Template Overrides do not work.
...
0
votes
1
answer
36
views
Accessing system plugin params by custom field
I am working on a system plugin which uses its own custom field. The plugin has an XML looking like this:
<config>
<fields name="params" addfieldprefix="Joomla\Plugin\...
1
vote
0
answers
25
views
How to get the value of a custom field and make it a variable? [duplicate]
I am trying to access custom field values on an override page on my Joomla 4 site.
I trying to use the FieldsHelper class to access and show the data with this code:
<?php echo FieldsHelper::render(...
1
vote
0
answers
130
views
Joomla 4 custom fields in module
Good day.
Help with custom fields and helper
mod_statesites.xml
<?xml version="1.0" encoding="utf-8"?>
<extension type="module" version="4.0" client=&...
0
votes
0
answers
16
views
PPTX in custom field not working in Joomla 4
In J4, when adding a custom field (file) and want to add a ppt/pptx it's not working. I get an error; the url in the field is red and the file is not added.
On another J3 site, it's working like ...
0
votes
1
answer
54
views
Custom field in core modules
I need to add a new field in modules form screen.
I learn that using this:
/administrator/index.php?option=com_fields&context=com_modules.module
a field can be added.
I was able to create de field ...
1
vote
2
answers
105
views
Custom Fields Implementation
I have a custom component I am creating. I am trying to implement custom fields for several of my views. I have custom fields added currently and I can create a custom field and custom field groups ...
1
vote
1
answer
110
views
How to get an article id in blog category view inside fields plugin
I created a custom field plugin. I need to get an article id in blog category view in plugin layout file: /plugins/fields/my_plugin/tmpl/default.php.
In my article view, I can get it from $app->...
2
votes
1
answer
651
views
How to show list of articles filtered by category and custom field
I am looking for a way to show Joomla 4 articles in a category blog filtered by one (or more) of my custom fields. - The category blog settings in the backend seems only allow to filter by category, ...
3
votes
2
answers
464
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
1
answer
32
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
232
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
2
answers
49
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:
{...
1
vote
1
answer
204
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 ...
2
votes
2
answers
278
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 ...
1
vote
0
answers
178
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
49
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
55
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
49
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
65
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
52
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
41
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
206
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
113
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
261
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
88
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
214
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
237
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
107
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
110
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
198
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
54
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
154
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
42
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
114
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
77
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
128
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
315
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
287
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,
#...