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-component]

For questions related to custom component development

0
votes
1answer
29 views

How does JFactory::getApplication->input get the input id

I am trying to get the current itemid of an especific menu which calls a custom component. I had a custom component called on the menu with the url /something. Inside of the site model of my ...
1
vote
1answer
20 views

Manually render filter form fields in layout

I am using the searchtools filters in the front end of a custom component. So I am displaying the fields in my template : <?php echo JLayoutHelper::render('joomla.searchtools.default', array('...
1
vote
1answer
25 views

Save failed with the following error: Unknown column 'created' in 'field list'

As I develop the back end manage record functionality of a component, I am getting "Save failed with the following error: Unknown column 'created' in 'field list'" I built the helloworld component ...
3
votes
1answer
41 views

with insert on duplicate key update - updating multiple rows at once

With latest joomla version I try to achieve one query to the database and updating multiple rows at once. I want to make a query like this: INSERT INTO `tablename` (`id`,`date`) VALUES ('79','2018-...
1
vote
1answer
44 views

How to debug an empty Bootstrap error generated by non-empty Tags field in a custom component?

Flowing on from my previous question about writing my first component (now called com_picture) which is nearly an exact clone of the com_contact directory, I have hit a snag with trying to save a new "...
0
votes
0answers
13 views

Limiting Products To Country/Postcode

I have developed an eCommerce website for a client of mine and have ran into an issue regarding particular products. My client sells products that are only allowed to be sold to the postcode in which ...
4
votes
1answer
67 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 ...
1
vote
0answers
29 views

Joomla auto update

Joomla documentation says Joomla has an additional parameter called extra_query in the #__update_sites table. This parameter will be added to the declared download URL However when I add ids = ...
0
votes
1answer
17 views

Multiple templates for the same view of a custom component

In my custom component, I would like to have multiple slightly different templates for the same view. Something like com_things/ ... - views/ - thing/ ... - things/ - tmpl/ ...
0
votes
0answers
9 views

Language associations and modal

In order to setup language associations in the backend of my component, do I have to create a modal type, or there is another way to make it work?
0
votes
1answer
23 views

Field of type contact

In a form of a custom component, how can I add field of type contact instead of type user?
0
votes
0answers
15 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 ...
1
vote
0answers
29 views

Can't run task when there is constructor

I am building a component which will act as a API for a front end and was curious about something. For example if I call the url http://example.com/index.php?option=com_helloworld&task=shout it ...
0
votes
0answers
16 views

Best way to handle a possible duplicate data

I am developing a component where it has multiple users: - Parents - Coaches - Players Parents can login to the site and 'create' a player (which is their child) and check their stats throughout the ...
1
vote
0answers
35 views

“Joomla is not defined” error when logged in - Pagination

Hi we have 2 different custom componenets running on a website (they aren't loaded together, just have the same issue) and they have pagination. We are finding that when clicking on the pagination an ...
0
votes
1answer
24 views

Is it possible to check if a method or function exists in the component controller?

I have a custom component that will be using various AJAX calls, based on outside settings. How can I load "this" controller from the View or Model to determine if a method/function exists, i.e. PHP ...
0
votes
0answers
16 views

Sending frontend data to Private Messaging in Admin

I want to use the Private Messaging function to send form data to the site admins from the frontend of the website and keep send the email alert. I can do it by writing to the data to the relevant ...
0
votes
0answers
53 views

Disable pagination from view

I have 2 view in my backend component view.html.php (display the results) view.raw.php (print the results) In view.html.php, it shows pagination as normal. But in view.raw.php I want to disable ...
0
votes
0answers
144 views

Build a Joomla componenent with React frot end [on hold]

I've been learning React over the past few weeks and would like to take a project I did a few years ago and make it into a Joomla component with React as the front end UI. I've looked around and ...
0
votes
0answers
23 views

Joomla Custom-Component Select Field with Editor [on hold]

I'm trying to make a dropdown box from my table (#__projectinfo) where I can choose, for example, an article and show in an editor ready-to-use, update or save. The objective is to choose an email ...
0
votes
0answers
46 views

How to make Tag Field from joomla in a Custom component

I have this custom component and I just want to replicate the tag field from joomla but in my database #__projectinfo still able to create and choose a tag from the field, but I dont know how to do it,...
2
votes
1answer
77 views

What is the prefered method for sharing code and SQL queries in joomla 3.9+?

I'm developing a component that is targeting Joomla 3.9+. The code is not using the legacy classes and is instead using the new namespaces. The component will duplicate much of the functionality from ...
1
vote
2answers
165 views

Calling Joomla!'s Default 404 Page

I am working on a custom component that displays pages to the user on the front-end. It is possible that a user may try to access a page of the component that no longer exists, and in these instances, ...
2
votes
2answers
326 views

Problems with Custom form field select list

I am attempting to modify code that was created by Component Creator. The modification I am trying to make is to get the select list to save the partno instead of the index value. There are two ...
0
votes
1answer
34 views

Extension Type “File” execute scriptfile tag in manifest

I have declared a XML manifest file for my extension of type file like this: <?xml version="1.0" encoding="utf-8"?> <extension type="file" version="2.5" method="upgrade"> <name>...
0
votes
1answer
24 views

0 Class 'EngineeringHelpersEngineering' not found

I am developing a custom component and when I try to call my view I am receiving this error. The error occurs at: .\components\com_engineering\views\commentform\tmpl\default.php:24 Here is line 23 ...
0
votes
0answers
54 views

passing an array from view to controller to model

I have a component made with Component Creator. I am trying to form an array in the view, pass that array through the controller to the model, and save it to the database via a function in the model. ...
4
votes
1answer
46 views

onUserAfterLogin popup - Joomla 3.6.4 Plugin

I need to create a plugin that displays a popup when an user makes a log in on my Joomla 3.6.4 website. I know that I need to create a Plugin and trigger the onUserAfterLogin event, but I don't know ...
0
votes
1answer
40 views

converting component from Joomla 2.5 to 3.x [duplicate]

I'm trying to convert a component from Joomla 2.5 to 3.x. I can't figure out what I'm doing wrong. The admin component controller has: class PatientinvoicesModelPatientinvoices extends JModelLegacy ...
0
votes
0answers
26 views

How to run joomla component functions from console

I am developing a component and want to create a test file that will load necessary Joomla libraries and then run a function from my class in console. Component directory looks like this: /...
0
votes
0answers
36 views

echo sorting direction without grid.sort on selected column

using JHTML grid.sort I can sort the columns but I want to sort without this <?php echo JHTML::_( 'grid.sort', JText::_('lastName'), 'lastName', $this->sortDirection, $this->sortColumn); ?&...
0
votes
1answer
113 views

Different views on router.php (Joomla! 3.6.4)

I am developing my second custom component for Joomla! 3.6.4 and I have another problem with my router.php. This time I need to dynamically change the view on my router.php but I don’t know how to do ...
0
votes
1answer
54 views

JTable->check() - Save failed with following reason: (with no reason)

In my component's JTable's subclass, I have overridden the check() method to perform my internal checks, when saving an item with my JModelAdmin subclass. So when saving an item, if any of those ...
4
votes
1answer
194 views

Using external library with a component

My component is using phpExcel library; I put it into /libraries/phpexcel/Classes. This is an independent (and quite big) library, so I thought, that it would be wise to tell the admin where to put it ...
1
vote
0answers
199 views

JModelAdmin - save() method. What's the purpose of $table->newTags?

Can someone explain me why in the save method of the AdminModel class, there is the creation of a new $newTags property on the $table? How this new property is used? How is it handled later on by the ...
4
votes
1answer
90 views

Tags filter field - how to add custom “placeholder”?

I have added a tags filter in my component's list with multiple enabled. <field name="tag" type="tag" label="-Select a Tag-" description="Filter by Tags" multiple="...
2
votes
1answer
243 views

JRoute::_('index.php') no longer adds Itemid since Joomla 3.8.4

I have a custom component that handles generates a page containing a list of events, and a page giving details for the event. Previously, I would have one menu item setup to handle the list page: ...
1
vote
1answer
25 views

Using a non-numeric ID in a backend component

In a backend component, I have one table that does not have numeric ID numbers. It is instead indexed on a unique alphanumeric value (think like a list of U.S. territories indexed on abbreviation, e.g....
1
vote
1answer
192 views

Joomla! 3.6.4 router.php for a custom component

I am developing a custom component for Joomla! for the first time and I am stuck on the creation of a router.php. I alredy read the Joomla! Documentation but without clearly understand what to do. ...
0
votes
1answer
126 views

How do I add custom HTML into a menu?

How do I add custom HTML into a menu? I wish to add this code as a menu item. <form action="/your-server-side-code" method="POST"> <script src="https://checkout.stripe.com/checkout.js" ...
4
votes
1answer
166 views

How to implement drag-and-drop ordering in custom component?

I'm developing a custom Joomla component for an application and would like to implement drag-and-drop ordering in a list view on the admin site. I found an excellent guide here: Adding drag-n-drop ...
3
votes
2answers
101 views

How to decide developing a front-end or back-end component?

As we (two volunteers) are going to develop a component with some features mirroring (part of) the processes going on in the (non-profit) foundation, I was wondering if there would be a rule of thumb ...
0
votes
0answers
107 views

Using select / display multiple categories in form in own component

I'm creating a component where I use the formfield category twice to let the user select a maincategry and multiple sub-categories. <field name="subCatIds" type="...
2
votes
1answer
167 views

Creating a Component menu item via a Plugin

I've been reading over Joomla development documentation for awhile, but haven't picked up as much as I would like. What I'm trying to accomplish seems very simple on the surface, but navigating the ...
1
vote
1answer
65 views

J3.8 : create folder on save item in custom component

I've created a custom component in which my client can add and manage different accommodations. I would like to automatically create a folder (with name of Alias) inside '/images' whenever the client ...
0
votes
1answer
27 views

Converting joomla 2x component compatible to joomla 3x

I am updating Joomla component to Joomla 3x but getting error on code. Code Line: $postData = $this->dr_parameters->app->session->get('errorPostData', array() ); Error: 0 Call to a ...
0
votes
1answer
181 views

Making Joomla 2.5 component compatible with Joomla 3

I have component in Joomla 2.5. I am trying to make it to compatible with Joomla 3.x. After few changes in the code, I get an error: Cannot extend from interface JController Then I change the ...
3
votes
1answer
285 views

Can't insert iframe in custom created component tinyMCE field

I'm building my own component, and trying to insert a youtube embed url in a tinymce editor field. However, the editor keeps removing the iframe tags from the text. I followed the recommended ...
1
vote
2answers
608 views

Remove /component/ from URL generated from module for a custom component

I have created a custom component with routing that seems to be mostly correct and have now created a module to display multiple items of the component on the homepage. I have got it to a point where ...
1
vote
0answers
17 views

JToolbarHelper contents disappearing when cache is enabled

I've setup my custom component using JToolbarHelper for navigation, following the standard set by base Joomla components. Each view contains some variation of the following: JToolbarHelper::title(...