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
13 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
64 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
17 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
32 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
42 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
24 views

Joomla 3 - How to pre-select an option using getOptions() in JFormFieldList?

I have a custom field type which is a select multiple. I'm doing this using getOptions() which works perfectly. However, I want to be able to pre-select one or more of the options. Can this be ...
0
votes
0answers
42 views

Use custom field on category blog layout

I need to use a custom field on the category blog layout page. So basically I've made an override of "com_content/category/blog.php". Here I want to render specific custom fields that I've created. ...
4
votes
1answer
86 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
29 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
16 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
19 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
48 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
54 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
177 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
551 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
171 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
50 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
166 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
38 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
19 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
7 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
36 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
70 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
174 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
51 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
118 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
111 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
25 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
302 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
82 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
359 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
230 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
70 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
256 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
210 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
564 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
228 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
969 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
299 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
326 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
315 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
773 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
149 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
489 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 ...
5
votes
3answers
512 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 ...
5
votes
1answer
369 views

How to save data from subform fieldtype in joomla 3.7 custom field

I made a subform repeatable fieldtype custom field plugin to integrate with the custom field extension in 3.7x, and it works correctly to display the the fields during article submission. However, the ...
0
votes
0answers
159 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/...
3
votes
2answers
5k views

Getting custom fields and their values (com_fields)

I started working a project on the upcoming 3.7 version, using the com_fields. I have created an article and a category level group of fields. The idea is that I want to use the category level fields ...