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
3 votes
2 answers
136 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 ...
0 votes
0 answers
18 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
1 vote
1 answer
79 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 ...
  • 21
1 vote
1 answer
142 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 ...
0 votes
2 answers
62 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 ...
0 votes
1 answer
40 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....
  • 525
1 vote
1 answer
30 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 "...
  • 525
0 votes
0 answers
66 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/
1 vote
1 answer
80 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 ...
1 vote
1 answer
344 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 ...
  • 31
2 votes
1 answer
79 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 ...
1 vote
1 answer
55 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 ...
1 vote
1 answer
29 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=&...
1 vote
1 answer
84 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 ...
0 votes
0 answers
45 views

Get IP and Country of user who downloads a file

I've written a component for downloading files from my website and it also writes data to the database about the downloading of files. To understand where the downloading users are from, I want to ...
  • 1
0 votes
1 answer
84 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', ...
2 votes
0 answers
57 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($...
  • 131
1 vote
2 answers
74 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=...
2 votes
1 answer
187 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 ...
2 votes
2 answers
124 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 ...
  • 267
0 votes
0 answers
26 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/...
1 vote
0 answers
17 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 ...
4 votes
1 answer
217 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/...
  • 128
2 votes
1 answer
149 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($...
  • 345
1 vote
1 answer
656 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 ...
  • 131
1 vote
1 answer
151 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 ...
  • 11
1 vote
0 answers
57 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 ...
  • 11
0 votes
1 answer
63 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( '...
0 votes
1 answer
106 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?
  • 3
1 vote
2 answers
34 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 ...
  • 292
1 vote
1 answer
99 views

How does Joomla 4 decide a component is legacy?

What determines whether Joomla 4 treats something as a legacy component?
  • 292
1 vote
2 answers
48 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 ...
  • 31
2 votes
1 answer
101 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 ...
  • 2,066
2 votes
3 answers
502 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>...
  • 2,845
0 votes
1 answer
109 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&...
  • 2,066
0 votes
2 answers
61 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 ...
1 vote
2 answers
940 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....
  • 345
1 vote
2 answers
101 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. ...
  • 345
1 vote
1 answer
229 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? ...
  • 345
2 votes
2 answers
385 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&...
  • 21
0 votes
0 answers
198 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 ...
0 votes
2 answers
40 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 ...
  • 1,369
0 votes
1 answer
29 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 ...
  • 1,369
3 votes
1 answer
89 views

Techjoomla's API Module

I am trying to write a plugin to use Techjoomla's api component on my Joomla 3 site. Their documentation gives sample code which I am altering to fit my needs. I am trying to make a very basic API ...
  • 351
1 vote
1 answer
38 views

Doesn't find the component id when creating menu items during postflight step when installing a component

I'am working with the last git changes of Joomla 4.0. In my component, i create the menu items for frontend part during postflight step when installing a component. The issue is that isn't able to ...
2 votes
1 answer
45 views

Using ProFiles Joomla Web Filemanager - it runs only with administrator rights

I want to use the Joomla component "ProFiles". I want to setup a usergroup which can up/download files. How must iI implement the call to the component - the way I'm doing it is as follows: ...
0 votes
1 answer
27 views

Is Joomla a correct choice for a social medium with rankings of products?

I'm thinking about creating a certain website and I'm not sure if Joomla is a tool I could use and would be one of the best choices. I would like to create something like https://www.imdb.com/ , i.e. ...
  • 101
0 votes
1 answer
80 views

Set Joomla cookie via cURL from external website

I'm trying to set up a cookie in Joomla from an external website using cURL. The process flow is as below: User does an action in external.com external.com cURL a URL in joomla.com joomla.com sets ...
  • 1
1 vote
1 answer
31 views

Install component via FTP, copy component from one installation to another

I have a weird and unfortunate situation. I use a certain component which the creator of it retires due to stage four cancer. This means that I cannot download the component anymore, but I do have the ...
  • 345
2 votes
1 answer
710 views

Joomla 3.9.19 get the constants from global configuration in component display function

I have created a component and need to get a constant value in the component administrator and list the item according to it. I have tried different ways to get the constant value in the display() ...

1
2 3 4 5
11