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