As of May 31, 2023, we have updated our Code of Conduct.
4 votes

How to create a (better) development environment for Joomla 4

I've not used Docker so I can't help with that, but I have xdebug set up on my local environment in combination with PHPStorm and that is a big help in enabling me to figure out why something's not ...
Grant Hood's user avatar
3 votes

How to create a (better) development environment for Joomla 4

I use PHPStorm + Xdebug. I used to use my own LAMP stack on my Linux computer. Earlier this year I switched to a very nice docker environment docker-lamp created by Guido De Gobbis. It's a bit ...
pe7er's user avatar
  • 1,803
2 votes

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

J4 component URL not SEF

Solution found, all details on https://forum.joomla.org/viewtopic.php?f=831&t=996848 To create a routing in J4 with same behavior that J3, you need to create 4x files : /com_componentname/src/...
Yann's user avatar
  • 41
2 votes
Accepted

How does a custom component store config.xml information

The error message is being displayed because there is an issue with the name of the config.xml or the path where it is located. There are no references stored in the data base relevant to the issue. ...
Irata's user avatar
  • 3,057
1 vote

How can I clear the cache for the params of a custom component?

Are you using custom caching or built-in ? I've never had problems with component cache. I've put your snippet inside com_content and it worked despite cache was on. You can delete all site cache via ...
Elboyler'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,057
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,803
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
1 vote
Accepted

Proper way to access Component config from API?

The "more direct" way is: ComponentHelper::getParams('com_example'); || ComponentHelper::getParams('com_example')->get('yourParam'); But yes, is through ComponentHelper class
Carlitorweb's user avatar
1 vote

Custom J4 Component - Multiple Models & Different Category "Groups"?

I think you do not need create another "group of categories", if you do, you will lose the point of bring categories to your component. Just use the one you have. Create a different parent ...
Carlitorweb's user avatar
1 vote
Accepted

Custom J4 Component Problems with Multilingual Associations: Edit Associations

This is probably because your form view does not render the ID field. Associations script expects an input element with jform_id ID and the ID of the content item as the value. Since you're using ...
Sharky's user avatar
  • 9,936
1 vote
Accepted

Backend modal toolbar button that gets activated when list item selected

Use popup button: $bar->popupButton('modalButton', 'myModal') ->icon('icon-pie') ->selector('myModal') ->listCheck(true);
Sharky's user avatar
  • 9,936

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