Questions tagged [joomla-4]

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

Filter by
Sorted by
Tagged with
3
votes
1answer
326 views

How to use joomla.asset.json correctly?

I figured I need to reinstall a template/extension in order to take into account my changes to the joomla.asset.json file. Here is the file I'm currently using: { "$schema": "https://...
3
votes
0answers
109 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 ...
2
votes
1answer
99 views

How to override a form field in Joomla 4

I have the following field in my module's XML: <field addfieldpath="/modules/mod_xxxxxx/fields" name="icon" type="filelist" label="Icon" />...
2
votes
1answer
52 views

In controller in admin of my component, i want to load a model from com_plugins

In my controller of my component, i want to load the model : PluginModel from Joomla\Component\Plugins\Administrator\Model\PluginModel; In my controller the getModel method return just false, this is ...
2
votes
1answer
62 views

Install Script - J3 to J4

This question was raised on the Joomla General Development Google group list but I was unable to respond successfully (6 replies deleted - I obviously did something wrong) - so I thought I'd raise the ...
2
votes
3answers
143 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
votes
3answers
112 views

Model not found when from a controller

In a controller, I am trying to load the model, but I have the following error: Call to a member function getSearchURL() on bool So the getModel() is returning false. This is the code of my ...
2
votes
1answer
242 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
179 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
46 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-...
2
votes
1answer
74 views

Non deprecated method in Joomla! 4 to load user by userid

I'm looking for an extension for Joomla! 4.0 to replace a deprecated method which was used to load an user by userid. The method used actually is: $user = Factory::getUser($userid); The issue is that ...
1
vote
1answer
42 views

Is the word Proxy a reserved word (J4)

This may be a silly question but I couldn't find anything stating that "proxy" was a reserved word. I am working on my component for elections and wanted to register a user nominating ...
1
vote
1answer
25 views

Add Custom Admin Button in component - Joomla4

I've created many custom buttons in my components for Joomla! 3 but I hit a stubbling block creating one in J4. In my View file I have $toolbar = Toolbar::getInstance('toolbar'); and then I've tried $...
1
vote
1answer
43 views

Joomla 4 - Module Backend Subform subform-row-add "row" not available

while updating one of my modules for J4 i recently noticed that the repeatable subform field no longer provides the added "row" in JS. Working JS for J!3.x: $(document).on('subform-row-add', ...
1
vote
1answer
366 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
480 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
103 views

Error “500 behavior::tabstate not found.” when trying to access SP Page Builder

I am currently using Joomla 4.0.0 Beta 6 with Helix Ultimate 2.0.0 Alpha 3 and PHP 7.2. My website runs on LiteSpeed Web Server, NOT Apache. When I go to The Joomla administrator panel > SP Page ...
1
vote
1answer
28 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 ...
1
vote
1answer
62 views

Workflows in Joomla 4

As we all know Joomla 4 is on the horizon and the improvement to workflows are definitely an interesting addition. From what I've seen, the workflow works great for new content, but what about content ...
1
vote
1answer
102 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 ...
1
vote
1answer
111 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
220 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->...
1
vote
0answers
40 views

React.Js with joomla 4

I searched almost all possible joomla forums to integrate a SPA with joomla 4. I have a SPA with react ready and I want to display it on the administrator side as a component. The only problem is the ...
1
vote
0answers
66 views

Joomla 4 - router.php SEF-URLs broken since update

This current router.php creates in Joomla 4 this URL: localhost/component/ohanah/?id=688&Itemid=101 But it should create this: localhost/kurse/688-event-name where "event-name" is the ...
1
vote
2answers
69 views

How to get/call Joomla 4 custom fields into module

I tried below code <?php $article_id = 2; $model = JModelLegacy::getInstance('Article', 'ContentModel'); $article = $model->getItem($article_id); JLoader::register('FieldsHelper', ...
1
vote
0answers
25 views

How to preserve hyperlinks in Joomla4 when using enqueueMessage()?

How can I add a hyperlink in an error message in Joomla4? I used hyperlinks in enqueueMessage text in joomla 3.x without any problems. Now I'm using Joomla 4.x and it removes the hyperlink -- it ...
1
vote
1answer
24 views

Retrieve Active Menu link in Controller (frontend - Joomla4)

I'm trying to do a "quick" fix to J3 components so they work in J4 until I can re-code in the new structure ready for J5. Now that I've set the scene, I'm stumbling on getting the Menu URL ...
1
vote
0answers
15 views

How can I update a Joomla form editor box contents from Javascript?

I have a form with lots of fields including editor fields that display using jce/codemirror. I have buttons that call the submitbutton.js which builds a string from other elements in the form. I can ...
1
vote
1answer
107 views

Joomla 4 website's backend not working after renaming htaccess.txt to .htaccess

I got a issue after renaming htaccess.txt to .htaccess in the public_html folder of my Joomla 4 website (https://www.freepetsitters.com). I renamed it in order to get rid of "index.php" in ...
1
vote
0answers
106 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://...
1
vote
0answers
114 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 "...
0
votes
1answer
44 views

Is there a resource showing all the J3 classes mapped to the J4 equivalents?

I know we are using Factory instead of JFactory I would like to know if there is an easy way to know the mapping. I'd also like to understand if any have been deprecated or replaced. Is there a good ...
0
votes
1answer
454 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
1answer
30 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
1answer
49 views

joomla 3 extensions migration to joomla 4

I developed several extensions on Joomla 3 and I want to migrate my extensions (components, modules, plugins) to Joomla 4. I searched on the net and I didn't find any information about upgrading J3 ...
0
votes
1answer
130 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
62 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 $...
0
votes
1answer
84 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
46 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
0
votes
0answers
22 views

Display liste of items grouped by catégorie

I create a blog liste modèle category in joomla 4, need some help to customise it In ordre to display item grouped by catégorie Like Cat 0 parent |_Cat1 |_Item 1 |_Item 2 |_Cat2 |...
0
votes
0answers
31 views

Error not clear in query in component, how to track the query which fails

In my component i have an error showed in top of the page coming from a query which has failed : Syntax error near to '' at line 3 Is-there a way to track the place and the query which fails in this ...
0
votes
0answers
69 views

Helix Ultimate Template: Error "500 icon::print_popup not found." when clicking on a blog article

I am currently using Joomla 4 Beta 7 with Helix Ultimate 2 Alpha 5 and PHP 7.2. When I go to my website's homepage > Blog and then click on any article, I get the following error: 500 icon::...
0
votes
0answers
19 views

What is best practice for inserting the link for custom fields in third party extensions

If I want to integrate custom fields into my Joomla 4 extension, then I have to change the database so that a link appears in the administrator menu, right? For example like here: https://github.com/...
0
votes
1answer
45 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
0answers
189 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
69 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
0answers
23 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
193 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. ...