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

1
vote
1answer
42 views

Joomla 3.9.1 publish/unpublish no longer working (custom components)

I've recently upgraded my joomla site to 3.9.1, and now my custom components publish/unpublish buttons aren't working and I can't figure out why. The database column is called "state" and this is the ...
2
votes
1answer
30 views

Add Database result As a Select Option

I'm creating a Joomla 3x SP Pagebuilder3 addon, but I'm having a bit of challenge getting a database results as an option in a select type. This is what I've done so far. class MyCustomTypes { ...
1
vote
2answers
31 views

How to hide grey 'button bar' in administrator component view

Is it possible to hide the grey bar where buttons would normally go in an administrator view of a custom component? The grey bar shown below: I have no buttons to show, so don't want it to take up ...
0
votes
1answer
25 views

How to create 2 menus inside one component view

I've create a component called testComponent with a specific view called collection which needs to have 2 layouts the default.php and the list.php. I need to make both default and list as menu items ...
1
vote
1answer
35 views

SQL Error when updating custom component in Joomla 3.9

I have a custom component and I want to add language filter to my extension. So in my sql update file I added the following two lines to Alter my tables. ALTER TABLE `#__contract_contracts` ADD `...
1
vote
1answer
23 views

Adding multiple Models into a component.

in my component Centros I have the view and model for Hospitals, working fine. I want to call a general model. general.php located in the models folder. class CentrosModelGeneral extends JModelItem ...
1
vote
1answer
34 views

Custom header content depend on article

I am wondering is it possible to have different headers depending on the different articles? e.g article ID 1 shows header A and article ID 2 shows header B. Currently I have modified the template ...
-1
votes
1answer
37 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
54 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
39 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
65 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
47 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 "...
4
votes
1answer
103 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
32 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
21 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
15 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
25 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
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 ...
1
vote
0answers
38 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
46 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
31 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
68 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 ...
1
vote
0answers
30 views

Joomla Custom-Component Select Field with Editor [closed]

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
51 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,...
3
votes
1answer
82 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
251 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
442 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
40 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
35 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
62 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
49 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
45 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
28 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
48 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
152 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
68 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
262 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
240 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
97 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
302 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
229 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
167 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
186 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
107 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 ...
2
votes
1answer
194 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
72 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 ...