Questions tagged [custom-field]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
14 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/...
3
votes
1answer
650 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::...
0
votes
0answers
4 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
45 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
1answer
27 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>';...
0
votes
1answer
400 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 ...
0
votes
0answers
24 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
1answer
36 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
0answers
54 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=""> ...
0
votes
1answer
73 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'); ...
1
vote
2answers
80 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('...
1
vote
1answer
39 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
179 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
34 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
879 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 ...
0
votes
2answers
368 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.
0
votes
2answers
44 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. ...
1
vote
1answer
576 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
154 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 ...
3
votes
2answers
2k 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?
0
votes
1answer
34 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 ...
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 ...
0
votes
1answer
111 views

Joomla custom fields management

I'm new to joomla custom fields and also don't have a deep knowledge of joomla. I need to create a custom fields name "Speakers" to associate to a event. It's a multiselect field so that when ...
1
vote
1answer
56 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 ...
2
votes
0answers
77 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 ...
0
votes
3answers
359 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 ...
1
vote
1answer
80 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
106 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
33 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
22 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 ...
0
votes
1answer
85 views

Default value for repeatable custom field

I am trying to set a default value for the repeatable custom field. My subform has a number field, a media field and a text field. I am using the default value field in the repeatable field ...
0
votes
1answer
39 views

Default options on a multi-select form field using setFieldAttribute

We got a custom jform field as below <field name="select_course" type="courselist" label="Select Course" multiple="true"> </field> Assume the ...
1
vote
3answers
1k 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(...
1
vote
3answers
137 views

How to add the current user's user id in query of a custom field for a plugin?

If I hardwire a created_by clause in a joomla sql custom field, the query works as it should (for this specific userid the clause is, and created_by = 305): SELECT id AS value, title AS text FROM #...
1
vote
2answers
101 views

Get values of other custom fields in field layout override

I am using a repeatable custom field for articles in Joomla! 3.9.16 with an alternative layout (override) of com_fields/layouts/field/render.php and an override of plugins/fields/repeatable/tmpl/...
1
vote
1answer
34 views

How can I call com_contact fields in an article view?

We have linked the author to com_contacts and now I want to show an author image which will be a custom field in com_contacts. I was able to show it as a com_user custom field using the following ...
0
votes
2answers
73 views

Access repeatable subform fields and display in article override

I have been testing the following code to retrieve and output the values from a repeatable subform field with no success. JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR . '/components/...
1
vote
1answer
94 views

Custom field in menu item

I am trying to get a custom field type into the menu. I want this to be a dropdown which I poulate with some php code. Where the arrow points in want my dropdown field. So I created in /components/...
1
vote
1answer
263 views

Custom form field not working on server

I created a custom component and in the form one custom field categoryList to list all categories dynamically. Following is the code: formname.xml <fieldset addfieldpath="/administrator/...
0
votes
1answer
44 views

Custom fields published state not working as expected

I am using the following code to check to see if my repeatable custom field's state is published/unpublished. If the state is set to 0, the code in between should be hidden, but instead an error is ...
0
votes
1answer
75 views

Override output for repeatable custom fields

I am struggling to find a way to output the values from a repeatable field in Joomla 3.9.15. I am currently accessing the custom fields assigned to articles using the following code: JHtml::...
1
vote
0answers
66 views

How do I sort articles in category blog using a custom field value?

I have created a custom field date and added content to the articles of a category. How can I now sort the articles in the category blog overview by this field? What should a blog.php and blog_item....
0
votes
1answer
33 views

How to use 'showon' with global settings in menu item parameter?

In a custom component I have some component params (config.xml) and I have some menu item params (default.xml). Inside the component params I make use of the showon attribute many times. But to keep ...
1
vote
1answer
54 views

Custom fields not for all usergroups

I'm triing to use custom fields in users for personal details on members of a group, but I've got some "system" users that don't have these details. But everytime I want to edit these users I'm nagged ...
0
votes
1answer
100 views

enable Selected option for a custom field extending JFormFieldList

I am creating a custom field extending JFormFieldList as below Form field is defined as below <field name="reltype_rev_id" multiple="true" type="customfield" ...
0
votes
1answer
92 views

how to add custom field type to user core component?

I need to integrate a custom field in the user component of joomla core that allows me to list some data in a select, I get this data from an endpoint, and because this type of field does not exist ...
1
vote
1answer
127 views

How to programmatically write Joomla article customs field values?

I added some custom fields to the articles of my Joomla website: I work on a custom Joomla module that creates new articles programmatically using the below code: static function createArticle(...
2
votes
1answer
195 views

Get the list of article and related specific custom field value

I need to compose a list for a RSFormPro form field which contains options that display article titles and their respective date from a custom field. In front something like this : Select your ...
1
vote
2answers
1k views

Custom 'dynamic' form field creation

I tried to look around, but didn't exactly found what I was looking for. Joomla have documentation about how to create custom form fields. That was useful, but what I need is (I guess simple..?). I ...
1
vote
1answer
37 views

Extra fields Vs. float numbers

Well, I am trying to develop a simple web system that uses Joomla CMS. The project is simple and becomes from a thought of working with Joomla categories, subcategories, articles and extra fields ...