2 votes
Accepted

How to register {my namespace]\Site\Service\Category?

Silly me. I was looking at the /services/provider.php file on the administrator part. This problem was on the site part. I simply copied "Category.php" from JROOT/components/com_content/src/...
Alexandre Paulo's user avatar
2 votes

Joomla 4 Custom Component > Custom Fields Integration

At first glance you're missing the getContexts and validateSection methods which you should have in your extension class. Your extension class also needs to implement Joomla\CMS\Fields\...
Robbie Jackson's user avatar
2 votes
Accepted

J4 Component: Add Modified By and Modified On Database Record when using JForm and an AdminModel Model

With the default implementations, that is using classes that inherit from FormController and FormModel, your form data will be submitted to your controller, passed to your model first and then passed ...
Matt Garrod's user avatar
2 votes
Accepted

How to use Joomla.listItemTask in Custom Component

Controller task methods in Joomla do not accept any arguments. They should read data from Joomla\Input\Input object. The key to read depends on your HTML markup. It is the name of the element with ID ...
Sharky's user avatar
  • 10.8k
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,597
1 vote
Accepted

how to update item by using ajax on custom component joomla 4

Dears & dear Irata I finally changed my way. This is the way of updating that blocked on the model side. Here are the changes if it can help Default.php $.ajax({ type: "post",...
Nicolas AZHAR's user avatar
1 vote
Accepted

Joomla 4: Adding category parameter(s)

I tried this out and this worked for me: <?xml version="1.0" encoding="utf-8"?> <form> <fields name="params"> <fieldset name="groups&...
Robbie Jackson's user avatar
1 vote

Link to component appears empty

Try disabling the SEF Url's. If (JTestFolder) is your namespace in your provider, then it can potentially be Search Engine Friendly URL. TO disable: To test if this is the issue, you can try disabling ...
DeesreX's user avatar
  • 87
1 vote

Joomla 4 Upgrade issue with custom component

The ItemModel class (JModelItem) that you are extending with your class CloudCardModelCard is defined as abstract in Joomla 4. abstract class ItemModel extends BaseDatabaseModel implements ...
Irata's user avatar
  • 3,597
1 vote

Display only one Category and its sub-categories

You could use the SQL form field type type to get the right categories + their catids. See: https://docs.joomla.org/SQL_form_field_type Or better: create for your component its own Fields that you ...
pe7er's user avatar
  • 1,948
1 vote

Custom component categories missing after upgrade from 3.10 to 4.x

Your table which contains the items which go into each category needs to have a few columns: `id` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT 'Item unique ID', `catid` BIGINT(20) ...
Carlitorweb's user avatar

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