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
17 views

Scheduled Task - Plugin to use Rules

I'm trying to set up a custom scheduled task and I want to utilise the Rules parameters as part of my logic to get other records from the database. So my question is how do I get the json rules? I've ...
Glenn Arkell's user avatar
0 votes
1 answer
22 views

Joomla Custom Field Type Plugin No Translateable Label

In my Project I create a Custom Field Type Plugin (my own Customfield Type) - I'm using the new Structure with namespaces but on the "Field Selection" There is no translateable label. Its ...
Marco's user avatar
  • 663
0 votes
1 answer
32 views

Component with a module included - JED Checker

I recently ran all my components through the JED checker to bring them up to speed with J6 in mind. Some of my components have a module and/or plugin included in the main component manifest which has ...
Glenn Arkell's user avatar
0 votes
0 answers
15 views

Saving template file in administrator results in page can't be reached message

I am experiencing a new issue that I have never seen before. I have a fresh Joomla 5.0.3 install. I can create a css file in the CSS folder of the default Cass template and edit that file. It saves ...
Terry Carter's user avatar
  • 1,812
0 votes
1 answer
21 views

J5 - Utilising com_fields in component

I'm lost with utilising com_fields in my component so that my users can create a custom field for a specific purpose and have it rendered in a modal popup. So I have my component setup with a ...
Glenn Arkell's user avatar
0 votes
0 answers
24 views

Modal Popup to use Menu template

I have a modal button on my component list page which displays details of the record in a popup modal window. My problem is I want the modal popup to use the same template set in the menu item for ...
Glenn Arkell's user avatar
2 votes
1 answer
36 views

How to replace deprecated get() Function on CMSObject?

In PHP Storm I am always tells me that the CMSObject->get() function is deprecated and that I should implement my own getter. I would, if I could... This message comes with standard things like: ......
Marco's user avatar
  • 663
1 vote
1 answer
20 views

Frontend New Button and Router.php

in my component I made a List view of items and add with ToolbarHelper a New Button to add new items. Further I add a link to the item name to edit this item. As for SEF user friendly URLs I add a ...
Gerald's user avatar
  • 13
0 votes
1 answer
12 views

BUG com_installer not always displaying update script output

[original post - I have now established it is a bug] A strange quirk. Using Joomla 5 my install script for a component is designed to show some information to the user after update. It renders the ...
RogerCO's user avatar
  • 61
0 votes
2 answers
55 views

How do I copy a template

In Joomla 3 there was a handy button to create a copy of template so that you had a basis on which to customise and create your own template. This seems to have been removed in J5 and instead there is ...
RogerCO's user avatar
  • 61
0 votes
1 answer
42 views

user id not take over by jForm

I am writing my first extension (com_bnc) in Joomla and I want to save an existing user id and a date to a new table in the joomla database. I did the following things: I created a Controller which ...
Gerald's user avatar
  • 13
1 vote
1 answer
24 views

Is it possible to process content plugins before returning articles in Web Services?

Imagine a have a list of content plugins installed on joomla like: Snippets LoadModule etc... I have an article with the following content: <p>{snippet id="1"} {loadmoduleid 1}</p&...
Exprove's user avatar
  • 133
0 votes
1 answer
40 views

Creating site routes from Administrator client

I am in the process of migrating a large Joomla component from v3.x (with lots of legacy code from 1.5+!) to Joomla 5 at present. One item I have stumbled upon is how best to bootstrap the component's ...
John Rix's user avatar
  • 551
0 votes
0 answers
35 views

Check context of plugins to avoid to be loaded everywhere in Joomla!

In my component i have some plugins (like this one https://github.com/Kunena/Kunena-Forum/blob/K6.2/src/plugins/plg_kunena_comprofiler/comprofiler.php), when there are enabled they cause issues with ...
user3533235's user avatar
1 vote
1 answer
31 views

Add Tags Feature to Custom Component

Knows someone a good guide on how to implement the TAGS feature into a Custom J4/5 Component? I have this information from Astrid's Book on how to develop J4 Components but it looks not fully correct ...
Marco's user avatar
  • 663
0 votes
1 answer
37 views

Joomla 4 / 5 Module Layouts naming

When using the following field in my module xml: <field name="layout" type="modulelayout" label="...
Marco's user avatar
  • 663
0 votes
0 answers
7 views

Joomla 4 / 5 Module Layouts naming [duplicate]

When using the following field in my module xml: <field name="layout" type="modulelayout" label="...
Marco's user avatar
  • 663
0 votes
1 answer
12 views

Admin Sidebar not appearing in one view in J5 component

So I have rewritten one of my j3 components for J5, hopefully following the new standards (my first attempt) All admin views work fine except for one where the admin sidebar does not appear (as if it ...
RogerCO's user avatar
  • 61
0 votes
0 answers
36 views

Duplicate issue when using tags component as a menu item

The problem is this. Created a menu item - list of tags. I will give an example for clarity. site/tags-menu-item, if you add for this menu item, for example, site/tags-menu-item/55/, a duplicate will ...
Sergei's user avatar
  • 11
0 votes
1 answer
28 views

RSform Use button to send form fields to url

Im trying to use onclick to send data from a simple form via a url to fill in a signup form. onclick="window.open('http://url.com/signup/{name:value}/{email:value}');" It does not include ...
Samier Saban's user avatar
0 votes
0 answers
23 views

Trying to convert PDF to JPG using Imagick

I have PDF documents created using FPDF and I wish to convert to jpg for displaying purposes. I believe I have installed Imagick correctly and set the php.ini file to see it but when I try to suck it ...
Glenn Arkell's user avatar
0 votes
1 answer
26 views

Custom Form Field Type in Module Settings not got rendered (J4)

For my Project i need to render a custom form field based on the ListField I try to use the "new" conventions for J4 and later using namespacing etc. this is the relevant part of my xml: ... ...
Marco's user avatar
  • 663
1 vote
2 answers
62 views

For how long will legacy component MVC structure work in Joomla?

Legacy component MVC structure: com_foo |- controllers | |- foo.php |- helpers | |- foo.php |- models | |- forms | | |- foo.xml | |- foo.php |- views | |- foo | | |- tmpl | | | |- default....
mavrosxristoforos's user avatar
0 votes
1 answer
53 views

Calling getState Model method in a custom model method

I have a method in a model and I need the array of state variables. In controller it's easy, simply get an $model object and get the array with $state = $model->getState(); But in a model all my ...
Peli's user avatar
  • 103
2 votes
1 answer
31 views

Custom Module not on the JED how to show compatibility information?

We developed multiple extensions for our clients, but none of them are published on the JED. We also do not want to publish to the JED since they are custom extensions. All our extensions always show ...
purple11111's user avatar
1 vote
1 answer
46 views

Line Breaks in Joomla 5 language fles

It seems that a fresh install of J5.0.1 does not allow line breaks in the text value part in a component language file. Is this correct? In previous versions you could break long text strings over ...
RogerCO's user avatar
  • 61
0 votes
1 answer
61 views

Problem inserting Joomla 4/5 Custom Field in Text Article-simple syntax solution?

Use Case: I maintain a simple site for a small orchestra. Originally written in Joomla 2010, updated to Joomla 3 in 2016 and now updating to Joomla 4/5. Each concert, the items, conductor, soloists ...
DerekE's user avatar
  • 1
1 vote
0 answers
71 views

Passwordless login on Joomla 5

Is it possible to set up passwordless login on Joomla 5? This excellent article by Nicholas Dionysopoulos explains how to do it in Joomla 4. In that case,the user still had to enter his/her username. ...
Bruce Button's user avatar
0 votes
2 answers
75 views

How to truncate category description?

I'd like to be able to truncate the character length of the article category description. This is the code that renders the description: <div class="com-content-category-blog__description ...
Brendan Hedges's user avatar
0 votes
1 answer
49 views

Loading a JS file with web asset manager for Bootstrap modal

I'm loading a Bootstrap modal file in HtmlView.php and then a js file to manage it with the following schema: joomla.asset.json ... "assets": [ { "name": "almacen....
Peli's user avatar
  • 103
1 vote
1 answer
73 views

Missing Guided Tours - Joomla 5

I just noticed that one of my J5 test sites is missing the Guided Tours listbox in the header. Did a reinstall of core files, checked the plugin was enabled, but still no Guided Tours. Any pointers ...
Glenn Arkell's user avatar
1 vote
0 answers
68 views

Joomla 4-5 backward compatibility plugin not working

I was under the impression that all plugins which worked under Joomla 4 would work under Joomla 5 with the Backward Compatibility plugin. However, with one of my extensions (Minitek Slider), I get ...
Bruce Button's user avatar
1 vote
1 answer
28 views

Guided Tours - in custom component

I am trying to utilise the GuidedTours component within my custom component so that I can provide my users with some direct online help. So I'm having some problems with the target field so that the ...
Glenn Arkell'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
  • 663
0 votes
1 answer
32 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
0 votes
1 answer
62 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
57 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
36 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
45 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
51 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
  • 663
0 votes
1 answer
111 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
71 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
  • 663
1 vote
1 answer
219 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
  • 663
0 votes
0 answers
29 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
43 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
153 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
123 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
51 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
142 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
  • 663