Questions tagged [custom-field]
With Custom Fields you can add extra information fields to Joomla's Articles and Users.
201
questions
0
votes
1
answer
20
views
Duplicate custom fields "media" to make "image" plugin
I am using the custom fields for the articles. I have downloaded the "media" custom field plugin and renamed this to "image" (along with the relevant files) I have installed the ...
0
votes
2
answers
36
views
How to conditionally display custom fields in template overrides
I am using the following code to pull in some custom fields into an override of com_content > category > blog_item.php:
$video = $this->item->jcfields[4]->value;
$media = $this->item-...
0
votes
0
answers
21
views
Disable single option in list-fancy-select
When using a custom select list field i can disable single options in it by setting an attribute.
Here a simple version:
<field name="somefield" type="mylist" label="...
2
votes
1
answer
63
views
Create own Custom Field for Joomla 5
I am looking at how to create my own custom field using a self implemented form field in Joomla 5.
I started my extension in the same way as the core extensions (https://github.com/joomla/joomla-cms/...
0
votes
1
answer
24
views
Styling Joomla custom fields
0
i have created some custom fields in Joomla and created an over-ride:
/components/com_fields/layouts/field/render.php to /templates/YOUR_TEMPLATE/html/layouts/com_fields/field/MY_OVERRIDE.ph
...
0
votes
1
answer
25
views
Article fields layout
I am using Joomla 4 with casseiopa template.
I have created a load of custom fields where the layout ends up like this:
<ul class="fields-container">
<li class="field-entry ...
2
votes
1
answer
77
views
Filling custom fields when creating an article with an script via the API
I am creating an article in Joomla 4 using the excellent code that is suggested here: Joomla 4 create article programmatically
My task is write the values of the custom field simultaneously with the ...
0
votes
0
answers
38
views
Joomla 4 - hide custom fields in category blog
I am using some custom fields at article level. These are also showing on the category blog view. How do I disable these? Am I being stupid or do I really need to create an override for such a trivial ...
0
votes
0
answers
26
views
retrieve all values in a loop
I thought I'd found an alternative to a problem, but I've just realized that I can't retrieve all the checkbox values.
DEBUG
array(1) {
["row0"]=>
array(2) {
["field110"]...
0
votes
1
answer
19
views
Set Field Value in Custom List field that is used inside a extended SubformField Class in Multiple Mode
My brain hurts,
I'm using a custom listfield inside a subform in multiple mode, the rendering works as expected (two elements in database > two elements in the form). but i'm not able to set the ...
0
votes
0
answers
65
views
Multi-level Dependent Drop Down Lists by Joomla 4 SQL Custom Field
I need to create a Multi-level Dependent Drop Down List to show my Joomla Categories list in the first dropdown list and then show the related articles in the second dropdown list (based on the value ...
0
votes
1
answer
100
views
Joomla 4 Custom Component > Custom Fields Integration
I'm curently developing a (free) Custom Joomla 4.x component. Now im struggeling while implementing Custom Fields support for my first (and currently only) context. The issue is that the "Fields&...
0
votes
2
answers
79
views
Retrieving text from a sub-form checkboxes field [joomla 4]
I get the value checkboxes:[film_rea], but I can't get the corresponding text [realisation].
<?php foreach ($this->item->jcfields as $field) {
if ('films-pros' === $field->name &&...
0
votes
1
answer
52
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
46
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
65
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
63
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
168
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
131
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
98
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
44
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
48
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
180
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
18
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
56
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
55
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
27
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
187
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
1
answer
73
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
206
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
164
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->...
4
votes
1
answer
1k
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
745
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
41
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
398
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
68
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
291
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
437
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 ...
2
votes
0
answers
282
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
52
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
76
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
59
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
71
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
57
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
44
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
242
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
163
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
334
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
133
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
302
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 ...