Skip to main content

Questions tagged [custom-component]

For questions related to custom component development

Filter by
Sorted by
Tagged with
0 votes
0 answers
4 views

add dropdown menu in a plugin

I developed a plugin that displays several records from DB for the user. It is working fine, but now I'm trying to implement check-boxes and Actions menu like Joomla 4 has on the Users-Manage screen. ...
Terry's user avatar
  • 101
0 votes
1 answer
38 views

Component with a module included - JED Checker

I recently ran all my components through the JED checker to bring them up to speed with J6 in mind. Some of my components have a module and/or plugin included in the main component manifest which has ...
Glenn Arkell's user avatar
0 votes
1 answer
23 views

J5 - Utilising com_fields in component

I'm lost with utilising com_fields in my component so that my users can create a custom field for a specific purpose and have it rendered in a modal popup. So I have my component setup with a ...
Glenn Arkell's user avatar
0 votes
0 answers
17 views

Joomla component detail view error: 404 Could not load the item

I have a table named edu2f_jobs_jobs. This table is received here: public function getTable($type = 'Job', $prefix = 'Administrator', $config = array()) { return parent::getTable($type, $prefix, $...
Jelle's user avatar
  • 1
2 votes
1 answer
52 views

Add Tags Feature to Custom Component

Knows someone a good guide on how to implement the TAGS feature into a Custom J4/5 Component? I have this information from Astrid's Book on how to develop J4 Components but it looks not fully correct ...
Marco's user avatar
  • 685
1 vote
2 answers
70 views

Best way to save timestamp for new or modified records in custom component

In my custom component I have two database tables for items in my component with the standard 'created' and 'modified' datetime columns to contain timestamps when those items are created or modified. ...
Grant Hood's user avatar
1 vote
2 answers
64 views

For how long will legacy component MVC structure work in Joomla?

Legacy component MVC structure: com_foo |- controllers | |- foo.php |- helpers | |- foo.php |- models | |- forms | | |- foo.xml | |- foo.php |- views | |- foo | | |- tmpl | | | |- default....
mavrosxristoforos's user avatar
0 votes
2 answers
58 views

Store Custom Subform Field Value in DB

Note This is a follow up question upon Create Custom Form via SimpleXMLElement The first issue has been solved, the subform gets rendered, here is my CustomField Code: use Joomla\CMS\Factory; use ...
Marco's user avatar
  • 685
0 votes
0 answers
19 views

Custom Component - Cannot switch category after implementing Custom fields

Another weird issue in one of my comppnents i did not understand. I have implemented custom categories by using com_component.teams and com_component.locations - Additionally. it works all fine until ...
Marco's user avatar
  • 685
0 votes
1 answer
56 views

Custom Component Error on Save / Edit: Save failed with the following error: Prepared statement needs to be re-prepared

I have here a really curious issue in Joomla 5.0.0 on a custom component I'm building right now. In one of the views i cannot save edits on existing elements (create new elements is not an issue at ...
Marco's user avatar
  • 685
1 vote
1 answer
344 views

Export as Excel with PHPSpreadsheet as download how to keep Joomla Messages?

In my custom Joomla 5 component I've added PHPSpreadsheet via composer. In the Export View (Backend) i have a small adminform for setting up the export and a submit button that toggles the download by ...
Marco's user avatar
  • 685
0 votes
0 answers
56 views

J5. Activate Tab key and Indent in Codemirror in custom component

Codemirror v6 looks like not so easy to configure as previous versions. In my custom component I get codemirror editor with this code who use for options sintax like v5: $editor = Editor::getInstance('...
Peli's user avatar
  • 103
0 votes
1 answer
68 views

How to use Joomla.listItemTask in Custom Component

Hi i need an example on how to implement a simple on / off toggler in a Joomla 4/5 Custom Component's list view. I've tried the following code but i did not get any reaction in the model / idk how to ...
Marco's user avatar
  • 685
0 votes
1 answer
167 views

how to update item by using ajax on custom component joomla 4

Dears My component was a bit old. So I started to do it again on joomla 4. I have been looking for a few days, how to update or create data items by using Ajax in joomla 4. i found a lot of feedback ...
Nicolas AZHAR's user avatar
0 votes
1 answer
23 views

Set Field Value in Custom List field that is used inside a extended SubformField Class in Multiple Mode

My brain hurts, I'm using a custom listfield inside a subform in multiple mode, the rendering works as expected (two elements in database > two elements in the form). but i'm not able to set the ...
Marco's user avatar
  • 685
0 votes
1 answer
176 views

Joomla 4 Custom Component > Custom Fields Integration

I'm curently developing a (free) Custom Joomla 4.x component. Now im struggeling while implementing Custom Fields support for my first (and currently only) context. The issue is that the "Fields&...
Marco's user avatar
  • 685
0 votes
2 answers
111 views

J4 Component: Add Modified By and Modified On Database Record when using JForm and an AdminModel Model

I am creating a new Joomla J4 component for my website. I have previously created components in J3 using Akeeba's Framework on Framework. For J4 I'm working to learn how to create a J4 MVC native ...
mb87's user avatar
  • 3
0 votes
0 answers
56 views

How to resolve the Internal Server Error with my custom components calendar in Joomla 4?

I try to make a custom calendar in my custom component in Joomla 4. For that I write a code who connect to a database and retrieve the data. For that I have 3 files : default.php, ...
Sephirah's user avatar
1 vote
0 answers
35 views

Different results on localhost than on remote site

I get the following error on my remote site (hostgator), but not on my local localhost site. It only happens for the component I am developing, not for the native banners or contacts components.  ...
Vogrod's user avatar
  • 11
0 votes
1 answer
142 views

Joomla 4: Adding category parameter(s)

How do I get the solution for this https://stackoverflow.com/questions/18975896/adding-category-parameters to work on Joomla 4? My extension includes various categories, which I've named "[...
Alexandre Paulo's user avatar
1 vote
1 answer
82 views

How to register {my namespace]\Site\Service\Category?

My component is using Joomla Categories and I'm using the following code to fetch a category: $component = Joomla\CMS\Factory::getApplication()->bootComponent('com_khub'); $category = $component-&...
Alexandre Paulo's user avatar
2 votes
1 answer
78 views

Error: The form "adminForm" is required to perform the task, but the form was not found on the page

I'm developing a component. At admin at the list of item, I get this error when I click on the + New button: [Error] Error: The form "adminForm" is required to perform the task, but the form ...
SteAp's user avatar
  • 173
1 vote
2 answers
82 views

Link to component appears empty

I created a simple component, which appears as expected at the admin side. If I link the component using a menu item, everything seems to be finde. Component appears in selector, component's views ...
SteAp's user avatar
  • 173
1 vote
0 answers
48 views

Joomla 4 not unzipping custom component update package

I have developed a custom Joomla 4 component called "com_news" and successfully implemented the update functionality before. However, now I am encountering an issue where Joomla can't unzip ...
DeesreX's user avatar
  • 87
0 votes
2 answers
462 views

Joomla 4 Upgrade issue with custom component

I have a custom component that I've inherited. I've upgraded the site to Joomla 4 with no problems but when going to the frontend, am getting an error: Fatal error: Class CloudCardModelCard contains 1 ...
RustyJoomla's user avatar
  • 2,078
1 vote
1 answer
30 views

Display only one Category and its sub-categories

I have created a custom filter.xml to search for specific documents. Using Joomla's category system, I have also create 3 main categories. Courtrolls, Newsletter and communique. In my filter form, I ...
DeesreX's user avatar
  • 87
0 votes
1 answer
165 views

Custom component categories missing after upgrade from 3.10 to 4.x

I have a custom component that integrates com_categories in it, after upgrading from joomla 3.10 to 4.x, and fixing all the errors of my component on joomla 4.x, when accessing the categories menu, ...
pdutie94's user avatar
4 votes
0 answers
851 views

(4.1 -> 4.2) Attempted to load class TemplateComponent from namespace Joomla\Component\Administrator\Extension calling $app->getTemplate

I have a file test.php that manually loads the Joomla framework and prints template parameters. <?php // test.php, located in the same directory that index.php is define('_JEXEC', 1); define('...
toblerone_country's user avatar
0 votes
1 answer
65 views

How to return Http 401 on Joomla Administrator for an unauthenticated user?

everyone How can I have /administrator/index.php?option=COM_MYCOMPONENT&controller=MYCONTROLLER&task=MYTASK return a "401 Unauthorized" HTTP error instead of redirecting to the ...
Alexandre Paulo's user avatar
0 votes
0 answers
43 views

How to build an Imagefield like string in PHP

I want to use Joomla's way to handle images in my component. My component offers a field to select a folder where some images are stored (used as gallery upon the related item). In dev everything ...
Marco's user avatar
  • 685
0 votes
1 answer
51 views

Proper way to access Component config from API?

I am building a custom admin component for Joomla!4 that includes an API. To access the component's config I am using, on the API Controller file: $params = ComponentHelper::getComponent('...
Alexandre Paulo's user avatar
1 vote
1 answer
57 views

Custom J4 Component - Multiple Models & Different Category "Groups"?

I have a Custom J4 Component that should have different types of contents. So called "items" and "packages". The items are done so far and using the default J4 categories via "...
Marco's user avatar
  • 685
0 votes
1 answer
29 views

Custom J4 Component Problems with Multilingual Associations: Edit Associations

I've on the way to create my first native J4 Component by using Astrid's Tutorial (Link) - I've already figured out that some of the code parts are not fully J4 conform, but i was able to "update&...
Marco's user avatar
  • 685
1 vote
1 answer
96 views

Backend modal toolbar button that gets activated when list item selected

Creating a Toolbarbutton which needs a selected list item for dropdown: $childBar->standardButton('delete')->icon('icon-arrow-right')->text('delete')->task('delete')->listCheck(true); ...
maidan's user avatar
  • 443
2 votes
1 answer
688 views

J4 component URL not SEF

Context: I have a component that works fine in J3 and I want to migrate it to J4. Problem: When I create a menu (Joomla main menu) on the frontend view of the component, in J4 only, the URL is not SEF ...
Yann's user avatar
  • 41
2 votes
3 answers
373 views

How to create a (better) development environment for Joomla 4

I have been writing a custom joomla 4.x component. It's not working. But rather than getting people here to debug my code I want to know how to set up a proper development environment that will give ...
Huw Evans's user avatar
  • 371
0 votes
0 answers
21 views

modal popup just after login

I am new to the Joomla world and I have to face a difficult problem. I have to make sure that immediately after logging in to the user, a modal popup with a select box is proposed. The content of the ...
Muflo's user avatar
  • 1
2 votes
2 answers
54 views

Custom admin menu creation - parent_id and level values are resetting to zero

I want to programmatically create some admin menu items for my component and I'm most of the way there, but I can't seem to set the hierarchy for them. I am wanting three menu items - one as the ...
Grant Hood's user avatar
2 votes
1 answer
219 views

How does a custom component store config.xml information

I've been developing a custom component on Joomla 4 for a few months now and I've finally got round to working on the access and permissions side of things. Whenever I try to access the Options for my ...
Grant Hood's user avatar
2 votes
1 answer
245 views

Joomla 3.x routing and slug problem

I have 1 component with 2 views - default is view1 - secondary is view2. When I associate it with the menu from the backend, Joomla creates the correct url with alias for SEO. Example: www.sitename....
Orazio D'Arrigo's user avatar
0 votes
2 answers
253 views

How to set error in component code for FormController

I'm creating a custom J3.x component. I'm manually adding my own error notices where needed via JFactory::getApplication()->enqueueMessage() However, when a record is not saved by my component, ...
Chris Paschen's user avatar
1 vote
1 answer
61 views

What is the best way to have pages displaying articles from our custom content table in Joomla 4.1?

Related: Is it possible to make it so that authors can edit their own published articles creating a new unpublished version of them? The answer to that question is "In Joomla 4 it is, but authors ...
Vincenzo Oliva's user avatar
3 votes
1 answer
33 views

Is there a functional reason for the naming convention for custom actions?

I'm writing a component for which I'd like to implement some additional restrictions on actions. For example, I want administrators to be able to view user details, but restrict some sensitive ...
Sokkensoepje's user avatar
0 votes
1 answer
37 views

URL doesn't recognize view after slash in custom component

The view in my custom component is no longer recognized in Joomla4 when passed as, for example, mycomponent/view/anotherinfo. In Joomla3, this worked normally. What happened? What do I need to change ...
David Ribeiro's user avatar
1 vote
0 answers
29 views

Create a public controller method

I have a controller method that outputs some JSON which should be publicly accessible index.php?option=com_mycomponent&task=mycontroller.json&format=json If I set this as a System > URL ...
justrusty's user avatar
  • 131
4 votes
3 answers
846 views

New files in Joomla 4 components

In Joomla 4 there are new files in the components, like: services/provider.php Extension/XxxComponent.php Service/HTML/AdministratorService Are there available documentation about how to implement ...
framontb's user avatar
  • 247
2 votes
0 answers
63 views

Authenticate Http request

I'm trying to POST from one controller method to another with the Http class. $http = new Http(); $url = Uri::base().'index.php?option=com_mycontroller&task=my_method'; $response = $http->post($...
justrusty's user avatar
  • 131
1 vote
2 answers
44 views

Forwarding to the item page after the creation of the item via front end editing

I wrote a small joomla 4 component and made it possible to create a new item in the frontend. After creating a new item, Joomla core components usually redirects to a list view. But I want to redirect ...
agi's user avatar
  • 313
2 votes
1 answer
333 views

How to get Joomla article association?

How can I get the associated articles programmatically in my custom component function? I have my custom component and I am creating a new article for a multilingual site, so I need to associate ...
Sagar Shah's user avatar
1 vote
0 answers
31 views

Retrieving state variables using Ajax in 3.10.4

I have a site which displays a directory of registered users on the frontend. I've allowed users to select topics of interests when they're registering. In the directory they then can search by names ...
chavab_1's user avatar
  • 195

1
2 3 4 5 6