New answers tagged

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 ...
James Wadsworth's user avatar
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 ...
James Wadsworth's user avatar
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,...
cappu's user avatar
  • 137
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. // ...
Irata's user avatar
  • 3,587
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 ...
Sagar Shah's user avatar
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 ...
Sharky's user avatar
  • 10.8k
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 ...
Irata's user avatar
  • 3,587
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()->...
Alexandre Paulo's user avatar
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 ...
Sharky's user avatar
  • 10.8k
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/...
pe7er's user avatar
  • 1,948
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->...
Irata's user avatar
  • 3,587
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 ...
jackJoe's user avatar
  • 855
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....
sobo's user avatar
  • 111
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 ...
James Wadsworth's user avatar

Top 50 recent answers are included