Questions tagged [joomla-5.x]

For questions regarding Joomla 5.x of the Content Management System.

Filter by
Sorted by
Tagged with
0 votes
1 answer
36 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
2 answers
30 views

Can't use WebAsset useStyle in index.php in Joomla! 5

I am working on a Joomla! 5 compatible theme and want to use the WebAssetManager function in combination with joomla.asset.json to register and include theme assets. I am bumping into an issue where ...
rhuijben's user avatar
0 votes
0 answers
25 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
0 answers
30 views

Use Loadmodule plugin in custom component

I want to embed existing modules into the content of my custom component. I thought I could simply use {loadmoduleid 123} within the text of my component record and on display of this record, the ...
Glenn Arkell's user avatar
0 votes
1 answer
32 views

Custom Component Error on Save / Edit: Save failed with the following error: Prepared statement needs to be re-prepared

I have here a really curious issue in Joomla 5.0.0 on a custom component I'm building right now. In one of the views i cannot save edits on existing elements (create new elements is not an issue at ...
Marco's user avatar
  • 583
0 votes
1 answer
49 views

Autoload external library in Joomla 5 component

In my Joomla 4 component I successfully used the Mpdf library. Since migrating to Joomla 5, the library does not initialise properly. This is the setup that worked in Joomla 4: class MyModel extends ...
cappu's user avatar
  • 139
0 votes
1 answer
31 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
  • 583
1 vote
1 answer
36 views

Export as Excel with PHPSpreadsheet as download how to keep Joomla Messages?

In my custom Joomla 5 component I've added PHPSpreadsheet via composer. In the Export View (Backend) i have a small adminform for setting up the export and a submit button that toggles the download by ...
Marco's user avatar
  • 583
0 votes
0 answers
23 views

Multiple media elements in manifest

I have a component which also contains a module as part of the component. In the component manifest I have, within the media element, a file joomla.asset.json which contains my preset styles etc. In ...
Glenn Arkell's user avatar
0 votes
0 answers
25 views

J5. Activate Tab key and Indent in Codemirror in custom component

Codemirror v6 looks like not so easy to configure as previous versions. In my custom component I get codemirror editor with this code who use for options sintax like v5: $editor = Editor::getInstance('...
Peli's user avatar
  • 103
1 vote
1 answer
110 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
2 answers
80 views

J5. Access editor instances in JavaScript

In JavaScript and J4, to get an editor object from the collection of objects with all editor instances running I use: let editor = Joomla.editors.instances[myEditorName]; I can see Joomla object in ...
Peli's user avatar
  • 103
1 vote
0 answers
22 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
3 answers
46 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
1 vote
1 answer
41 views

New Way to use Toolbar::getInstance('toolbar')

So there is this deprecated message that pops up when using: $toolbar = Toolbar::getInstance('toolbar'); Message: 4.0 will be removed in 6.0 Use the ToolbarFactoryInterface instead Example: Factory::...
Marco's user avatar
  • 583