Questions tagged [joomla-4]

For questions regarding version 4 of the Joomla Content Management System.

Filter by
Sorted by
Tagged with
1
vote
0answers
53 views

Joomla 4 template namespace

I'm working with latest Joomla 4 beta, and wondering how can I use namespaces with templates so I can start using and developing custom fields for my templates. I need to know what should I set in the ...
1
vote
0answers
68 views

Namespace class of component not found in script.php during clean install of component

in file script.php of component made for Joomla! 4.0-beta2-dev the namespace isn't found : Class 'Kunena\Forum\Libraries\Install\KunenaModelInstall' not foundClass The changes in script.php : https://...
0
votes
1answer
65 views

Install component run code in postflight

in joomla 4.0 beta2-dev, in the postflight method in script.php of my component i have put some code to create menus but at the end of installation of component the postflight isn't executed. I have ...
0
votes
1answer
36 views

When uninstall component package isn't uninstalled

Hello my joomla extension is done with a package whith contains the compenent, the library, the plugins, the medias. I have an auto-uninstall feature into my component, but when use it at the end ...
0
votes
1answer
37 views

Library with namespace and autoloader example

I want to make a namespace for my Joomla components, but I can't find a clear example. I want to declare multiple classes in my namespace and use autoloading. For example: namespacebas\xml ...
0
votes
0answers
80 views

Joomla 4 alpha display modal with insert image button

I am developing a custom module in Joomla4 alpha, using a bootstrap rendered modal window so that the user of the component will assign images from media in the Joomla back end to the extension ...
0
votes
0answers
38 views

Load namespaced library from component in J!4

I'm using the latest build of J!4. I have a component that has library files under joomla_root\libraries\mycomponent but the namespaced files in this directory aren't loaded by Joomla! 4 autoloader. ...
0
votes
1answer
108 views

Send error or exception returned from ajax request to enqueuemessage

In my componenent on Joomla! 4, when i do an ajax request and that ajax request return an error or exception, i'am wondering how to display it into enqueuemessage. Is-there a way to do it ? Thanks ...
0
votes
0answers
19 views

Changes into in Joomla\Http\Http in Joomla! 4.0?

I have a part of code in my componenent which works in Joomla! 3.9.x, but in Joomla! 4.0-beta-dev i get a 503 error. My code is the following : use Joomla\Http\Http; use Joomla\Http\Transport\Stream ...
0
votes
0answers
45 views

joomla 4 beta 1 Invalid controller class: display

Php 7.2 localhost MAMP I am having the same issue as here with Joomla_4.0.0-beta1-dev-Development (Monday, 28 October 2019 02:01:09 UTC) 4.0.0-beta1-dev Development [ Amani ] 17-October-2019 20:21 ...
0
votes
0answers
64 views

Error: “Invalid controller class: display”

I've installed Joomla 4 to test with, and I'm getting this error on every attempt to login to the admin: Invalid controller class: display I've re-installed and am using the latest alpha release. ...
0
votes
1answer
42 views

How to render nested modules, (parent outside articles)

I tried the following code: $document = JFactory::getDocument(); $renderer = $document->loadRenderer('modules'); $position = 'precisions'; $options = array('style' => 'raw'); echo $...
1
vote
0answers
94 views

How to get ride of duplicate and useless URL from /component/contact

I try to use the form from Joomla, but seems there are strange downsides… If I setup a contact form, from Components > Contacts, and put this Contact Component inside a Menu, I can access the "...
1
vote
1answer
78 views

How to set a root article as subpath url for children articles

How to set a root article as sub-path URL for children articles? Meaning, I have a root page named article0, and article{1-100} under this root article. I want to display the article0 under the URL ...
1
vote
1answer
151 views

How to add category name to url path for an article in Joomla 4?

How to display category name in the url path? Say I have a category named cat1, and an article1 under this category. I want to display website.wb/cat1/article1, but what I get is website.wb/article1. ...
1
vote
1answer
145 views

Updating JEventDispatcher triggers

Can anyone explain or point me to information on the new way to handle events in Joomla 4? I'm updating a component that uses triggers to display plugins, and it looks like this: $dispatcher = ...
1
vote
1answer
156 views

Delete query and left join with JDatabaseQuery doesn't work

I'm trying to convert a delete query with left join to use JDatabaseQuery, but I am encountering an issue in the query. The query that I'm trying to convert and which works is the following : $db->...
0
votes
1answer
58 views

How to write a DELETE query with WHERE conditions using JDatabaseQuery syntax?

I have a query which I am trying to convert to JDatabaseQuery syntax, but I'm not able to find the correct way. The query is the following: DELETE upt FROM #__mycomponent_user_posts AS upt WHERE upt....
0
votes
1answer
40 views

Where might the code for this screenshot lie in joomla 4 [closed]

The link to this url on localhost is administrator/index.php?option=com_menus&view=item&client_id=0&layout=edit&id=101
2
votes
1answer
80 views

Getting Error “Call to undefined method Joomla\CMS\Editor\Editor::getContent”

I am upgrading one of my component to support Joomla 4 and I am getting this error in webpage Call to undefined method Joomla\CMS\Editor\Editor::getContent The code that throws this error is in ...
2
votes
1answer
217 views

Joomla 4 alpha - link to dialog file in editor-xtd broken

I'm trying to update my extension for Joomla 4 alpha. It adds a button in the editor that calls a dialog file in a popup window. The link is triggered like this: $button->set('link', '../plugins/...
2
votes
1answer
43 views

architecture diagram (current 3.x, 4.x) of joomla architecture

Is there any newer architecture diagram of joomla CMS? I know the https://docs.joomla.org/Archived%3aCMS_Architecture_in_1.5_and_1.6 but it is from 2011 so pretty outdated. Also is there one zoom-...