Questions tagged [custom-field]
With Custom Fields you can add extra information fields to Joomla's Articles and Users.
208
questions
0
votes
0
answers
40
views
Custom Component breaks after upgrade to Joomla 5
I have a custom component on a site I just upgraded from Joomla 4.4.7 to 5.1.3 (in increments, not at once). The whole upgrade went well, and everything works except my custom dropdown field no longer ...
0
votes
1
answer
45
views
Joomla 5 - Custom User Profile Plugin with SQL Field: How to display value_field on Profile Page
I needed a set of custom user fields that writes into a custom table. I copied the default User-Profile plugin in Joomla v5.1.2 and made the necessary code changes to create my custom plugin profile6. ...
0
votes
1
answer
42
views
Loading custom Field type from plugin in custom component
I think I'm going mad here, or don't understand basics.
I have created custom field type in a plugin. It installs and works in Article: Add custom field.
The problem is I can't make it work with my ...
0
votes
1
answer
81
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 ...
0
votes
2
answers
44
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 ...
0
votes
1
answer
64
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:
...
...
0
votes
2
answers
66
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 ...
0
votes
1
answer
103
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 ...
0
votes
0
answers
22
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 ...
0
votes
1
answer
56
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\...
0
votes
1
answer
33
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
87
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-...
2
votes
0
answers
64
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="...
4
votes
1
answer
436
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
52
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
40
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 ...
3
votes
1
answer
167
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
1
answer
28
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
1
answer
196
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
150
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
165
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
53
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
70
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
73
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
190
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
215
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
134
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
52
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
71
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
249
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
26
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
81
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
87
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
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(...
1
vote
0
answers
250
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
2
answers
115
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
362
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
230
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
1k
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
50
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
579
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
82
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
399
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
584
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
385
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
59
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
89
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
72
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
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 ...