Questions tagged [joomla-4]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
26 views

Tooltip On Top of Module

I updated joomla to J4.1.4 and now i am getting module information top right of all the modules.
user avatar
0 votes
1 answer
46 views

Undefined property: PlgAuthenticationmyauthplugin::$name in /somepath/www/libraries/src/Authentication/Authentication.php on line 184

I have made a custom login plugin for Joomla 3 and now for Joomla 4. However, in Joomla 4, the login works as it should, but it generates a stack dump in the error log: [Mon Jun 06 10:13:58.034860 ...
user avatar
0 votes
2 answers
96 views

JRequest Method in Joomla 4

JRequest Remove from Joomla 4 then how i must use this method for example $controller->execute( JRequest::getCmd('task', $view) not work i must change it to what ?
user avatar
0 votes
1 answer
57 views

Joomla 4: Error when I use getArticleRoute

In Joomla 4, when I use "RouteHelper::getArticleRoute", I get the next error: "Attempted to load class RouteHelper from namespace Joomla\Component\Content\Site\Helper. I want to use ...
user avatar
  • 1
0 votes
1 answer
11 views

URL doesn't recognize view after slash in custom component

The view in my custom component is no longer recognized in Joomla4 when passed as, for example, mycomponent/view/anotherinfo. In Joomla3, this worked normally. What happened? What do I need to change ...
user avatar
2 votes
2 answers
87 views

Joomla 4 URL processing/routing

I have a Joomla extension running on 3.10 which fails on Joomla 4. The issue is that it generates URLs of the form /index.php?option=COMPONENT&view=VIEW&task=TASK&parameter=PARAM which ...
user avatar
  • 31
0 votes
1 answer
57 views

Implement SELECT query with a LEFT JOIN in J4

I want to get data from two tables using a LEFT JOIN. My query works in my current PHP code, I just don't know how to implement it with query building methods in J4. Can anyone help? SQL: SELECT `...
user avatar
3 votes
2 answers
101 views

New files in Joomla 4 components

In Joomla 4 there are new files in the components, like: services/provider.php Extension/XxxComponent.php Service/HTML/AdministratorService Are there available documentation about how to implement ...
user avatar
  • 207
1 vote
1 answer
48 views

How to use Joomla for insert, delete, display and update data from mysql?

I'm just started to learn using Joomla and one of the things that I need to do is to build a form that can insert data and that data can be displayed to another Joomla page. I got a few comments from ...
user avatar
1 vote
0 answers
36 views

409 Conflict on Joomla 4 administrator backend

I am building a site using Joomal 4. I developed it on my local and uploaded that to the server. All the public pages of the site are rendering properly, but when I try to open the /administrator page,...
user avatar
  • 111
0 votes
1 answer
46 views

Custom plugin doesn't even seem to load on Joomla 4

As a sort of newbie developer with php/Joomla, I created a content plugin for Joomla 3 which pretty much did what I wanted and expected... I then decided to migrate it to Joomla 4 following the very ...
user avatar
  • 21
1 vote
1 answer
176 views

Trouble linking external css file with Dompdf library

I'm trying to create a Joomla system plugin enabling a user to generate a pdf based on a template. I'm using the Dompdf library. I managed to create a PDF, but linking to an external css file isn't ...
user avatar
  • 21
0 votes
2 answers
40 views

How to show 'Register New User' for all guests and something else for registered users?

I want to build a simple site with Joomla 4. The webpage should only handle these few things: For guests (not logged in users): Display an article with some text and the 'login mask' inside the ...
user avatar
  • 101
0 votes
1 answer
40 views

Decode json strings from a database table column

I have a column in my database that essentially creates an array and I am essentially trying to explode it but I cannot figure out how to get it to work. Its also going into SQL with { characters ...
user avatar
  • 57
1 vote
1 answer
186 views

language file naming conventions

Under Joomla 4 the language files for the core extension are no longer prefixed with the language code, e.g. en-GB.com_banners, however when I look in the manifest folders the files are defined with a ...
user avatar
  • 2,220
2 votes
2 answers
165 views

SQL syntax error in query with subquery using JDatabase

I'm coding my first Joomla! 4 component. There are two tables for the component: pfx_list, and pfx_member_to_list. Table pfx_list hash primary key id, and table pfx_member_to_list has foreign key ...
user avatar
  • 175
1 vote
0 answers
11 views

media:content tag missing from Joomla RSS Feed

I am using mailchimp to send newsletters. Everything works fine apart from the fact that my RSS feed generated by Joomla does not contain the media:content tag, hence mailchimp doesn't show the images ...
user avatar
  • 11
2 votes
1 answer
51 views

Add a field (Sql or List) in article options with a search bar inside in Joomla 4

I added a field type "sql" to show a list of options in the Article Options in Joomla 4. But I need to add a field like this with a search box inside to looking for one of the voices typing ...
user avatar
3 votes
1 answer
27 views

Deleting user account when user has published articles

We've got a few dozens registered users on our website. They all have the right to publish, and edit articles in selected categories. Some of those users no longer need their access. So I can either ...
user avatar
  • 175
1 vote
1 answer
28 views

Conditional client side validation

I have a field on my form that is required if another field contains a certain value but otherwise is optional. I have set up a custom validator as follows: document.formvalidator.setHandler('...
user avatar
1 vote
1 answer
34 views

J4 - Custom Profile Plugin - Hiding Groups

I have a custom profile plugin to extend user profile data. I want to add a switch to hide all BUT the core group of fields when the user checks and edits their profile. In my plugin (profileabc.php) ...
user avatar
2 votes
2 answers
161 views

Loading a helper file in Joomla 4

I'm having trouble with using a helper file in Joomla 4, I'm not really sure where I'm going wrong. I have a helper file in my template, like templates/mytemplate/html/helper.php and this works well ...
user avatar
1 vote
2 answers
255 views

Loading the built-in jQuery in Joomla 4 if it does not exist

Tell me please. How to load jQuery in Joomla 4 if it has not been loaded yet?
user avatar
  • 101
1 vote
1 answer
57 views

Joomla 4: Problem with the contact form, the text sent is missing

I'm creating a contact form with Privacy Check box (Joomla 4, template Cassiopeia). I have done all the steps as in joomla 3.x (custom fields) and everything works. But... When the e-mail arrives, all ...
user avatar
  • 11
0 votes
0 answers
22 views

Workflow implemented in 3rd party component

I have a simple component that enables me to record time against an activity for a specific user record (client) and during my upgrading this component to J4 I thought I would learn how to implement ...
user avatar
2 votes
1 answer
27 views

J4 - Return to Component Dashboard from Options

I've implemented a dashboard into a component with an option to update the components configuration parameters. What I want to do is return to the dashboard on Save of the options. I notice that ...
user avatar
0 votes
0 answers
32 views

Dynamic page filled with content depending on the previous page

I am kinda new as a developer and I want to achieve the following in Joomla. The idea is that I have a category->sub category->products. The category and subcategory will be added in joomla and ...
user avatar
  • 1
1 vote
1 answer
55 views

Render Custom Fields in Admin edit view

I want to add custom fields to my component. My admin edit view uses bootstrap tabs: <?php echo HTMLHelper::_('uitab.startTabSet', 'myTab', array('active' => 'general')); ?> <?php echo ...
user avatar
0 votes
1 answer
36 views

2014 Commands out of sync - MySql query J4

I've come across this error when performing some database queries in my J4 site model: $db->setQuery((string)$query); try { $rows = $db->loadObjectList(); } catch (...
user avatar
1 vote
1 answer
210 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 ...
user avatar
  • 101
0 votes
1 answer
64 views

Joomla 4, Error: Class '...\Component\...\Administrator\Model\SimpleXMLElement' not found

Please tell me what the problem may be. I adapt the component for Joomla 4. I get this error, although everything should work. Class '....\Component\....\Administrator\Model\SimpleXMLElement' not ...
user avatar
  • 101
0 votes
1 answer
114 views

What is the correct PHP to render Subform repeatable custom fields on the front end?

When creating custom layout overrides the PHP code <?php echo $this->item->jcfields[X]->value; ?> Works successfully, but does not function at all when it comes to repeatable subform ...
user avatar
  • 45
5 votes
1 answer
246 views

What is the best way for raising an error message in Joomla 4

I'm working on updating a component for Joomla 4. In the code, there are various bits where we raise an error code when for example the user is not authorised to access a certain part. For example in ...
user avatar
1 vote
1 answer
149 views

Joomla 4 - get module params in external php

In Joomla 3, I get module params with this code: // Create the Application $app = JFactory::getApplication('site'); $module = JModuleHelper::getModule('mod_dev'); $presetParams = new JRegistry($...
user avatar
0 votes
1 answer
42 views

What would keep custom fields from rendering in the frontend on Joomla 4

When using the shortcode (example {field34}) for a field in the Article editor text area the field content is not showing on the front end. I entered the fields manually and also used the dropdown and ...
user avatar
  • 45
2 votes
1 answer
77 views

Are custom fields updatable using joomla 4 api?

Simply put when using the API to update a custom field of an article, the new information is not successfully passed through. Furthermore, the original contents are deleted from the field. The ...
user avatar
  • 45
1 vote
1 answer
73 views

J4 API - There are two variables for Article Text, why do neither work on PATCH?

While working with the new Joomla 4 web services API. The Article text does not update. Additionally, as per the documentation, when creating an article via API the article text variable is ...
user avatar
  • 45
0 votes
0 answers
42 views

Component menu not created correctly on clean install on Joomla! 4.0

On Joomla! 3.10.x when doing a clean install of my component, i have this field created : But on Joomla! 4.0.x this field isn't here, the code for the component for Joomla! 4.0 is here https://github....
user avatar
1 vote
0 answers
81 views

How to get true full width modules in Cassiopeia?

In the Joomla 4! default template Cassiopeia, I can choose between Static and Fluid layouts. Static Layouts give me nice margins around the content, and makes the website have a more 'boxed' layout, ...
user avatar
  • 21
1 vote
0 answers
60 views

J4.x - How to echo content from a specific article into error.php

In Joomla 3 I had a really simple error.php file which pulled in the content from an article with the title '404'. I created an article named 404 and assigned it to a menu item of type 'single article'...
user avatar
  • 161
0 votes
1 answer
39 views

Upgrade Joomla 3.3.6 to Version 4

We are planning to upgrade Joomla 3.3.6 to Version 4. Currently, we are at Postgres version 9.6. Since the final release for PostgreSQL 9.6 is slated for November 11th, 2021, we are planning to ...
user avatar
2 votes
1 answer
32 views

Joomla don't see subgroups in the Articles tab (Joomla 4)

I set up three users. To make things easier, let's take the following names: X, Y, Z. Additionally, there are subgroups in the Registered group, let's call them X_group, Y_group and Z_group. User X ...
user avatar
3 votes
2 answers
234 views

Joomla 4 no longer inserting the Itemid, the current or active menu , in the URL. Is this correct behavior?

I am not seeing the &Itemid=, the active menu, being added to the URL in Joomla4 like it is with Joomla3. Is this normal behaviour now with Joomla4 and what is the alternative or is it an issue? ...
user avatar
  • 2,220
1 vote
1 answer
75 views

Joomla 4 Controller naming convention and toolbar button tasks

I started a component com_xxx_yyy in Joomla 4 from scratch to learn the new API the hard way. Parts of the structure - Controller --- DisplayController.php --- YyyController.php - View --- Yyy ------ ...
user avatar
  • 133
0 votes
0 answers
25 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 |...
user avatar
1 vote
0 answers
344 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 ...
user avatar
0 votes
1 answer
41 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( '...
user avatar
2 votes
1 answer
375 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" />...
user avatar
  • 26.5k
2 votes
0 answers
248 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 ...
user avatar
2 votes
1 answer
353 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 ...
user avatar