Questions tagged [development]
This tag is for question about the development of features or extensions in Joomla.
396 questions
1
vote
1
answer
57
views
How to reuse Joomla admin list views features (sorting, filters, pagination) in the frontend?
I'm working on a custom component for Joomla 5, and I'm trying to create a frontend view to list "items" with sorting, filters and pagination — basically replicating what we get easily in ...
0
votes
0
answers
51
views
Facade: load a module dynamically in an article
tl;dr: I want to load a Joomla! module when a user click a button.
I have a dj-classifieds map module which calls the Google Map API.
This impact my website performances way too much.
I decided to ...
0
votes
1
answer
90
views
How to dynamically set a different default home page based on domain?
I have two domains pointing to the same Joomla installation:
www.domain1.com
www.domain2.com
I also have two menu items: landing1 and landing2. One of them is set as the default home menu item.
What ...
0
votes
2
answers
101
views
Joomla 4.x Is it necessary to use $app->close()?
In some extensions I have seen, the developer has used $app->close()
I have also seen this in some of the Joomla core.
Now I was wondering, since I have never used it, should I start using it or is ...
1
vote
1
answer
250
views
How to override J5 library classes
I have a component that needs to add dynamic properties to things like Joomla\CMS\Form\Form and others. At present I get a PHP warning about using dynamic properties which is fine, but come PHP 9 this ...
1
vote
0
answers
73
views
Using Javascript to trigger a long running task
I have developed a component, and in one view a button can be clicked to invoke a task in the Controller. This task can take several minutes to run, so I'd like to be able to prevent the button being ...
0
votes
1
answer
99
views
How to integrate Nicepage site on Joomla
I am kinda new to this whole website thing. Definatly dont have much experiance in coding ect, but I have created a whole website with a nicepage paid subscription. I downloaded Joomla and XAMPP. I ...
0
votes
1
answer
65
views
Generated <a> links to wrong URL
I generate a link in a module as follows:
$user->contactAddress = str_replace("//", "/", trim(JUri::base() . $params->get('defaultContactAddress') . '?' . $params->get('...
0
votes
1
answer
117
views
DB error using updateObject or Store after upgrading to Joomla 4
I am a component developer and now I am migrating my component to Joomla 4.x.
In Joomla 3.x I could do code like:
$row= new stdClass();
$row->id = "2";
$row->user_id = "";
$...
0
votes
0
answers
67
views
Problem setting image info when creating an article via the J4 REST API
I’ve been using the J4 REST API for a while to create articles from form data through the Webhook feature of the Convert Forms extension. It works great for both standard article fields and for ...
1
vote
1
answer
141
views
Setting ignore for Joomla files or directories
I'm new to developing in Joomla and I was wondering if there are a set bunch of files and directories you ignore say for example using the VSCode ftp extension or .gitignore.
I'm specifically looking ...
1
vote
2
answers
89
views
Does Jinput has a limit of max file size that supersedes PHP directives?
Here's one that is driving me crazy:
PHP memory_limit: 512M
PHP post_max_size: 256M
PHP upload_max_filesize: 128M
$app = Factory::getApplication();
dd($app->getInput()->files->get('jform'));
Returns:...
4
votes
1
answer
799
views
Create own Custom Field for Joomla 5
I am looking at how to create my own custom field using a self implemented form field in Joomla 5.
I started my extension in the same way as the core extensions (https://github.com/joomla/joomla-cms/...
0
votes
1
answer
543
views
Route not working properly on J4?
I have a menu entry like so:
ID: 524
Type: Articles->Create Article
Link: index.php?option=com_content&view=form&layout=edit
In the "old days" I'do Route::_('index.php?option=...
1
vote
1
answer
337
views
Joomla 4: no need for Route::_($url)?
I am using this on a custom component:
$url = index.php?option=com_content&view=article&catid=427&id=15106
Both
echo $url;
echo Route::_($url);
will output a friendly url.
I'm guessing ...