Questions tagged [joomla-4.x]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
12 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
0answers
79 views

How to package modules with admin back-end

Say I want to take mod_custom as a base for a future module. This module has an admin back-end and is not provided as package. After modifications, how can I package it for installation? Seems there ...
1
vote
1answer
59 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 ...
0
votes
0answers
11 views

JForm bind recursion error?

I'm updating a Joomla 3.x component for Joomla 4, and my admin forms are showing a recursive error: // etc until it hits a limit of 256 236 Joomla\CMS\Form\Form->bindLevel() JROOT/libraries/...
0
votes
1answer
16 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 = ...
0
votes
0answers
15 views

Method start() and end() for cache has been removed in Joomla! 4

I have some older custom Joomla! code that I need to refactor for Joomla!4. The start() and end() methods that are used for caching have been removed in Joomla!4. How can I amend my code to maintain ...
2
votes
1answer
41 views

How to use HTMLHelper to add to the document head

In this post: How to add CSS/JS/an Image to a module backend @lodder shows me how to use HTMLHelper to add CSS and JavaScript. Previously I had followed the Joomla! documentation https://docs.joomla....
0
votes
1answer
37 views

Editing a module from another component

Suppose I want to edit the field ("Home") of a module (say mod_breadcrumbs) from edit.php file of another module.I want to use the radio button inside another module instead of using here. Is this ...
-2
votes
1answer
32 views

What does the line in the code below does? [closed]

$hasContent = empty($this->item->module) || isset($this->item->xml->customContent); line 23 in /administrator/components/com_modules/tmpl/module/edit.php
0
votes
1answer
35 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
68 views

Access namespaced custom field method from a plugin into another plugin

In one of my previous questions, I learned how to properly set up a namespaced custom form field, but it turns out that it's only available within its plugin scope for some reason. I need the field ...
2
votes
1answer
42 views

How to use cache calls in Joomla 4

From the documentation I use this part to store a large chunk of data if (empty($families)) { $cache = Factory::getCache(); $families = $cache->call( array( 'JFormFieldFamily', 'getFamilyList' ...
0
votes
1answer
42 views

Joomla 4 - import parent field class into extending field class issue finding the files

Testing my Joomla 3.9 extensions in Joomla 4, some of them didn't work, because, as instructed with the (probably) old documentation my custom fields use jimport('joomla.form.formfield'); ...
0
votes
1answer
87 views

Joomla 4 - how to set namespace for custom field addfieldprefix

I have the editors-xtd\vimeo plugin with this structure ..\plugins\editors-xtd\vimeo\models\fields\(a bunch of custom fields) ..\plugins\editors-xtd\vimeo\forms\form.xml ..\plugins\editors-xtd\vimeo\...
1
vote
1answer
47 views

Class not found in Joomla 4 when using JDate inside a function

In my last question I tried to modify mod_latest_articles module, and added myCustomFunction to ArticlesLatestHelper.php like this : /** * @package Joomla.Site * @subpackage ...
1
vote
1answer
49 views

Fatal Error: Class 'ArticlesLatestHelper' not found in Joomla 4 module while trying to add new function

I'm testing and playing with Joomla 4 alpha. What I tried to do is to quick-edit / modify the module Latest Article (mod_articles_latest), adding a new function. In joomla 3.x I usually adding a new ...
1
vote
1answer
41 views

How to set up Joomla! 4 properly

I'm trying to do a pull request for Joomla! 4. I've downloaded the repro and changed branch but now I need a working copy of J4 so I can test my code. I try to install it the usual way but it the ...
1
vote
3answers
184 views

JFactory::getDbo() deprecated— what's the replacement?

I'm running Joomla 3.9.5 and I'm attempting to update my JFactory::getDbo() calls (which are deprecated) to the newer format using the container. However, I'm getting the following error: Call to ...
3
votes
1answer
51 views

Where are plugins found in Joomla 4?

I'm working with the Joomla 4 alpha 7, and I don't see anywhere to enable / disable plugins. Are plugins not enabled yet? [edited to add alpha, not beta!]
0
votes
1answer
58 views

Joomla 4 beta - Internal Service Error but no logged error

I've installed Joomla 4 beta 7 for development upgrading a Joomla 3 component. I have my logs (apparently) working correctly and I have test error log messages printing to the PHP error log as ...
1
vote
1answer
64 views

Virtuemart 3.4 - products on manufacturer page

Virtuemart 3.4.2, joomla 3.8 i try copy code from category template, but cant fix this errors: at /my_template/html/com_virtuemart/manufacturer/details.php NOW I HAVE Two ERRORS: Call to a member ...
0
votes
1answer
70 views

Get Framework and template params in Joomla 4

Joomla 4 is coming soon and i need to know how to get the joomla framework and template params in php files outside of joomla. This is the way in J3: define( '_JEXEC', 1 ); define( '_VALID_MOS', 1 )...
4
votes
1answer
166 views

Replacing JSubmenuHelper with JHtmlSidebar / Administrative menu in Joomla 4

I've been racking my brain how to add links to all the views of my component in the shiny new Joomla4 backend; I used to do it via JSubmenuHelper, but that, apparently being deprecated also before, ...
2
votes
1answer
129 views

Joomla 4 alpha mootools library

To whom it may concern: I just installed joomla 4.0 alpha and installed a custom extension of mine there in which uses mootools (JHTML::_('behavior.modal');), but it simply does not work. is there ...
3
votes
1answer
65 views

Menu Model Item in Joomla 4

Does anyone know how can I get the current menu model in Joomla 4? In 2.5/3.X I was using this code: $model = JModelLegacy::getInstance( 'MenusModelItem' ) ->getItem(); But this ...
1
vote
3answers
224 views

What is the current status of Joomla 4.x? [closed]

With the new release strategy in mind, what is the current status of Joomla 4.x? Has the development already started? Is there something on Github? Is there a google group especially for 4.x?