Questions tagged [development]

This tag is for question about the development of features or extensions in Joomla.

17 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
1answer
43 views

How to replace deprecated Joomla classes with VS Code?

Is there a way to conveniently replace deprecated Joomla classes with VS Code. I do have the PHP CodeSniffer (with Joomla Coding standards) and Intelephense extensions, although I am not sure if ...
3
votes
1answer
259 views

Create record from modal edit form

Is there a standard Joomla mechanism / development pattern for creating a modal edit form to create an item from within another item? I've used this tutorial to create a modal list view, where you ...
2
votes
2answers
45 views

Reroute all emails to developer / debug address

I am trying to intercept outgoing emails from joomla and reroute them to my email address for development and testing. Ideally I could set up a toggle under Global Configuration > Server > Email ...
2
votes
0answers
17 views

Desktop application for macOS to generate components, plugins and modules

I would like to know if there's a desktop application to easy generate components, plugins and modules for Joomla. I have tested this two generators: https://www.npmjs.com/package/generator-joomla3 ...
2
votes
0answers
376 views

How to dynamically add extra input fields in k2 item form

Problem I'm currently working on a form which has to implement a way to create a schedule for a single day. It should use a time for when an event starts, and a description about the events. The ...
2
votes
0answers
205 views

Field function return the right results but $params->get return an array full of NULLS

I had a full working module that was parsing some values from a dropdownlist at backend and it was editing those values at frontend. Yesterday a co-worker changed something and today it doesnt work. ...
1
vote
0answers
41 views

List every contact including the ones in subcategories

I need a phone book with all people of the organization, but also need a separated phone book for each department. We have a "Main" category, with a few subcategories. I cannot duplicate the personal ...
1
vote
0answers
87 views

FieldsPlugin onCustomFieldsPrepareDom $field on save different on front and backend

I currently develop a FieldPlugin for myself. I noticed some things and don't understand them fully right now. My plugin works in the backend perfect, but raises errors on the frontend, so I did some ...
1
vote
1answer
263 views

From outside of a component how to change a parameter

In a system plugin, I am using the onAfterRoute event to change a single parameter from a 3rd party component before being loaded. public function onAfterRoute() { if ('com_abc' == JFactory::...
1
vote
0answers
374 views

Modal rendering issue

I am using the following code to render a Modal window in Joomla! 3.6.5, inside administration: echo '<a href="#modal-test-modal" role="button" class="btn btn-success" data-toggle="modal">...
1
vote
0answers
490 views

Using CodeMirror editor in custom component

I am trying to use CodeMirror as the editor for a field inside a component I am developing. I have specified the editor as codemirror in the form.xml file but I get a javascript error on the page: ...
1
vote
0answers
85 views

How to implement nested submenus in the administrative sidebar?

I'm using JHtmlSidebar::addEntry() to build a menu in the sidebar. However, I need a better way to organize the menu items in there. I don't see a way to easily create a nested menu structure. I'm ...
1
vote
0answers
766 views

Why doesn't my subform field data get saved?

I've been trying to debug this all day. I can't figure it out. My subform field: <field name="tricks" type="subform" formsource="administrator/components/com_test/models/forms/bagtrick.xml" ...
1
vote
0answers
41 views

$mymodel->publish($id, $state) returns “false” when calling it via CLI - on Web it returns true

I got a little problem: I would like to publish an item with some "different" states (1,0,2,-2,-1). I'm doing this this way: if(empty($this->getErrors())) { $tableitem->store(); $...
1
vote
0answers
90 views

Joomla Checking out items does not work correctly

I would like to check out items, that are edited by user XYZ. Well, it works so far: If somebody opens an item, the default-view shows the "lock" icon. But: If I click the link to the checked out ...
0
votes
0answers
23 views

Combine a custom module and component

I have inherited some custom components and modules for development. One module depends on one component very heavily. Is it possible to combine these two into one installable package? If so, how?
0
votes
0answers
18 views

What is best practice for inserting the link for custom fields in third party extensions

If I want to integrate custom fields into my Joomla 4 extension, then I have to change the database so that a link appears in the administrator menu, right? For example like here: https://github.com/...