Skip to main content

Questions tagged [component]

Components are the main functional units of Joomla!; they can be seen as mini-applications. An easy analogy would be that Joomla! is the operating system and the components are desktop applications.

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

How to override Breezing Forms Bootstrap 5 quick mode CSS file?

The file in question is components/com_breezingforms/themes/quickmode_bootstrap5/system.css. It has some definitions with !important that I need to remove. I found few potential ways to override it, ...
Destroy666's user avatar
0 votes
1 answer
114 views

How to add a helper class to a component in Joomla 4?

I'm quite new to Joomla. I have a component with multiple different models and views, but a few of them use the same functions. Right now I have those functions copied in every model file, but I'd ...
very_curious's user avatar
1 vote
2 answers
65 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
0 answers
38 views

500 Joomla\CMS\Form\Form::getInstance() could not load file on Multicategories Component

I have a site that I upgraded from Joomla 2.5 to 3.10.12. The previous site is using Multicategories v1.0.4 component, it doesn't work on Joomla 3.10 and there is no update from the Author so I tried ...
lance2k's user avatar
  • 103
0 votes
1 answer
114 views

htaccess QSA not working in Joomla 4

Migrating a Joomla 3 component to Joomla 4 I have problems with getting Apache Server htaccess correctly configured to append query string from request to substituted URL - QSA flag. - It looks like ...
cappu's user avatar
  • 139
1 vote
1 answer
618 views

How to load and render a view of a component from another's component template file?

Note: Question fully updated with the latest findings: I want to load a com_contact contact view inside a template override of an article. I have a contact item id and trying to load the record and ...
FFrewin's user avatar
  • 19.8k
1 vote
3 answers
173 views

Joomla 4 component and custom field

Good day. I created a component using https://blog.astrid-guenther.de/en/joomla-custom-fields-im-frontend-integrieren/ https://blog.astrid-guenther.de/en/joomla-frontend-editing/ When editing an entry ...
antarey's user avatar
  • 35
1 vote
1 answer
79 views

First showon works as expected, all others don't

I have various such pairs in a form: <field name="hasEndDate" type="list" label="Hat Enddatum?" default="1" > <...
SteAp's user avatar
  • 173
2 votes
1 answer
81 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
85 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
3 votes
2 answers
602 views

Invalid controller class: display

I am trying to create a simple component. After installation of the component I get the following error message in the admin view: An error has occurred. 0 Invalid controller class: display I've ...
firecase's user avatar
1 vote
1 answer
394 views

Running a python script within a Joomla 4 component gets return value of 2. How do I get Joomla to run the script successfully?

I'm writing a custom Joomla 4 component, and when I try to run python code within the Model php file to pass to the View, the exec command returns an resultValue of 2. The python code is valid The ...
Vim's user avatar
  • 21
1 vote
1 answer
652 views

500 Layout default not found. (Joomla 4)

I am trying to make a music component for Joomla 4 On the backend, my other forms work fine and the data is stored correctly in the database ( celebrity , album , etc...) In the music form, when I ...
Ali Zangeneh's user avatar
0 votes
2 answers
149 views

PHP if statement to display divs only on first page of pagination Joomla 4

I've spent the past few days trying different variations of if statements to get this working but it's now driving me nuts. What I'd like to do is show a series of divs on the first page of a custom ...
Apatchie's user avatar
0 votes
1 answer
191 views

Custom Component - Frontend Menu Item incorrect link

While creating my Custom Component i'm struggeling now on creating menu items for my views. The views are available via "/index.php?option=com_mycomponent&view=items" or "/index....
Marco's user avatar
  • 685
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
44 views

Discover utility not finding component

I'm developing a component and Joomla can't find it using the Discover utility. This is my component xml file. <?xml version="1.0" encoding="utf-8"?> <extension type="...
Mindaugas's user avatar
  • 157
0 votes
0 answers
145 views

How to use emoji picker plugin from editor in Joomla in a textarea field?

I need to use the emoji picker plugin from editor to add emojis in a textarea field. Is it possible? It's for my chat component: https://extensions.joomla.org/extension/communication/chat/tabapapo/
JonatasCF's user avatar
1 vote
1 answer
115 views

Joomla layout CSS classes in a view into iFrame

In the chat component I developed there is a View inside an Iframe in the Main View. The component's CSS works normally, but I can't use the standard Joomla layout classes. The HTML is sent by the ...
JonatasCF's user avatar
1 vote
1 answer
1k views

404 View not found [name, type, prefix]

I'm currently building a new Joomla! 4 component from scratch by following along a series of blog posts since I am new to Joomla! and its development. I am using Joomla! 4.1.5 Unfortunately I am not ...
pollux's user avatar
  • 31
2 votes
1 answer
102 views

What is the correct way to insert the first category called "Uncategorized" in the categories table in the SQL file during installation of component?

I also need to know if the insert of the table #__content_types is correct and if there is something missing in the SQL installation code. SET time_zone = "+00:00"; CREATE TABLE IF NOT ...
JonatasCF'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
1 vote
1 answer
37 views

admin edit.php saves but doesn't retrieve data from "params" database field

I have a config.xml with some parameters for my component. I need to define these parameters for each individual item. So in admin/models/forms/myview.xml, I've written my fields: <fields name=&...
Alberto Santini's user avatar
1 vote
1 answer
106 views

Is it possible to remove the "new article" button from all sections in a Joomla website?

A mate and I are doing an internship at university, and the project we are working on is a small Joomla 4.1 website. Our supervisors asked us to override the mechanics of content insertion so that an ...
Vincenzo Oliva's user avatar
0 votes
1 answer
228 views

Incorrect Uri::root() with external PHP file

The file /srv/http/components/com_mycomponent/ajax/editAction.php was initialized with https://github.com/joomla/joomla-cms/issues/34586#issuecomment-865080001, except that we use define('JPATH_BASE', ...
toblerone_country's user avatar
2 votes
0 answers
64 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
136 views

Folders inside src/Controller/ folder

I know that you can add a controller into the src/Controller/ folder directly, and Joomla automatically recognizes it as a controller class, and you can route to it using either ?controller=...
toblerone_country's user avatar
2 votes
1 answer
340 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
2 votes
2 answers
219 views

Component/module for registering to get document

I'm looking for a way to have users register their email and then get sent a document, like you often see on sites offering white papers. I've looked at many of the download extensions on the JED but ...
thoni56's user avatar
  • 277
0 votes
0 answers
62 views

In extensions, make the schema update SQL conditional

In the xml install file for an extension for Joomla! 4.0, there are these lines that make the SQL update : <update> <schemas> <schemapath type="mysql">sql/...
user3533235's user avatar
1 vote
0 answers
100 views

Article layout override in J!4

I'm starting to worry about updating my Joomla! 3 to Joomla! 4 (4.0.6 at the time of posting this). In Joomla!, 3 I used a lot the functionality that allows to create article layout overrides by ...
Simon D.'s user avatar
4 votes
1 answer
255 views

Coding Standard Question - defined( or \defined(

A general Joomla! coding question... Checking _JEXEC is defined. In administrator/components/.../src/everywhere it is defined('_JEXEC') or die; use function defined; Whereas in components/.../src/...
mfleeson's user avatar
  • 128
2 votes
1 answer
272 views

Redirect controller function on load, what function do I need to use?

I have a question, and I am a bit confused where i need to put this. I have a controller which is mainly empty: class ControllerProfiles extends Controller { public function &getModel($...
Kuubs's user avatar
  • 345
1 vote
1 answer
1k views

Joomla 4. Call to a member function getTable() on bool

I am adapting the component to the new structure and classes of joomla 4. I started with the admin panel of my component. The list and the edit page are displayed without errors, but when I try to use ...
MaXX's user avatar
  • 181
1 vote
1 answer
249 views

Where do I add php code to submit an HTML form?

I am new to Joomla, and so far, I used the basics to make a simple website. I decided to try out making a component, using JCB, that has a database of a list of items, and for each item, there is a ...
shaded's user avatar
  • 11
1 vote
0 answers
88 views

"404 Component not found" when trying to set an image for a category

I'm experiencing a really weird error in the backend of my site - Whenever I try to set an image for a category or article, the modal that pops up just shows me the Joomla dashboard. When I'm editing ...
D Shaw's user avatar
  • 11
0 votes
1 answer
117 views

Load Plugin Form into Component Form

I'm trying to load a plugin's form into my component form in Joomla4. So my components getForm method is: $form = $this->loadForm( 'com_mycomponent.member', 'memberform', array( '...
Glenn Arkell's user avatar
0 votes
1 answer
190 views

Multiple components on a single page

Is it possible to show multiple components on a single page in joomla? I have 2 menu items, each one shows a different component, i want to show them both on the same page, is it possible?
Frenk's user avatar
  • 3
1 vote
2 answers
46 views

Share code between component templates

In a complex component, there will be a number of /views/viewname/tmpl/default.php (or similar) files. It is quite likely that different views will share common features. Duplicating code is generally ...
mbrampton's user avatar
  • 314
1 vote
1 answer
140 views

How does Joomla 4 decide a component is legacy?

What determines whether Joomla 4 treats something as a legacy component?
mbrampton's user avatar
  • 314
1 vote
2 answers
52 views

Is there a way to FTP a particular component between joomla sites

I've been working with wordpress for so many years, and I've just been tasked with helping someone fix their joomla site. For some reason they didn't want to copy over the whole site to a dev ...
Tom N.'s user avatar
  • 31
2 votes
2 answers
324 views

Select articles to display in custom component

I have a custom component where I was to be able to select other articles to show in the frontend. I have thought the best way to do this would be through the SQL field. This is good that it gives me ...
RustyJoomla's user avatar
  • 2,078
2 votes
3 answers
672 views

Where to read about Joomla 4 convention for class names

In a few answers on JSE and looking at the Joomla 4 tutorial on building a new component, I have noticed that the convention for class names appears to have changed, dropping the <component_name>...
Irata's user avatar
  • 4,126
0 votes
1 answer
132 views

Trying to add subform field to existing component xml

I've added the following into my components XML file : <field name="activity_name" type="subform" label="Activity" description="" multiple="true&...
RustyJoomla's user avatar
  • 2,078
0 votes
2 answers
66 views

Run model function in view file to insert default value into sql

I am new to Joomla and received a half-done component. It is a mostly database-dependent component. The component consists of a SQL file that inserts all the data and is able to display it. I am ...
Marcin Sypniewski's user avatar
1 vote
2 answers
2k views

Best practices for Joomla - Get another model in a view from another controller

I need to get data from another model than the view specific controller/model into the view. But I'm not sure if the way I'm doing it now is correct. I do that via the following way in the view.html....
Kuubs's user avatar
  • 345
1 vote
2 answers
156 views

Getlistquery Joomla conditional values

So I have a query in the getlistquery method of my model, except that it relies on data in another table, that sometimes is not filled. This gives me an error when that other data is not available. ...
Kuubs's user avatar
  • 345
1 vote
1 answer
431 views

JTable, new row doesn't get inserted with table->save method

I'm trying to insert a row with the table->save() method, but the method executes an UPDATE instead. There is no row available, so it needs to be inserted. Does anyone know how to get it inserted? ...
Kuubs's user avatar
  • 345
2 votes
2 answers
855 views

What is url for calling task in controller for Joomla 4?

This is my ajax query for calling a task in the controller (it works for Joomla 3 but doesn't work for Joomla 4): $.ajax({ type: "POST", url: "index.php?option=com_scrib&...
waxman's user avatar
  • 21
0 votes
0 answers
248 views

An error has occurred. 1062 Duplicate entry '0' for key 'PRIMARY' Return to Control Panel?

I have been trying to add a new post from few days using the EasyBlog component in my Joomla 3.9.24 site, but I am getting anerror after clicking the add new button from the Joolma backend. I can't ...
manikanta gowda's user avatar

1
2 3 4 5
11