Skip to main content
4 votes
Accepted

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

In your manifest .xml file for your extension(s) you can specify the <updateservers> element that provides a link to your own website that contains a .xml file that has details about your ...
Irata's user avatar
  • 3,927
3 votes
Accepted

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

Yes, just use the old way using getInstance for now. I came across this when I was updating the Joomla MVC tutorial component to Joomla4 and wrote up the issue here. The reason is that all the other ...
Robbie Jackson's user avatar
3 votes

How to truncate category description?

Joomla provides a string truncating function of its own that provides more options and extra processing than the substr of PHP. Details of the function can be found in ..\libraries\src\HTML\Helpers\...
Irata's user avatar
  • 3,927
2 votes
Accepted

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

There is an error in router documentation. Capture group brackets are actually added automatically. So you shouldn't use them in your patterns: ['nr' => '\d+', 'id' => '\d+']
Sharky's user avatar
  • 11.3k
2 votes
Accepted

Missing Guided Tours - Joomla 5

The Guided Tours functionality needs: Plugin: System - Guided Tours Plugin (type: system, element: guidedtours) Admin Module: Guided Tours (module type: Guided Tours) Could you check if you have ...
pe7er's user avatar
  • 2,023
2 votes
Accepted

Guided Tours - in custom component

Found it. I needed to enter a step to click on the tab heading to direct the focus over to the new tab. So in my situation the target for this intermediary step was target=button[aria-controls=...
Glenn Arkell's user avatar
2 votes

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

My understanding is I don't believe it will 'stop working'. The new structure is guideline or preferred structure that brings Joomla inline with other frameworks. You can have whatever structure you ...
Irata's user avatar
  • 3,927
2 votes
Accepted

Creating site routes from Administrator client

Corrected Response ---------------- I tried this on a Joomla 4 component which I have and it worked ok, so I reckon you should be able to get it working. That exception gets created in the ...
Robbie Jackson's user avatar
2 votes
Accepted

Add Tags Feature to Custom Component

The changes necessary for getting the joomla mvc component tutorial working are listed in https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Upgrading_to_Joomla4#Miscellaneous_Changes. The tags ...
Robbie Jackson's user avatar
2 votes
Accepted

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

File / Folder Structure src / - Field / -- [FieldName]Field.php Namespacing In the XML: <namespace path="src">[COMPANY]\Module\ModuleName</namespace> Then you need to add the ...
Marco's user avatar
  • 665
2 votes
Accepted

Component with a module included - JED Checker

<modules> and <plugins> elements are not part of component manifest schema. They are not used by Joomla in any way. You must be using custom code in your install script to install/...
Sharky's user avatar
  • 11.3k
1 vote
Accepted

How to replace deprecated get() Function on CMSObject?

This is my getItem (J6) in a single record model example. Hope this helps. /** * Method to get an object. * @param integer $id The id of the object to get. * @return mixed ...
Glenn Arkell's user avatar
1 vote

Frontend New Button and Router.php

I have always had SEO friendly switched on and not had an issue with the router blocking. So I thought I might as well post my whole router.php file here so that hopefully it may help. I have 3 ...
Glenn Arkell's user avatar
1 vote
Accepted

Joomla 4 / 5 - Custom Field Plugin

You need to register namespace for field class lookup: \Joomla\CMS\Form\FormHelper::addFieldPrefix('NXD\\Plugin\\Fields\\NXDFolderList\\Field'); And also fix capitalization of field type. It is ...
Sharky's user avatar
  • 11.3k
1 vote
Accepted

How to set and use a global variable within a content plugin?

Normally plugins in Joomla are instantiated only once per request. So using a class member variable is the cleanest solution: use Joomla\CMS\Event\Content\ContentPrepareEvent; use Joomla\CMS\Plugin\...
Sharky's user avatar
  • 11.3k
1 vote
Accepted

Scheduled Task - Plugin to use Rules

Apparently, the entire task object is passed to the event but there is no proper method for retrieving it. So you have to resort to using getArgument(): $rules = $event->getArgument('subject')->...
Sharky's user avatar
  • 11.3k
1 vote

Scheduled Task - Plugin to use Rules

Looking at the code in /administrator/components/com_scheduler/src/Task/Task.php the execution_rules aren't included in the event. So going from the code there: $event = AbstractEvent::create( '...
Robbie Jackson's user avatar
1 vote
Accepted

Joomla Custom Field Type Plugin No Translateable Label

If you look at other language constants, you'll see they follow PLG_FIELDS_{ELEMENT}_LABEL pattern. You need to add PLG_FIELDS_NXDFOLDERLIST_LABEL language constant to your language file. Ideally, all ...
Sharky's user avatar
  • 11.3k
1 vote

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

According to information from volunteers over at the Joomla Mattermost community, the most up-to-date information is the one found in code comments. I received this link to Joomla's code that ...
mavrosxristoforos's user avatar
1 vote

Line Breaks in Joomla 5 language fles

This B/C break has been introduced as part of security fix in 5.0.1 and 4.4.1. It is possible to fix the vulnerability without introducing this break. A patch has been submitted to mitigate the issue. ...
Sharky's user avatar
  • 11.3k
1 vote
Accepted

How to truncate category description?

You can use substr PHP function for that : https://www.php.net/manual/fr/function.substr.php <div class="com-content-category-blog__description category-desc"> <?php $str ...
Seb's user avatar
  • 79
1 vote

Using Text::sprintf with Text::script

There is no built-in function in Joomla and JS has no equivalent of sprintf(). You have to write your own. It may be impractical to try mimic PHP in JS so instead you could write a simplified version ...
Sharky's user avatar
  • 11.3k
1 vote
Accepted

Visual Hint on ordering by custom column in backend

This is an example from a View of mine where the HTMLView class gets the List Order and Direction values $this->listOrder = $this->escape($this->state->get('list.ordering')); $this->...
Irata's user avatar
  • 3,927
1 vote

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

You could change the logic of your processing in the Model so that the spreadsheet is only presented if there is data retrieved to be displayed, in which case Closing the Application would make sense. ...
Irata's user avatar
  • 3,927
1 vote
Accepted

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

After to have re-checked it works by doing that : <targetplatform name="joomla" version="4.(3|4)|5.0"/>
user3533235's user avatar
1 vote

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

Try this one ^(4\.([3-9]|10)|5\.([0-9]|10))\b Feel free to change the range of supported versions.
Dmitrijs Rekuns's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible