Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [custom-field]

With Custom Fields you can add extra information fields to Joomla's Articles and Users.

Filter by
Sorted by
Tagged with
0 votes
1 answer
43 views

Joomla 4 / 5 - Custom Field Plugin

I'm trying to update my Ajax based FolderList Fields Plugin (to select a Folder) for Joomla 4/5. All looks fine but the field does not get rendered correctly in the Article Fields Section - it looks ...
Marco's user avatar
  • 683
0 votes
2 answers
39 views

onContentAfterSave doesn't show custom fields

I created a plugin to send published articles data to external service class plgSystemVacancypub extends JPlugin { public function onContentAfterSave($context, $article, $isNew) { // Get ...
user3774771's user avatar
0 votes
1 answer
36 views

Custom Form Field Type in Module Settings not got rendered (J4)

For my Project i need to render a custom form field based on the ListField I try to use the "new" conventions for J4 and later using namespacing etc. this is the relevant part of my xml: ... ...
Marco's user avatar
  • 683
0 votes
2 answers
57 views

Store Custom Subform Field Value in DB

Note This is a follow up question upon Create Custom Form via SimpleXMLElement The first issue has been solved, the subform gets rendered, here is my CustomField Code: use Joomla\CMS\Factory; use ...
Marco's user avatar
  • 683
0 votes
1 answer
71 views

Problem inserting Joomla 4/5 Custom Field in Text Article-simple syntax solution?

Use Case: I maintain a simple site for a small orchestra. Originally written in Joomla 2010, updated to Joomla 3 in 2016 and now updating to Joomla 4/5. Each concert, the items, conductor, soloists ...
DerekE's user avatar
  • 1
0 votes
0 answers
19 views

Custom Component - Cannot switch category after implementing Custom fields

Another weird issue in one of my comppnents i did not understand. I have implemented custom categories by using com_component.teams and com_component.locations - Additionally. it works all fine until ...
Marco's user avatar
  • 683
0 votes
1 answer
43 views

Show the category custom fields in article page

I have category custom fields and I need to show these in the article (which is in the category) view. I have used the following: use Joomla\CMS\Factory; use Joomla\Component\Fields\Administrator\...
RustyJoomla's user avatar
  • 2,078
0 votes
1 answer
32 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 ...
RustyJoomla's user avatar
  • 2,078
0 votes
2 answers
68 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-...
Mike Hermary's user avatar
0 votes
0 answers
37 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="...
maidan's user avatar
  • 433
3 votes
1 answer
299 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/...
agi's user avatar
  • 313
0 votes
1 answer
39 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 ...
user408's user avatar
  • 33
0 votes
1 answer
34 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 ...
j00m's user avatar
  • 191
2 votes
1 answer
130 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 ...
Igor K.'s user avatar
  • 23
0 votes
0 answers
66 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 ...
j00m's user avatar
  • 191
0 votes
0 answers
33 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"]...
Hdcms's user avatar
  • 51
0 votes
1 answer
23 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 ...
Marco's user avatar
  • 683
0 votes
0 answers
105 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 ...
KEian's user avatar
  • 3
0 votes
1 answer
167 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&...
Marco's user avatar
  • 683
0 votes
2 answers
121 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 &&...
Hdcms's user avatar
  • 51
0 votes
1 answer
113 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 ...
Alexandre Paulo's user avatar
1 vote
0 answers
51 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/...
Peter Reill's user avatar
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 ...
Steven's user avatar
  • 35
1 vote
1 answer
70 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 ...
maidan's user avatar
  • 433
2 votes
2 answers
186 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="...
Hdcms's user avatar
  • 51
1 vote
0 answers
190 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 ...
Alexandre Paulo's user avatar
2 votes
0 answers
123 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 ...
Alexandre Paulo's user avatar
1 vote
0 answers
50 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/...
Alexandre Paulo's user avatar
0 votes
1 answer
61 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 ...
Alexandre Paulo's user avatar
2 votes
1 answer
240 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 (...
Gillian's user avatar
  • 411
1 vote
1 answer
21 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 ...
maidan's user avatar
  • 433
1 vote
0 answers
74 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. ...
Alexandre Paulo's user avatar
0 votes
1 answer
67 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\...
maidan's user avatar
  • 433
1 vote
0 answers
30 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(...
Hans's user avatar
  • 11
1 vote
0 answers
222 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=&...
antarey's user avatar
  • 35
0 votes
2 answers
101 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 ...
Piero Marsilio's user avatar
1 vote
2 answers
301 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 ...
Terry Carter's user avatar
  • 1,812
1 vote
1 answer
221 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->...
Sergey Tolkachyov's user avatar
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, ...
cappu's user avatar
  • 139
3 votes
2 answers
977 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('...
geoplous's user avatar
  • 359
0 votes
1 answer
47 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 ...
user avatar
1 vote
1 answer
517 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> ... <...
Marcel's user avatar
  • 35
0 votes
2 answers
77 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: {...
Mark's user avatar
  • 1
1 vote
1 answer
370 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 ...
Marco's user avatar
  • 683
2 votes
2 answers
553 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 ...
maidan's user avatar
  • 433
2 votes
0 answers
352 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/...
user9530's user avatar
  • 111
1 vote
1 answer
57 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) ...
Glenn Arkell's user avatar
1 vote
1 answer
85 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 ...
maidan's user avatar
  • 433
1 vote
1 answer
65 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> <...
mohamadreza mirzaee's user avatar
1 vote
0 answers
72 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 ...
wisdom's user avatar
  • 21

1
2 3 4 5