Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [joomla-4.x]

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

Filter by
Sorted by
Tagged with
1 vote
1 answer
127 views

Search by date in Article Manager Administrator

Is there a way to search by date in the Article Manager Administrator? You can search using the text input, but it doesn't allow you to search for dates, only ID, AUTHOR, CONTENT, or a free text. I ...
jackJoe's user avatar
  • 865
0 votes
1 answer
26 views

Article options overridden by global settings

I would like to control the display of fields like author, modified date, etc. on a per-article basis in addition to the global options. However, even when I set the options in the article, they do ...
Bruce Button's user avatar
0 votes
0 answers
51 views

Multi-factor Authentication is not enabled issue

I'm facing challenges enabling Multi-factor Authentication (MFA) Code by Email for frontend users in Joomla. Despite following the necessary steps and configurations, I encounter persistent issues. ...
Sam.'s user avatar
  • 15
0 votes
2 answers
52 views

Getting ID of newly created model doesn't work

I'm on Joomla 4.3 I'm creating a component and a plugin that are meant to work together. The component has a model, and new instances of the model can be saved via the admin interface, but can also be ...
Stu's user avatar
  • 1
1 vote
1 answer
65 views

Multiple Access Levels to an Article

We have a case in which we have created more than 30 user groups and we need more than 50 access levels for different articles or menus. I have estructured my ACL like this. Groups like: Group1 ...
Juanjo's user avatar
  • 11
0 votes
0 answers
18 views

How long will classmap.php be supported [duplicate]

We are migrating to Joomla 4 and have a lot of code dependent on the 'J' classes that are presently aliased by classmap.php; I see that it is still present in Joomla 5 Will this aliasing continue to ...
user1104799's user avatar
0 votes
0 answers
18 views

Custom Component - Cannot switch category after implementing Custom fields

Another weird issue in one of my comppnents i did not understand. I have implemented custom categories by using com_component.teams and com_component.locations - Additionally. it works all fine until ...
Marco's user avatar
  • 683
1 vote
1 answer
174 views

Joomla 4 and 5 support for legacy classes and methods

I am transferring custom code to joomla 4. Are the legacy classes such as JFactory supported and if so for how long? Where can I find documentation on this?
user1104799's user avatar
1 vote
2 answers
111 views

Trigger event inside custom plugin group

I have a custom plugin in a custom plugin group (maidan): <?xml version="1.0" encoding="utf-8"?> <extension version="3.1" type="plugin" group="...
maidan's user avatar
  • 433
1 vote
0 answers
56 views

Can I use uppercase in Joomla 4 url paths?

In Joomla 3 it was possible to use an URL of this form example.com/Essays/somethin-else because the router would match 'Essays' to the alias of an existing menu item (eg. 'essays, content, single ...
user1104799's user avatar
0 votes
0 answers
19 views

Joomla 4 Search Engine Friendly URLs make link broken

I'm having the problem of wrong image links when "Search Engine Friendly URLs" is enabled, I'm also having "Use URL Rewriting" enabled. For example, I'm on domain/abc page, when ...
pdutie94's user avatar
0 votes
1 answer
36 views

Join one to many with helper table JDatabase

I'm currently using a two step solution to get all linked teams to a player (a player can be linked to multiple teams) that way for my backend list view: first regular SELECT from Players Then loop ...
Marco's user avatar
  • 683
0 votes
1 answer
38 views

Using Text::sprintf with Text::script

I have a language string which need be used with sprintf : COM_COMPONENT_UPLOADED_LABEL_ERROR_REACHED_MAX_NUMBER_FILES = "You have reached the maximum number of files allowed (maximum allowed are ...
user3533235's user avatar
1 vote
0 answers
17 views

Filtering articles by author in url

Can I get articles from a specific author in this way in joomla 4? /index.php?option=com_content&view=category&id=87&layout=blog&filter[author_id]=42 This method works with Tags, but ...
Midhat's user avatar
  • 109
0 votes
1 answer
43 views

Show the category custom fields in article page

I have category custom fields and I need to show these in the article (which is in the category) view. I have used the following: use Joomla\CMS\Factory; use Joomla\Component\Fields\Administrator\...
RustyJoomla's user avatar
  • 2,078
0 votes
1 answer
67 views

API Routes with more than one parameter in Joomla 4/5

I have an API route that should accept more than one parameter, but it seems that only one parameter is being recognised, like this: new Route( ['POST'], 'v1/myapiendpoint/:nr/:id', 'mycomponent....
cappu's user avatar
  • 139
1 vote
0 answers
55 views

Why is my rewriterule not working in Joomla 4

I am using Joomla 4. I have a requirement to rewrite certain URLs to a specific article (article with ID 32). This worked OK with Joomla 3 but now I am getting unexplained error 404 using the same ....
user1104799's user avatar
0 votes
1 answer
32 views

Duplicate custom fields "media" to make "image" plugin

I am using the custom fields for the articles. I have downloaded the "media" custom field plugin and renamed this to "image" (along with the relevant files) I have installed the ...
RustyJoomla's user avatar
  • 2,078
0 votes
0 answers
37 views

Grant access to Joomla API from just one site

In Joomla Joomla 4/5: What is the best strategy to allow access to Joomla API endpoints from only one (or more) specific domains? And how is this configured in Joomla 4/5? (CORS vs. HTTP-Header-Plugin ...
cappu's user avatar
  • 139
0 votes
1 answer
150 views

Joomla 4 Router parse function

I'm converting a custom component from Joomla 3, where the component was using the legacy router, to Joomla 4 router. I have the router service set up and working on Joomla 4.4.0. I first tried ...
James Wadsworth's user avatar
1 vote
1 answer
99 views

CSRF Token Mismatch Issue in Joomla 4 Custom Form Submission

I've implemented a custom form directly within my Joomla article template's code. The form is processed by a handler located in my template. Everything worked fine until I decided to add a CSRF token ...
Deny Alines's user avatar
1 vote
2 answers
32 views

Does Jinput has a limit of max file size that supersedes PHP directives?

Here's one that is driving me crazy: PHP memory_limit: 512M PHP post_max_size: 256M PHP upload_max_filesize: 128M $app = Factory::getApplication(); dd($app->getInput()->files->get('jform')); ...
Alexandre Paulo's user avatar
0 votes
0 answers
41 views

VirtueMart PayPal Checkout Advanced Credit Card form is incomplete

Joomla ‎4.3.4 VM 4.2.2 VM PayPal Checkout 4.2.2 VM PayPal 4.2.2 We have been using the VM PayPal plugin for a while now and are in the process of changing to PayPal Checkout so that we get to use the ...
Andres Cruz's user avatar
0 votes
2 answers
68 views

How to conditionally display custom fields in template overrides

I am using the following code to pull in some custom fields into an override of com_content > category > blog_item.php: $video = $this->item->jcfields[4]->value; $media = $this->item-...
Mike Hermary's user avatar
1 vote
1 answer
53 views

Which line should PHP files in Joomla start with?

I know, that the first line in PHP Files is because of security reasons. I read it here: https://docs.joomla.org/Why_do_most_of_the_Joomla!_PHP_files_start_with_defined(%27_JEXEC%27)%3F But in the ...
agi's user avatar
  • 313
0 votes
1 answer
88 views

Visual Hint on ordering by custom column in backend

When creating a backend list view there are options to sort items by clicking on the column title Default Ordering Column <th scope="col" style=".." class="text-center d-...
Marco's user avatar
  • 683
0 votes
0 answers
24 views

How to handle duplicate items coming from an external JSON API and being imported as article content

I have adapted working code from Joomla 3 and the CLI to Joomla 4/5 and the API. The core functionality using the API system is working, but I am struggling to find a replacement for checking for ...
Mike Hermary's user avatar
1 vote
1 answer
162 views

File Upload from WebApp to Joomla API

I have successfully programmed a Joomla 4/5 API to generate an API web service. There is a kind of weird bug uploading files though, because it basically works on localhost - but on the live system I ...
cappu's user avatar
  • 139
0 votes
0 answers
43 views

Field 'sid' doesn't have a default value

Only new to Joomla- I need to add a new link to this list of links. As you can see in the picture it's only a link with a description but when trying to save it appears with "Save failed with the ...
Todd's user avatar
  • 1
0 votes
2 answers
234 views

Fix deprecated JRequest in Joomla 4

The following code use to work for generating variables for open graph data, but when I updated to Joomla 4 I now get an error because JRequest is deprecated. $option = JRequest::getCmd('option'); $...
limitedoptimist's user avatar
0 votes
0 answers
64 views

Custom task on Task Scheduler

I am trying to create a custom Joomla 4 task scheduler by creating plugin, which runs the custom task code. I created the test plugin name plg_abc_def, but I don’t know how to link it with the Task ...
TMisiunas's user avatar
1 vote
0 answers
23 views

Load third parties libraries in his extensions with composer already used in others extensions

In my extension i load via composer the library ScssPhp\ScssPhp but in some sites there are others extensions installed which loads the same library ScssPhp\ScssPhp. It's the ScssPhp\ScssPhp from my ...
user3533235's user avatar
0 votes
0 answers
25 views

Try to make ACY Mailing newsletter archive view look more like a blog

I am using ACY to create and send newsletters - I am using their "menu newsletter archive view" ([https://www.beeswaxcandleshop.com/home/newsletters/archive/listing.html]) - The page looks ...
Honeyflow's user avatar
0 votes
1 answer
39 views

Styling Joomla custom fields

0 i have created some custom fields in Joomla and created an over-ride: /components/com_fields/layouts/field/render.php to /templates/YOUR_TEMPLATE/html/layouts/com_fields/field/MY_OVERRIDE.ph ...
user408's user avatar
  • 33
0 votes
1 answer
24 views

Custom Rule (checked) for ClientSide Validation

I have a Form that includes two radio inputs both based on this field structure: <field name="privacy_policy" type="radio" layout="joomla.form.field.radio.switcher"...
Marco's user avatar
  • 683
0 votes
1 answer
192 views

joomla 3.x to 4.x migration

I'm moving from 3.x to 4.x. I wrote a component in 3.x which works fine but in 4.x it throws An error has occurred. 500 behavior::tabstate not found. I think it is because bootstrap has been removed??...
user1616338's user avatar
0 votes
0 answers
19 views

Joomla 4: plugin added field in com_content editing form won't save

I'm try to create a system plugin with Joomla 4. Its purpose is adding a new field (pippo) in the article editing form and save its value in the attribs column of the content table. I used the "...
luX0r's user avatar
  • 1
1 vote
1 answer
64 views

500 error on both front- and back-end

A working site has spontaneously started giving nicely-formatted 500 errors on both / and /administrator. I am running Joomla 4.2.8 with php 8.2 on Apache 2.4.56 with MariaDB Ver 15.1 Distrib 10.5.19. ...
seismofish's user avatar
0 votes
1 answer
133 views

Joomla 4 - Cassiopeia index.php override

I have created a child template from the main cassiopeia template and I can see it there. I then created an index.php in the root of the child template folder. Making changes to this file doesn't ...
j00m's user avatar
  • 191
0 votes
3 answers
57 views

Updater XML script on server targetplatform for joomla 4.3/4.4/5.0

In my XML script of my extension for the Joomla! updater, i need to allow the updates when the extension is installed on : Joomla! 4.3.x, 4.4.x and 5.0.x. I have set in my XML file the targetplatform ...
user3533235's user avatar
0 votes
0 answers
77 views

Error when upgrading from 4.3.4 5o 4.4 Error message

website working great before being asked to update Joomla to 4.4. received this error message: An error has occurred. 0 Return value of Joomla\CMS\Mail\MailerFactory::createMailer() must be an ...
aheng55's user avatar
0 votes
1 answer
38 views

J4 -Custom Component - Router Unknown $pk in model

I've added Router Features today to my Custom Component - all works finde beside the fact that the $pk variable inside the model holds a curios value (202n) where 'n' is different for each element... ...
Marco's user avatar
  • 683
1 vote
1 answer
66 views

Input JSON strips HTML

I have successfully developed a Joomla 4 API which receives JSON data containing HTML to update the database. - The HTML markup is stripped away when using this code: $input = $this->input->json-...
cappu's user avatar
  • 139
0 votes
0 answers
51 views

Override com_content views

I have created the following override files in my Joomla 4 template override folder: /templates/chat/html/com_content/category/needinghomes.xml /templates/chat/html/com_content/category/needinghomes....
RustyJoomla's user avatar
  • 2,078
3 votes
0 answers
66 views

Joomla 4 Pre-Update Check Database Fail

I installed Joomla on my webhost (Siteground) using the one-click installer package. I'm currently on v4.3.2 Everything appears to be working as expected apart from the Joomla update option. It keeps ...
jonboy's user avatar
  • 3,603
0 votes
1 answer
83 views

remove data when uninstall plugin joomla

I created content plugin to extend category option. This plguin could add second image to category, it works well. But when I uninstall this plugin, the image is still in the database. What I want is: ...
zhang's user avatar
  • 23
2 votes
1 answer
370 views

How can I filter the Persian alphabet in PHP for Joomla 4?

Before anything, I must say this code works as well for the English language, but in Persian it never works. I use this code on model/celebrities.php. This code shows my frontend model: class ...
Ali Zangeneh's user avatar
0 votes
1 answer
62 views

My script doesn't work on joomla 4

I used this simple php gallery from a folder on my Joomla 3 site. Now I'm getting ready to do an update to Joomla 4 and I noticed that I have a problem with displaying images from the directory. if I ...
Midhat's user avatar
  • 109
1 vote
1 answer
211 views

Standalone PHP script to get username in Joomla 4?

In Joomla 3 I used the following code. What do I need to change to use it with Joomla 4? <?php define( 'DS', DIRECTORY_SEPARATOR ); $rootFolder = explode(DS,dirname(__FILE__)); //current level ...
yowww23's user avatar
  • 11
0 votes
1 answer
66 views

How to use Joomla.listItemTask in Custom Component

Hi i need an example on how to implement a simple on / off toggler in a Joomla 4/5 Custom Component's list view. I've tried the following code but i did not get any reaction in the model / idk how to ...
Marco's user avatar
  • 683

1
2
3 4 5
11