Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [custom-field]

The tag has no usage guidance.

0
votes
1answer
14 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\...
1
vote
1answer
22 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
57 views

Which Custom field is better?

Which field is better for displaying code like below? Textarea or editor field ? I'm currently using Textarea I want to know which method is better and will affect the speed of the site Does anyone ...
0
votes
1answer
50 views

How do I get of joomla's custom field group and its content

How do I query the joomla custom field group and its content (if it exists)? I want the content of field groups to be "implemented" in the joomla's template com_content/article/default.php file. My ...
0
votes
2answers
38 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
1answer
54 views

Add layout for custom field

How can i add an additional layout for repeatable.php of the custom fields in my template? So i want to create repeatable_image.php and make it available in layout render option of the custom field. ...
0
votes
1answer
40 views

Retrieve values from a custom field in Joomla 3.8

excuse for my English. I try to retrieve my value from a custom field in com_categories. I added this field by a plugin. My value is correctly saved but i don't why, i can't retrieve my value from ...
1
vote
1answer
98 views

Custom Fields inside module override

I am using this code inside a module override that render articles, to show the custom fields: <?php $id=$item->id; $db = JFactory::getDbo(); $query = 'select * from #...
0
votes
1answer
18 views

Group of fields for different group of users

I have custom field "Client type" in registration form, which I created in Users->Fields. Already I have next usergroups: Registered Subgroup of Registered - Human Subgroup of Registered - Company I ...
1
vote
1answer
43 views

How can I add custom user field values to an article?

I have created a custom user field named "Gender". How can I show this field in an article? I can only manage to show: username, name, email and User Id Here is my current Sourcerer code to access ...
3
votes
1answer
64 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::...
4
votes
1answer
112 views

How to generate a dynamic note field for a custom component?

I am attempting to develop my first custom component called com_image. Because of the structure and function of my project requirements, it made best sense to clone the com_contact folder and ...
0
votes
1answer
35 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
0answers
18 views

Create user / category on new item in custom component

I need some help and ideas to achieve the following scenario. In the administration when adding new item in my custom Joomla 3 component I need to link the item to a specific user. The user will not ...
0
votes
0answers
29 views

Use a field on administrator side to set a value on the frontend

What I want to do is to create a back-end field through which I can set the default value of a front-end hidden field. I have successfully created the back-end field, The xml code is as follows: <...
3
votes
2answers
58 views

How can I output each item of a multiple list custom field

print_r($item->jcfields); Array ( [1] => stdClass Object ( [id] => 1 [title] => Specialisms [name] => specialisms [checked_out] ...
0
votes
1answer
72 views

How can you call custom fields in an override for com_contacts

In com_content I can call my fields one by one as follows <?php echo $this->item->jcfields[3]->value; ?> The same code does not work in com_contacts. How can I call the fields in a ...
2
votes
1answer
211 views

Custom Fields in a module with a repeatable field

I'm trying to create a module which will display a list of custom fields and allow me to place one or more in that module. module.xml <fields name="params"> <fieldset name="...
0
votes
2answers
729 views

How to add placeholder to input field via php variable

In my login form, custom layout fields are displayed by the $field->input variable. Unfortunately, those fields are displayed without the placeholder attribute. Is there any way to add this ...
1
vote
2answers
248 views

How to show article's custom fields in the header of the page?

I am using Jommla's default Protostar template. I have custom fields for articles and I want to show this custom field in the header of the page, not inside the article. How can I achieve that?
2
votes
2answers
54 views

Custom form field types unavailable in plugin backend when plugin disabled

I've created a plugin and added a couple of custom fields to its backend. For that I followed the indications from the Joomla docs. I extended for example JFormFieldList to get a dropdown list of ...
0
votes
0answers
188 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
50 views

Joomla custom fields let a user add their own options

Joomla has custom fields, but I want something more. If I add a field, lets say: colors to a category. Is it possible somehow that a user can open an article, and add his own options? In this case ...
1
vote
0answers
24 views

Extended tag field joomla article custom field

I have some joomla custom fields in articles. But I need 3 custom fields that should behave like the joomla "tags" so that, besides selecting from the options available, the user can also insert a new ...
0
votes
0answers
8 views

Custom fields depending on admin menu

I'm making a site to manage info related to a small library and a glossary. The information manager will access joomla with a user/pass and he'll see 2 menu items: - library - glossary Library and ...
1
vote
2answers
39 views

Custom fields “on demand”

I've got an article that's a simple event. I don't need any event management extension because I used joomla custom fields to associate to each event some info like speakers, date, .... One info ...
0
votes
1answer
76 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 ...
0
votes
1answer
33 views

How could I make Joomla! fields as a function

<?php // Turn fields from array numbers into field names. I usually stick this in the head somewhere. foreach($this->item->jcfields as $jcfield){ $this->item->field[$jcfield-&...
1
vote
1answer
239 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
0answers
58 views

Form submission on joomla module backend

Created a module and added a form on backend with submit button using custom form field as below public function getInput() { return '<form action="http://localhost/joomla/payment" method="...
0
votes
0answers
130 views

Joomla: Pagination in custom form field on module back end

I created one module to list data from database and to show the data in table format I chose custom form field. Now I'm trying to add pagination to that table. defined('_JEXEC') or die; jimport('...
0
votes
1answer
140 views

Custom fields don't render plugin shortcode

I am using custom fields introduced in Joomla 3.7 as a way to structure articles in my Joomla 3.8.3. installation. One of my custom fields contains shortcode to be rendered by another plugin. But all ...
1
vote
0answers
26 views

Seeking Joomla module to display selected articles and their fields

Seeking for a module similar to DisplayNews with advanced functionality. I need to modify the display template in such way that it shows specific Joomla Fields of the articles selected. Here is a ...
1
vote
2answers
393 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
2answers
91 views

Make an ajax request on submit on register page with custom fields

I'am on Joomla! 3.8.3, on the register form i have added some custom fields. I want when the user submit the form, make a check on one custom field to check if the value entered is in the list of ...
0
votes
2answers
439 views

How can I call custom fields in a blog view?

If I do print_r($this->item->jcfields) I see the array. But when I try to call it in the usual way nothing aooears. Does anyone know how to achieve this? They don’t appear in Params obviously. But ...
3
votes
2answers
253 views

Custom Form Field not working

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/...
1
vote
1answer
74 views

How to get article id on BT CONTENT SLIDER?

I have a BT CONTENT SLIDER module on main page of my website to show a list of 3 articles from category called "News" on main page. I would like to read custom params of that articles shown on that ...
3
votes
1answer
311 views

How to select predifined options in an custom form list-field?

i'm trying to pre-select several options in a custom form field. I created a new JFormField which extends JFormFieldList and gets its values from my database. This is my current code: protected ...
1
vote
1answer
228 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 (...
3
votes
3answers
608 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 ...
5
votes
3answers
2k views

Joomla custom fields in Category List

With Joomla 3.7.x article custom fields have finally gotten part of Joomla content. However, I would like to ask how I can render these Custom Fields in the Joomla Category List? Adding custom ...
1
vote
2answers
243 views

Event for saving Custom Fields data? Or before save

I am looking for the event is triggered when saves or just before the com_fields custom field saves the data? Also, is there any where I can find the list of all com_fields event trigger the ones I ...
3
votes
1answer
1k 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?
2
votes
1answer
315 views

Accessing current users custom field

I´ve added a custom users field (called "test"). Now I want to call the value of this custom field for the current user who is logged in. In the mysql databse I see the custom field under _fields. So ...
1
vote
1answer
377 views

renderField with fields from custom plugin

I need to expand the functionality of the registration form. Following some tutorials and the sample profile plugin I was able to use the onContentPrepareForm to add the new fields. Now the second ...
0
votes
1answer
336 views

Display ReCaptcha field after Joomla 3.7 user custom fields

I added some text custom fields to the user registration form. Joomla 3.7 allows users to easily add custom fields to various components, this is a nice feature. However I'm unable to figure out how ...
3
votes
2answers
852 views

Joomla 3.7.x PHP API set value of custom user field

I'm writing a PHP script that goes through the users, and reads and writes some custom user fields. The reading part is done, by the use of the FieldsHelper. It works nicely. However, trying to write ...
1
vote
1answer
171 views

Joomla media extra field without Alt tag

I've created an additional media field to include in some articles, and I noticed that the ALT and Title attribute for the media field can not be set to the image. I need suggestions for an override ...
1
vote
1answer
533 views

Create thumbnails with custom field images

I have articles with custom fields type media. I need to create thumbnails from these images with a fixed widths (1200px, 700px, 450px and 250px) to display with the picture element and on different ...