New answers tagged joomla-4.x
0
votes
Duplicate custom fields "media" to make "image" plugin
I'm not sure duplicating the media plugin is going to get you anywhere because even if you copy and rename the plugin to image, the layout that will be used will be the same, which will lead you back ...
0
votes
Joomla 4 Router parse function
I read further and dug into the Joomla code, in particular the Joomla\CMS\Router file. Fairly early on, the Joomla Site Application executes the Joomla\CMS\Router->parse function which in turn ...
0
votes
Accepted
File Upload from WebApp to Joomla API
After a lot of research I have finally found the cause of the error.
On the Joomla side, you need to set the CORS parameter Access-Control-Allow-Headers to Content-Type,X-Joomla-Token,Authorization,...
0
votes
Accepted
CSRF Token Mismatch Issue in Joomla 4 Custom Form Submission
You appear to be placing the token into an Article in the front-end Joomla Application, Site, but your bookingHandler.php is creating a backend or Administrator instance of Joomla with this line.
// ...
0
votes
How to conditionally display custom fields in template overrides
In your Joomla 3 example you are checking for the existence and contents of a specific property, value, in the &media array.
In your Joomla 4 example you are checking for the existence and content ...
3
votes
Does Jinput has a limit of max file size that supersedes PHP directives?
It could be because the file is detected as unsafe by file filter in Joomla. Unfortunately, the file filter is prone to false-positives which is most likely what's happening in your case. If you have ...
1
vote
How to conditionally display custom fields in template overrides
In your Joomla 3 example you are checking for the existence and contents of a specific property, value, in the &media array.
In your Joomla 4 example you are checking for the existence and content ...
2
votes
Does Jinput has a limit of max file size that supersedes PHP directives?
This is just one of Joomla frustrating:
works ok for small files, returns null on large files:$app->getInput()->files->get('jform')
works ok for both small and large files:
$app->getInput()->...
3
votes
Which line should PHP files in Joomla start with?
It makes no difference when used in extensions. But if you want to be technically correct, _JEXEC is the one to use. It's declared earliest, in the entry point file (i.e. index.php), and its sole ...
0
votes
How to authenticate a user with the official Joomla 4 REST API?
See the Joomla manual, in particular the "Using the PHP cURL Functions" part (because you probably run it outside the Joomla framework) : https://manual.joomla.org/docs/general-concepts/...
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->...
0
votes
Add a field (Sql or List) in article options with a search bar inside in Joomla 4
If anyone is interested in a more recent method (Joomla 4.3 and upwards):
When you edit the list type custom field (or SQL custom field type), go to the tab "Options" and at the "Form ...
1
vote
How to authenticate a user with the official Joomla 4 REST API?
I'm exactly in the same situtation. Mobile app users need to log in with their Joomla credentials. Seems like an obvious feature for a REST api. We used the cAPI plugin which offered this for Joomla 3....
1
vote
Fix deprecated JRequest in Joomla 4
JRequest had been deprecated since Joomla 3, so the documentation available for Joomla 3 is still valid for Joomla 4.
If you want to convert the old classes to the namespaces you can use this script ...
Top 50 recent answers are included
Related Tags
joomla-4.x × 456php × 43
custom-component × 32
custom-field × 30
joomla-3.x × 26
joomla-api × 23
joomla-4 × 23
component × 22
development × 19
plugin × 18
mysql × 15
javascript × 14
extensions × 13
router × 13
css × 12
database × 12
ajax × 11
articles × 10
administrator × 10
overrides × 10
html × 10
templates × 9
sef × 9
form-fields-types × 9
module × 8