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
1 answer
4 views

Issue getting custom fields value

I have a Joomla 4, and I created 2 custom fields for my articles. first field is "scheda-tecnica" and the second one is "lavorazioni" Then in an override of the article default ...
user avatar
  • 101
2 votes
1 answer
28 views

Custom Fields inside Articles News Module in Joomla 4

I want to show some specific Custom Fields inside the Joomla 4 Articles News (mod_articles_news) module. I used to use this code in Joomla 3 : <?php $customFields = FieldsHelper::getFields('...
user avatar
  • 319
1 vote
0 answers
34 views

Disable the save warning on TinyMCE editors

I've programmed a modal with a TinyMCE editor inside, where it's value is saved via ajax, but when leaving the page there's still the warning Changes you made may not be saved. Is there a function or ...
user avatar
  • 278
1 vote
0 answers
12 views

A solution for multilingual websites having a different domain name for each language

I was looking for an easy to implement solution for multilingual websites having a different domain name for each language... for Joomla 4. In Joomla 3 there were a couple of plugins, but there is ...
user avatar
1 vote
0 answers
32 views

I can't get $params->set() to work to transfer variable from module to template

I'm trying to get a variable from my module to my template but its not working. In my modules xml I defined: <fields name="params"> <fieldset name="basic"> &...
user avatar
0 votes
0 answers
28 views

addStyleDeclaration is not working in my 4.0 module

I'm trying to insert inline css in a module and it's not working. In one of my modules php files i have the following: $document = Factory::getDocument(); // Add styles $style = 'body {' . '...
user avatar
0 votes
0 answers
18 views

Change the form field name from one view to a related one

I have two related views (item and booking) in my custom component. A view for the items, and another view for booking them. So, if you browse to an item view, you will see there a "booking ...
user avatar
  • 207
1 vote
2 answers
48 views

Is it possible to exclude a plugin from Progressive and Conservative cache?

I have a plugin that works fine in that it reads a value from the params of the plugin and then based on the current date/time, replaces it with a new value in the params, however with Progressive or ...
user avatar
  • 2,220
2 votes
1 answer
87 views

Joomla 4 API Question

How to convert a custom Joomla 3 to Joomla 4, and use the Joomla 4 web services API? I have an extension I wrote for J3 and with a bit of tweaking it works just fine in J4. I want to add web services ...
user avatar
  • 1,727
0 votes
1 answer
31 views

Unlock and Unistalling the Sample Data - Blog plugin in Joomla 4

I want to Uninstall the Sample Data - Blog plugin, but the plugin can't be remove when it's stil locked. How to unlock the Sample Data - Blog plugin in Joomla 4?
user avatar
1 vote
1 answer
34 views

Joomla 4 API Issues using Joomshaper Melvin Template

It may be too specific a question, but is anyone having any issues utilizing Joomla 4 Templates and the API with extensions from Joomshaper? I have 1 site that seems to work fine, but another that is ...
user avatar
  • 1,727
0 votes
1 answer
54 views

JRequest Error to Joomla 4

I use this code on my component in Joomla 3: function add() { if(JRequest::checkToken( 'get' )) { JRequest::checkToken( 'get' ) or die( 'Invalid Token' ); } else { JRequest::...
user avatar
0 votes
1 answer
42 views

Why aren't the credentials being binded in the user registration email and how can we fix it in J4?

As per the title, when an admin creates a new account with a certain email address, the new user correctly receives the email that should contain the credentials, but the values are not binded, i.e. ...
user avatar
0 votes
0 answers
19 views

How to override Joomla 4 Editor - TinyMCE Templates into Joomla template

I did not find a way to to override Joomla 4 Editor - TinyMCE Templates into Joomla template, have anyone know how?
user avatar
  • 73
0 votes
1 answer
74 views

How to catch Joomla\CMS\Router\Exception\RouteNotFoundException in Joomla 4.1?

As per the title, how can we catch a RouteNotFoundException? For time constraints, instead of creating a custom component we opted for some hand-waving, and decided to display custom content at non-...
user avatar
1 vote
1 answer
24 views

Customizing filters layout from joomla.searchtools.default for list view of custom component

In Joomla 4, there is the layout joomla.searchtools.default for the filters in a list view that you can see everywhere in the BackEnd. In a list view of my custom component (FrontEnd), I managed to ...
user avatar
  • 207
2 votes
1 answer
28 views

Scheduled task only running when logged in0

I built a Joomla plugin for a task and I scheduled that task to run every 5 minutes. While monitoring the task it seems it is only running when I am logged into the administrator back end if the site....
user avatar
  • 57
0 votes
1 answer
36 views

How do I create parameters in a Joomla module depending on another parameter / number?

I'm trying to create a Joomla module for typical CSS cards, but I want to make the number of cards dependent on a number input from the user. For example the user wants 5 cards so in the parameter ...
user avatar
1 vote
1 answer
41 views

What is the best way to have pages displaying articles from our custom content table in Joomla 4.1?

Related: Is it possible to make it so that authors can edit their own published articles creating a new unpublished version of them? The answer to that question is "In Joomla 4 it is, but authors ...
user avatar
0 votes
1 answer
44 views

Update system from my extension don't work

I'm not able to make my component's update system work on Joomla 4. I don't know what's missing. My manifest file: https://tabaoca.org/tabapapo-updates/updates.xml Download component: https://tabaoca....
user avatar
0 votes
0 answers
29 views

Joomla 4 Administrator Sidebar Collapsible Menu Style in the Front End

I would like to create a Sidebar Menu style in the Front End of a Joomla 4 site that looks, feels and behaves similarly to how the current left sidebar Menu of the back end is. Including the option of ...
user avatar
1 vote
1 answer
28 views

Does Showon attribute for list options work with Joomla 4?

I have tried the following exact example in the Joomla documentation: Showon attribute for list options <field name="fielda" type="list" label="FIELDA_LABEL&...
user avatar
  • 207
1 vote
1 answer
19 views

How to add Toggle Inline Help button to config

Since J4.1 help text (description) is hidden in the config.xml file for my component. So how do I add the "Toggle Inline Help" button to my config view of my component? I can add this ...
user avatar
0 votes
0 answers
23 views

Error when trying to sendmail An error occured while fetching the JSON data: HTTP 0 status code

On Joomla! 4.1.3 i have set the mail settings the first time i have tried with gmail SMTP and the second time with office365 smtp in both case i'am not able to send mail. When i hit the button "...
user avatar
0 votes
2 answers
100 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
0 answers
26 views

Joomla all versions not worked 404 pages on Litespeed server

i see front page without component, → 404 error not shows but i have its in my template.. error.php: error->getCode(); ?> - title; ?> i found very much articles, whats is maybe litespeed not support ...
user avatar
0 votes
1 answer
58 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
1 vote
0 answers
36 views

Joomla exception "throw new DebugBarException("Session must be started before using stack data in the debug bar");"

I have updated my website to Joomla 4.13 and using Postman to get data via Joomla 4 webservices. I have turned on the Debug. Now I'm getting a response to the Postman "Session must be started ...
user avatar
1 vote
0 answers
37 views

Getting input param from controller in Joomla 3 vs. 4

When doing this in a frontend controller: class MyControllerCustom extends BaseController { public function __construct($config = array()) { parent::__construct($config); ...
user avatar
  • 331
3 votes
1 answer
103 views

Is the following everything one should do to prevent SQL injection?

In order to sanitize the user input in an article insertion form (title and HTML content), here are the bits that I've included: Use of JInput: $jinput = JFactory::getApplication()->input; get ...
user avatar
0 votes
1 answer
42 views

Is it possible to make it so that authors can edit their own published articles creating a new unpublished version of them?

Related: Is it possible to remove the "new article" button from all sections in a Joomla website? Worflows in Joomla 4 are great, but there is a feature I'm not sure they have: letting ...
user avatar
1 vote
1 answer
51 views

Is it possible to remove the "new article" button from all sections in a Joomla website?

A mate and I are doing an internship at university, and the project we are working on is a small Joomla 4.1 website. Our supervisors asked us to override the mechanics of content insertion so that an ...
user avatar
1 vote
1 answer
44 views

Attempt to assign property "team" on bool

I am trying to create a model in Joomla that will display various information pertaining to a certain ID. When I create the function: public function getItem ($id = null) { if ($this->_item ===...
user avatar
  • 57
0 votes
1 answer
65 views

Override a method of the Indexer class (com_finder) using a plugin

I'm trying to override a Joomla method (toggleTables in the Indexer class of the com_finder) using a plugin, but it doesn't work. Where am I going wrong? use Joomla\CMS\Plugin\CMSPlugin; use Joomla\...
user avatar
0 votes
0 answers
46 views

SEO-friendly URLs are being corrupted after update

I have built a directory website and started to add some content. I have created the standard pages (contact us, privacy, etc.) and added businesses. I would like SEO-friendly URLs, so I set: Search ...
user avatar
1 vote
1 answer
34 views

select onChange changed to on-change after saving Joomla 4.1 form

I have been successfully using a homemade article including a form and some javascript for a while now on Joomla 3 which also uses the Regularlabs Sourcerer plugin. Turns out that I recently migrated ...
user avatar
  • 21
2 votes
0 answers
22 views

Joomla MEMORY tables cause an error in creating/editing articles

I am encountering an error with Joomla 4 that has never occurred to me in previous installations. When I try to create/edit an article, a category or to index contents in smart search, I get the ...
user avatar
1 vote
1 answer
72 views

Updated to Joomla 4 and custom PHP scripts no longer run

I have just upgraded from Joomla 3.10.8 to the latest version of Joomla 4 (it is 100% better). However some of my scripts that have run for years now no longer work. The scripts basically import files ...
user avatar
  • 31
0 votes
2 answers
68 views

How can I sort an unordered list alphabetically by class with JavaScript or PHP?

In a custom J4 site I am using the Shack Locations (previously Focalpoint) core extension that displays a dynamically generated legend of location types on the front end, but it is listing the nine ...
user avatar
  • 161
0 votes
1 answer
75 views

How to return data from 2 tables to one table using a select field

My tables: dzialki +--------------+-------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +--------------+-------------+------+---...
user avatar
1 vote
0 answers
28 views

How do I get the tag parent with Joomla 4?

I'm using Joomla 4 and need to use the new API to get tags which have a specific parent. (I am already able to do it with the legacy API using the $tag->parent_id). It seems that the new API doesn'...
user avatar
  • 131
1 vote
0 answers
13 views

Create a public controller method

I have a controller method that outputs some JSON which should be publicly accessible index.php?option=com_mycomponent&task=mycontroller.json&format=json If I set this as a System > URL ...
user avatar
  • 131
1 vote
1 answer
98 views

jQuery scripts not working in Joomla 4 template

I am trying to upgrade my Joomla 3 website to Joomla 4. One of the issues I am facing is that none of the jQuery code in my template's index.php file is working. Does jQuery not get loaded ...
user avatar
  • 141
0 votes
1 answer
19 views

URL on three-image CSS carousel not changing with images and text

I have created a rotating carousel using a Joomla 4 blog alternative menu item. The blog shows the three latest articles as 'intro items' on a rotation of 24 seconds in total, i.e. 8 seconds each. The ...
user avatar
  • 161
1 vote
1 answer
51 views

How to stop Joomla 4 from loading collapse.min.js in my template

I built a custom Joomla 4 template and unfortunately Joomla is automatically loading collapse.min.js When I view the page source I see this in the head: <script src="/media/vendor/bootstrap/js/...
user avatar
  • 83
0 votes
1 answer
37 views

Incorrect Uri::root() with external PHP file

The file /srv/http/components/com_mycomponent/ajax/editAction.php was initialized with https://github.com/joomla/joomla-cms/issues/34586#issuecomment-865080001, except that we use define('JPATH_BASE', ...
user avatar
0 votes
0 answers
60 views

error with joomla 4 when i try to get value from user custom Fields

with joomla v3 we use the following code to get values from database // $userfields = FieldsHelper::getFields('com_users.user', JFactory::getUser(), true); return $customFields[6]->value; // now ...
user avatar
0 votes
0 answers
26 views

How to implement and manage canonical URLs in Joomla 4.1

I want to implement and manage canonical URLs in Joomla 4.1. I know that Joomla does not provide an automatic way to generate this type of links, although they can be quite important for SEO. It is ...
user avatar
2 votes
1 answer
36 views

HTMLHelper call a custom class in a module

In the xml file for a module, I call a custom field class: <config> <fields name="params"> <fieldset name="basic" addfieldprefix="Myextension\Name\...
user avatar
2 votes
1 answer
46 views

Scheduled Tasks Infrastructure in Joomla 4.1

Is there documentation for the new Scheduled Tasks Infrastructure in Joomla 4.1 (https://github.com/joomla/joomla-cms/pull/35143)? I just created a test task for setting the site offline. I scheduled ...
user avatar
  • 31