We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [custom-component]

For questions related to custom component development

Filter by
Sorted by
Tagged with
1
vote
1answer
35 views

use router.php in simple component

I am having a simple component, basically a list view and a single view. I want to nice URLs so I copy pasted and modified the router.php from com_content like this: class BookstoreRouter extends ...
1
vote
1answer
17 views

Is there a way to remove component media files on update?

In my Joomla component I have a bunch of Javascript files in media that change on update ( basically a compiled Angular app ) and because of the way the system is structured, I need to only have the ...
0
votes
1answer
22 views

Send email upon publish/unpublish of an item in custom component

I have created a hello world component based upon this documentation https://docs.joomla.org/Special:MyLanguage/J3.2:Developing_an_MVC_Component/ I want to send a notification to users if an item's ...
2
votes
1answer
23 views

What is the reason pagination of records its not working?

Following the Developing an MVC Component / Basic backend guide, I can't make the pagination to work, following the instructions this is the code I have, the records are listed properly and the ...
3
votes
1answer
39 views

How to send data with save2copy button?

I'm developing a component. I want to have the save as copy button appear next to each element on my front end list view. I have copied the save as copy buttons html from the edit view of a single ...
1
vote
1answer
42 views

How to maintain a configuration change after Joomla update?

My component hooks into some core Joomla behaviour, adding an extra path that it needs other related components to be able to use. I do this simply by adding it to the global path include ( defines....
0
votes
1answer
28 views

Getting user id of logged in user in component

I'm making my first component and am trying to get the id of the logged-in user and request some data from the model based on that user id. If I search around this would return the current user: use ...
4
votes
0answers
29 views

How can I clear the cache for the params of a custom component?

I am working on a custom component and it works as intended as long as I do not have cache enabled. In the admin section of the component, I have a view that can change the "component params": $...
3
votes
1answer
54 views

Content plugin doesn't add text to articles

I have the following plugin written: defined( '_JEXEC' ) or die( 'Restricted access' ); jimport( 'joomla.plugin.plugin' ); class plgContentModifyArticle extends JPlugin { function ...
1
vote
2answers
32 views

Add Options to {loadedmoduleid ID}

I want to create a module that implements animated icons into my articles. For this I want to use the following icon-pack: https://github.com/icons8/titanic Then I want to somehow write in my ...
0
votes
1answer
23 views

How can I create a custom joomla backend clone that works with the same sessions

I am trying to create a custom backend page in the same layout as Joomla. So none of the buttons have to work since I am going to be writing my own code, the only exception to that is the logout ...
2
votes
1answer
27 views

SEF URL Broken Image Links When Fetching API Results

Using Joomla 3.9.8 I'm using the fetch() api in order to retrieve some data from a remote API. When I have the api results I'm displaying them in html elements. The API returns various values, one ...
4
votes
2answers
63 views

How can I have multiple layouts for a View that are available as a menu option such as &layout=xxx?

I need to be able to specify different layouts of the same View by way of the Menu item, resulting in a url having &layout=blahblah appended. - NOT using a template override. i.e.: index.php?...
1
vote
0answers
11 views

How do I unit test component methods that use the logger?

I have unit tests running for my component (using a bootstrap file to get the usual requirements) but as soon as I add any logging, I get: Class '\Joomla\CMS\Log\Log' not found` I have tried ...
3
votes
0answers
33 views

Joomla and Eventbrite Integration

I am looking for a way to integrate Eventbrite with Joomla. I want to show a list of upcoming events that I have created. There are a number of default widgets available with Eventbrite (copy / paste ...
1
vote
1answer
16 views

What is the best approach to implementing a component that responds to events?

I am working on a Component that will add a set of administrative functionality, which I am fairly confident in, but part of its behaviour will rely on code being triggered by events, which seems to ...
1
vote
0answers
15 views

Selecting the correct menu entry in a self written component

I have the following problem/setup: I develop a custom component in Joomla that has multiple views. The views should have links to each other. If I enable SEF in the global configuration, the links in ...
1
vote
0answers
53 views

Changing default editor in component to tinyMCE

I'm trying to integrate tinyMCE with my component but I'm getting issues with embedding tinyMCE JS and switching it from default. I've tried removing WYSIWYG.attach and replacing ...
0
votes
1answer
39 views

Custom module doesn't work, messing up all page, messing up editor

I am using Joomla! 3.7.5 and JA Builder. I'm trying to create a block with custom module. Once I create it, paste code and assign position, then in page editor add block with widget - position and ...
2
votes
1answer
53 views

How to use HTMLHelper to add to the document head

In this post: How to add CSS/JS/an Image to a module backend @lodder shows me how to use HTMLHelper to add CSS and JavaScript. Previously I had followed the Joomla! documentation https://docs.joomla....
2
votes
1answer
45 views

Adding redirect to redirect component from custom component

Is it possible to add a redirect to the redirect manager from my custom components controller or model? I want my custom component to add a redirect to the redirect manager on deletion of an item. I ...
0
votes
1answer
62 views

Accessing path to tmp directory in my component

How can I access in a custom component the full path to tmp directory configured in the Joomla configuration? I have changed the tmp directory to be outside of the Joomla! installation.
1
vote
1answer
58 views

How to integrate my custom Administrator component with core Joomla database tables during install?

Background: I am starting to package up three associated custom Joomla extensions that I've developed. (This is directly associated with my previous JSE question, if you want more context.) The ...
0
votes
1answer
59 views

Joomla 4 beta - Internal Service Error but no logged error

I've installed Joomla 4 beta 7 for development upgrading a Joomla 3 component. I have my logs (apparently) working correctly and I have test error log messages printing to the PHP error log as ...
1
vote
2answers
42 views

Add the values of two fields together and on save put them in another field

I have made a custom component using https://www.component-creator.com (which made the process really easy). I have two fields that are only there to serve as sums of the other fields. At the moment ...
2
votes
1answer
52 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 ...
4
votes
1answer
262 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
36 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
146 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
28 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
91 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
41 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
146 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 ...
0
votes
1answer
303 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
606 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
143 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
268 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
78 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
200 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
47 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 = ...
1
vote
1answer
55 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
1answer
26 views

Field of type contact

In a form of a custom component, how can I add field of type contact instead of type user?
1
vote
0answers
99 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 ...
1
vote
0answers
108 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
57 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 ...
1
vote
1answer
55 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 ...
3
votes
1answer
90 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
3answers
585 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
999 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
66 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>...