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 ...
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 ...
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/...
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/...
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.
...
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 ...
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 ...
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 ...
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 ...
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) ...
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
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 ...
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 ...
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);
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
custom-component × 271joomla-3.x × 110
component × 56
development × 28
joomla-4.x × 26
php × 16
mvc × 13
custom-field × 11
custom-module × 11
view × 11
plugin × 10
form-fields-types × 10
model × 10
jroute × 10
mysql × 9
database × 9
jform × 9
xml × 9
extensions × 8
menu-item × 8
form × 8
administrator × 7
joomla-api × 7
ajax × 7
jtable × 7