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
2answers
144 views

Joomla custom fields management

I'm new to Joomla'scustom fields and also don't have a deep knowledge of Joomla. I need to create a custom field name "Speakers" to associate to a event. It's a multiselect field so that ...
1
vote
2answers
180 views

Use custom fields in index.php template file

For some reason i need tu use articles custom fields in index.php file template, i try this code without success : This after defined('_JEXEC') or die('Restricted access'); JLoader::register('...
0
votes
1answer
210 views

Using a custom field with different names

I want to use a flexible field name for a field across different forms thru my extension. My custom example field looks like this: defined('_JEXEC') or die; use Joomla\CMS\Factory; use Joomla\CMS\...
0
votes
1answer
58 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 ...
2
votes
1answer
26 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
2answers
72 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. ...
2
votes
4answers
2k views

How to filter articles by jcfields (Custom Fields)?

i'm trying to filter articles by custom fields. In Wordpress it's quite easy to do, but i'm blocked now. Here's what i would imagine right to do, but it's not: JModelLegacy::addIncludePath(...
0
votes
1answer
216 views

How to dynamically filter blog/list layout by today's date?

I've created a Joomla article category 'Events' with three list views: all events past events future events All three views refer to the same "Events" category. The past and future events layout use ...
0
votes
1answer
22 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 ...
1
vote
1answer
83 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::...
0
votes
1answer
28 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 ...
0
votes
3answers
384 views

Custom fields - JS in template override

We need to add some enhanced ecommerce tags to standard Google Analytics tracking on few pages. We think the best way to do it would be to use Joomla Custom fields so we created a custom field for ...
0
votes
1answer
37 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&...
1
vote
0answers
25 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 ...
3
votes
1answer
873 views

Getting Category's custom fields in a blog view

I'm trying to get the custom fields value of a category in a blog view. I have try the article item method but on the child item (supposed to be the current category item in the loop) : JLoader::...
1
vote
0answers
26 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
1answer
55 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 ...
0
votes
1answer
46 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>';...
4
votes
2answers
3k views

How to fetch joomla article custom fields in another component?

I have created some custom fields in my joomla article from backend now I want to fetch them in another component. What would be the code to achieve it?
1
vote
1answer
568 views

Joomla - Custom fields in Backend - Template override

I have a Joomla-site with a lot of extra-fields in custom fields area. When I edit my articles the long list of fields is quite confusing. So I thought I could be a good idea to show the custom fields ...
1
vote
1answer
188 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
1answer
212 views

Joomla 4 - import parent field class into extending field class issue finding the files

Testing my Joomla 3.9 extensions in Joomla 4, some of them didn't work, because, as instructed with the (probably) old documentation my custom fields use jimport('joomla.form.formfield'); ...
2
votes
0answers
40 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
3answers
126 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, #...
5
votes
2answers
529 views

Custom Form Field not working in Windows environment

My attempt is to re-build the example here: https://docs.joomla.org/Creating_a_custom_form_field_type Somehow, Joomla doesn't see the City.php file in administrator/components/com_testing/models/...
3
votes
2answers
571 views

How to get Custom Fields related to Joomla Content?

I want to know how they get the values of custom user fields within Joomla articles. This is to contribute ideas and ways to solve it.
1
vote
1answer
71 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
0answers
25 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 ...
0
votes
0answers
15 views

Joomla custom fields articles list

Mimicking an old sports site that worked using cobalt with custom fields, I've managed to create a nice "match" article, but now I have two issues I don't know yet how to solve. How could I ...
0
votes
0answers
14 views

Stop display custom fields in edit article in frontend

I’m having some trouble with custom fields and tags when creating/editing an article from frontend. I’m using tags and several custom fields (grouped into five groups). By standard, the custom fields ...
2
votes
1answer
49 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
2answers
366 views

Creating custom form field type extended from standard tag field

I'm trying to create a custom form field type for my component. Functionally it should operate the same as the standard tag form field type, except I want to store the tags in my own database table (...
1
vote
1answer
42 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 ...
1
vote
1answer
679 views

Joomla custom fields in mod_articles_category

i've create several custom fields and i can show all them easy in articles, or articles list. Now i would need render them in mod_articles_category override but i cannot reach the target so far. Is ...
0
votes
1answer
45 views

Custom Category Field

Using Joomla 3.9, although Custom Fields is now available, I am opting to do this in a plugin instead for reasons. I have created a plugin to hook into the Category view in admin, so that I can add a ...
0
votes
0answers
19 views

What is best practice for inserting the link for custom fields in third party extensions

If I want to integrate custom fields into my Joomla 4 extension, then I have to change the database so that a link appears in the administrator menu, right? For example like here: https://github.com/...
0
votes
0answers
9 views

confirm dialog, on New Custom Field creation

I am in the process of creating a new type of Custom Field. (Joomla 3.9x) As a new Field under Plugin. I need to have a confirm-dialog on beforeSave, but I can't find any proper tutorial on how to do ...
1
vote
1answer
55 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
0answers
46 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
0answers
65 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
1answer
88 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
1answer
56 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 ...
3
votes
4answers
1k views

Joomla custom fields type url file - upload?

I am trying to add a simple file upload field type to the com_contact using Joomla's custom fields. I see there is a 'URL scheme File' type but I couldn't figure out how to get that to work as a file ...
6
votes
3answers
1k views

Joomla Custom field type - How to create one

I am looking for some information about how to create a custom field type for Joomla 3.7 core custom fields. Can anyone point me in the direction of a tutorial, an example of anything that may help ...
1
vote
1answer
83 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
0answers
109 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 ...
2
votes
1answer
175 views

How to extend the article search to take into account the values of custom fields?

In articles I have added a series of custom fields, now I need to be able to filter through these fields, while being in the article manager view. I have searched about it but without success, I just ...
2
votes
1answer
153 views

Adding Additional Fields to Admin Component

I'm using Joomla 3.9.1 and SP Simple Portfolio v1.6 I would like to add some additional fields to the SP Simple Portfolio component. Image of current fields (taken from Google); How can I add ...
0
votes
1answer
140 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 ...
1
vote
1answer
30 views

Custom Field Tag Style List

Joomla 3.9.11 I have created an SQL custom field for my joomla contacts called location, this allows me to assign a location to my contacts. The SQL simply selects location_name from a custom db ...