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
1 answer
71 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
171 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.6k
1 vote
3 answers
114 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
62 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
  • 163
1 vote
1 answer
49 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
  • 163
1 vote
2 answers
58 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
  • 163
0 votes
0 answers
29 views

Drag-and-drop - what is the value of "data-draggable-group" for?

I've been building a Joomla 4 component, and have been looking to add the drag-and-drop re-ordering functionality. I have been doing this by looking at how the core components achieve it. I managed to ...
RichardB's user avatar
  • 3,072
3 votes
2 answers
411 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
0 votes
0 answers
40 views

How To Install And Set the path to FFMPEG in EasySocial Joomla Component

How can I install FFMPEG for EasySocial Joomla Component and then set the path to FFMPEG in EasySocial Settings Video Section? We are using Laragon Local Server. PHP: 7.4.33 OS: Windows 10
Saeed Ghofrani Jahromi's user avatar
1 vote
1 answer
264 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
431 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
125 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
116 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
  • 583
1 vote
1 answer
52 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
  • 583
0 votes
1 answer
38 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
107 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
107 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
782 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
95 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
59 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
34 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
100 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
170 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
62 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
118 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
284 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
214 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
40 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
63 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
239 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
195 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
  • 171
1 vote
1 answer
208 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
77 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
92 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
155 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
38 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
126 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
51 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
1 answer
185 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,076
2 votes
3 answers
619 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
  • 3,597
0 votes
1 answer
123 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,076
0 votes
2 answers
65 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
1k 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
140 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
350 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
698 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
231 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
0 votes
2 answers
47 views

Which content is generated first? component or module?

I have a page with modules and components from the same extension. I made some customizations to the component's template file so when the page loads it gets the current user's avatar from some ...
shenkwen's user avatar
  • 1,379
0 votes
1 answer
31 views

Interaction between two different components

I am building an online forum with EasyDiscuss. In a social login component, I am able to get user avatars from Facebook/Google. Now I want to save these avatars to EasyDiscuss users. EasyDiscuss has ...
shenkwen's user avatar
  • 1,379

1
2 3 4 5
11