Questions tagged [joomla-4.x]

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

Filter by
Sorted by
Tagged with
2 votes
2 answers
85 views

How to authenticate a user with the official Joomla 4 REST API?

I am developing a mobile app that needs to authenticate users with a Joomla 4 site. I want to use the official Joomla REST API to do this, but I couldn’t find any information about how to authenticate ...
Hesam Mohseni's user avatar
0 votes
1 answer
53 views

Joomla 4 Router forward to Controller function

For a Joomla 4 component I just cannot figure out how to successfully forward or call a Controller function from within a custom Router. This is the Controller - it basically loads an image: <?php ...
cappu's user avatar
  • 137
0 votes
1 answer
32 views

Create date fields with the default null value facing error incorrect date field in Joomla 4

Create a date field in the XML form field name="nextdate" type="calendar" class="inputbox" filter="safehtml" label="COM_COMDATE_FORM_LBL_COMDATEDETAIL_NEXTDATE" description="...
user4571727's user avatar
0 votes
1 answer
27 views

Tags not saving for Joomla category custom component with the correct entry in the #__content_type for the Joomla 4 and Jooma 3

Created field type category in the custom component com_drawing but not able to save the tags in the category(refer to the image) Table entry in the table #__content_types INSERT INTO #...
user4571727's user avatar
0 votes
0 answers
19 views

Sendmail by using Joomla! settings is very slow

In my Joomla! 4.2+ component, i have something with send mail when an user submit a from, the issue is that the sending mail process is very slow. My component fetch the mail settings from the Joomla! ...
user3533235's user avatar
0 votes
1 answer
77 views

Cannot access form in Joomla 4 frontend

In Joomla 4.3.4 I have created a menu item Create Article for a specific category. When I try to create a new Article and enter the edit view, I get the following error: 0 htmlspecialchars(): Argument ...
cappu's user avatar
  • 137
2 votes
1 answer
77 views

Filling custom fields when creating an article with an script via the API

I am creating an article in Joomla 4 using the excellent code that is suggested here: Joomla 4 create article programmatically My task is write the values of the custom field simultaneously with the ...
Igor K.'s user avatar
  • 23
0 votes
2 answers
111 views

$this->params() is Null in Joomla 4 Plugin

I have a Joomla 4 plugin that uses a ServiceProvider which basically works fine. It's just that I can't access the plugin's configuration parameters. namespace <Domain>\Plugin\System\Replacer\...
cappu's user avatar
  • 137
1 vote
1 answer
37 views

[J4]Trying to add a user to Group with addUserToGroup()

I'm trying to use the UserHelper::addUserToGroup() to add a usergroup to a user. This is in my component when I publish one of my records, I want the owning user of that record to be added to a ...
Glenn Arkell's user avatar
0 votes
1 answer
60 views

how to update item by using ajax on custom component joomla 4

Dears My component was a bit old. So I started to do it again on joomla 4. I have been looking for a few days, how to update or create data items by using Ajax in joomla 4. i found a lot of feedback ...
Nicolas AZHAR's user avatar
0 votes
0 answers
36 views

Joomla 4 - hide custom fields in category blog

I am using some custom fields at article level. These are also showing on the category blog view. How do I disable these? Am I being stupid or do I really need to create an override for such a trivial ...
j00m's user avatar
  • 181
0 votes
1 answer
68 views

htaccess QSA not working in Joomla 4

Migrating a Joomla 3 component to Joomla 4 I have problems with getting Apache Server htaccess correctly configured to append query string from request to substituted URL - QSA flag. - It looks like ...
cappu's user avatar
  • 137
1 vote
1 answer
85 views

Legacy component + jquery + SEO = 404

I have a legacy joomla 4 component that saves something back to the server using jquery. It works fine with SEO turned off, but I get a 404 error with SEO turned on. The URL parameter for the jquery ...
Jimmy's user avatar
  • 307
0 votes
2 answers
147 views

Casseiopa template - Bootstrap Carousel

I am trying to display a carousel in an article using the bootstrap code. This is a new Joomla 4 install using the casseiopa template. Here is my code: <div class="d-flex justify-content-...
j00m's user avatar
  • 181
0 votes
1 answer
62 views

J4 URL routing - cannot remove menu alias from URL - SEF issue

I've migrated a J3 site to J4 and have an issue with article URL's. In J3 an article would load /category/article i.e. https://old.lymington.com/133-locally/1458-a-guide-to-beaches-near-lymington-and-...
Dtorr1981's user avatar
  • 532
0 votes
2 answers
31 views

Href properties of the main menu items are empty just on the live site

I have updated a website from Joomla 3 to Joomla 4 on my local machine. When I upload it all the main menu items are shown on the frontend with the HREF fields empty. I can't understand why this is ...
Davide Casiraghi's user avatar
0 votes
1 answer
48 views

Passing the current user to an external php file

I'm updating a working J3 system where one menu item is an iframe wrapper which runs an external php program which needs to know the current user. I've been updating the first part of this file to use ...
SteveG's user avatar
  • 15
1 vote
1 answer
166 views

How to load and render a view of a component from another's component template file?

Note: Question fully updated with the latest findings: I want to load a com_contact contact view inside a template override of an article. I have a contact item id and trying to load the record and ...
FFrewin's user avatar
  • 19.6k
0 votes
2 answers
43 views

ALERTS FRONTPAGE

I have alerts in frontpage that I have not been able to fix for months https://redes.editorasalvaje.net/internet https://redes.editorasalvaje.net/rural https://redes.editorasalvaje.net/recursos-...
Cero Salvaje's user avatar
0 votes
0 answers
30 views

Review of php script to clean up orphaned images / pdfs on joomla 4

I have written the following php script and would like some critique of the script and suggested improvements. My motivation was to reduce server backup times and save energy by not backing up ...
OnTarget's user avatar
0 votes
1 answer
26 views

Can we create single view in Joomla four without table file to just HTML code

I want to create a single view=help to display HTML code instead of the form view=item&layout=edit to the Joomla 4 Components administrator area, is it possible to achieve it? right now I am ...
user4571727's user avatar
0 votes
0 answers
24 views

Linking to a category list item

I have a Joomla 4 menu item of type "List All Categories in an Article Category Tree". The menu item is FAQ, which sits under another menu item labelled Help. There is a category with an ...
Jimmy's user avatar
  • 307
0 votes
1 answer
163 views

MySQL "LOAD DATA LOCAL INFILE" with database connection object in Joomla 4

In order to import large CSV files into a Joomla database table, I use the MySQL "LOAD DATA LOCAL INFILE" command as follows: $db = $this->getDbo(); $sql = "LOAD DATA LOCAL INFILE '&...
cappu's user avatar
  • 137
0 votes
0 answers
28 views

Joomla 4 Backend select menu item that "should" be active

My new component will have an Import View in the backend where the users are able to import db stuff. Because there are multiple types like teams, players, locations, referees, ... the imports are ...
Marco's user avatar
  • 583
1 vote
1 answer
390 views

Cannot access protected property Joomla\CMS\Menu\MenuItem::$params

Updating a demobar component from J3 and the view will not get my demo items for the dropdown from my model. Hoping someone could help me with getting the proper parameters for the menu. I am getting ...
Scott Smith's user avatar
1 vote
1 answer
152 views

How do I create a sticky sidebar in Joomla 4?

I would like to create a sticky sidebar in Joomla 4. In other words, I would like to display a module next to an article in one of the sidebar positions. When the article scrolls up, the module must ...
Bruce Button's user avatar
0 votes
1 answer
48 views

Force 404 error in J4 when php file called

this is related to my previous question regarding [native J4 redirects][1]. I'm looking at a workaround but my previous question is still valid. I'm using [Jbusiness][2] and where previously we could ...
Dtorr1981's user avatar
  • 532
0 votes
1 answer
43 views

Jinput getAray not retrieving RAW details from codemirror editor in Joomla 4

I am busy with a project to convert an Joomla 3 template to Joomla 4. The Jinput is not giving me RAW data it is removing the script tags from my inputs. I worked through a couple of similar problems ...
Niel Buys's user avatar
1 vote
1 answer
21 views

blog news with inside article summary and login form to read the whole article

I have a need to create a news section but which is password protected via login form. What I can't find is the ability to show a small summary of the article and then show the login/registration form ...
bastiag5's user avatar
0 votes
0 answers
35 views

Joomla 4 AJAX request and Cyrillic characters

There is an input field of type text - pib_input I am sending to the Ajax server let pib_input = $('#pib_input').val(); console.log(pib_input); $.ajax({ data: { [token]: "1&...
antarey's user avatar
  • 35
0 votes
0 answers
39 views

Joomla 4.3.3 Imported Redirects not working

more of a query than anything. I've imported some redirects using the Import option in J4 but I've just noticed that if the original page still exists, the redirect does not work. It does say in the ...
Dtorr1981's user avatar
  • 532
1 vote
0 answers
44 views

Missing /media/cms/css/debug.css

While using browser developer tools I noticed an error in my joomla 4 site: Refused to apply style from 'https://[server]/media/cms/css/debug.css' because its MIME type ('text/html') is not a ...
Jimmy's user avatar
  • 307
0 votes
0 answers
17 views

Query with MAX(time) doesn't return int

I have the following query on Mariadb 10.4.x with Php 8.1, the issue is that the loadResult() doesn't return int : $query = $this->_db->getQuery(true); $query->select('MAX(time)') ->...
user3533235's user avatar
0 votes
1 answer
90 views

I need a simple Example of a Custom Field in a Joomla 4 Component

For my Project i need to have a Custom Field that gets all "Sponsors" from a related table, the user can then select the items and link them to a "location" so define the sponsors ...
Marco's user avatar
  • 583
0 votes
0 answers
65 views

Multi-level Dependent Drop Down Lists by Joomla 4 SQL Custom Field

I need to create a Multi-level Dependent Drop Down List to show my Joomla Categories list in the first dropdown list and then show the related articles in the second dropdown list (based on the value ...
KEian's user avatar
  • 3
4 votes
1 answer
52 views

How to properly add a query parameter to my Router?

Given the following menu entries Route::_('index.php?option=com_mycomponent&view=categories&extension=com_mycomponent.countries') should return '/countries' but in fact it returns '/diseases'....
Alexandre Paulo's user avatar
0 votes
1 answer
75 views

Joomla 4 Component SEF URL not working for detail page of the item when catid is added in the url

Below is the have written the code router file in the component namespace Test\Component\Test\Site\Service; // No direct access defined('_JEXEC') or die; use Joomla\CMS\Component\Router\...
user4571727's user avatar
1 vote
1 answer
107 views

Add intro or full image to a component/module Joomla 4

I'm not good in php, more a css/sass html specialist. I had an module (latest articles) and I needed to add the intro image. With Joomla 3 I did it like this: <div class="nieuwsfotos" ...
MrMarcie's user avatar
0 votes
1 answer
109 views

How to add separators / dividers in Joomla 4 Custom Components (Sub-)Menu?

There are these nice loking seperators / dividers in the core content component's menu: I've tried already to add the following in my XML without success: <menu class="divider">sep&...
Marco's user avatar
  • 583
0 votes
1 answer
48 views

Joomla 4 - change in way URLs generated compared to Joomla 3

I've copied the exact menus and menu structured over from a J3 website to a J4 website but the resulting URL tree is generating differently on the J4 site. For example the old J3 URL is: https://old....
Dtorr1981's user avatar
  • 532
0 votes
1 answer
99 views

Joomla 4 Custom Component > Custom Fields Integration

I'm curently developing a (free) Custom Joomla 4.x component. Now im struggeling while implementing Custom Fields support for my first (and currently only) context. The issue is that the "Fields&...
Marco's user avatar
  • 583
0 votes
1 answer
26 views

Joomla 4 Email Single User

Is it possible to email an individual user from within the Joomla 4 admin area? Preferably without using a paid plugin.
jonboy's user avatar
  • 3,593
0 votes
2 answers
71 views

J4 Component: Add Modified By and Modified On Database Record when using JForm and an AdminModel Model

I am creating a new Joomla J4 component for my website. I have previously created components in J3 using Akeeba's Framework on Framework. For J4 I'm working to learn how to create a J4 MVC native ...
mb87's user avatar
  • 3
0 votes
1 answer
74 views

Using MySQL "LOAD DATA LOCAL INFILE" with the Joomla database connection object

In a Joomla 3 component I use the MySQL "LOAD DATA LOCAL INFILE" command to import large CSV files into a Joomla database table. When moving to a new server, it is no longer possible to ...
cappu's user avatar
  • 137
0 votes
2 answers
179 views

Help with update a JoomlaCli-Application from Joomla 3 to Joomla 4

I'm working with a JoomlaCli Application, called from a external php command via a cronjob. It worked in Joomla 3, but in Joomla 4 some classes have changed. Our class name is import Namespaces: use ...
Corak55's user avatar
0 votes
3 answers
101 views

Help with URL rewrite (REGEX?) following J3 to J4 migration

Up against it at the minute so my brain seems to be going off in the wrong direction. I have migrated a very large site from J3 to J4. The J3 article URL's look like the below: /133-locally/1984-...
Dtorr1981's user avatar
  • 532
0 votes
0 answers
23 views

Restricting New User "Assigned User Group" Options for Manager Level Accounts

I've created a new user group under the "Manager" ACL called "User Manager". The only function of the "User Manager" is to create or delete "Registered" user ...
pscarnegie's user avatar
0 votes
0 answers
21 views

gestion des formulaires et des membres inscrits

On behalf of an association, I make a new site that involves forms. I use Joomla 4 and Nicepage essentially. The site is in 2 parts: public and private. The private part requires registration which ...
Eric LESPERT's user avatar
3 votes
1 answer
233 views

How to create an instance of the Joomla CMS from the browser or the command line

Recently there have been a number of questions posted on JSE relating to how to load the Framework that in most cases is really asking how to load up the Joomla CMS either from a command line or via a ...
Irata's user avatar
  • 3,587
1 vote
1 answer
64 views

Joomla 4: no need for Route::_($url)?

I am using this on a custom component: $url = index.php?option=com_content&view=article&catid=427&id=15106 Both echo $url; echo Route::_($url); will output a friendly url. I'm guessing ...
Alexandre Paulo's user avatar

1
2
3 4 5
10