Questions tagged [development]

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

15 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
1answer
38 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 ...
2
votes
1answer
253 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 ...
1
vote
0answers
37 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
77 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
239 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
16 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 ...
1
vote
0answers
362 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 ...
1
vote
0answers
367 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
479 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
84 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
728 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
40 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
88 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 ...
1
vote
0answers
204 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. ...
0
votes
0answers
15 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/...