Questions tagged [development]

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

Filter by
Sorted by
Tagged with
2
votes
1answer
48 views

How to open a new window/tab or modal from within a component

I am trying work out how I can pop up a modal or open a new window or tab when selecting a button on a form that processes the form and passes to another extension? I can't seem to find any examples ...
1
vote
2answers
53 views

How to use SQL statements not supported by JDatabaseQuery

Recently, I have needed to use some SQL statements that are not supported by the JDatabaseQuery class, specifically REPLACE INTO and INSERT IGNORE. The only way that I am able to get something to ...
1
vote
1answer
42 views

Restrict access to your paid extension

Our company is wanting to deploy a pro and free version of our extension onto JED. Is there any way that I can prevent people with the free version from hacking to get the pro version? I would like to ...
2
votes
1answer
260 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 ...
3
votes
1answer
49 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 ...
1
vote
1answer
41 views

How to use Openlayers transpiled Javascript code in my own extension (a “bundle”)

I am developing a Joomla 3.x content plugin to display Openlayer maps in articles based on @Robbie Jacksons excellent tutorial at https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_a_Map ...
0
votes
0answers
14 views

Implementing CSRF protection with Techjoomla's API plugin

I am writing an API and I want it to check that the data that has been entered came from a valid user session on my website. The API uses Techjoomla's API Plugin. When I send a 'POST' request to my ...
1
vote
0answers
19 views

Form With Buttons That Don't Submit Data

I am trying to make a page that performs various functions in vanilla Javascript. One of the functions involves submitting form data to Joomla. However the issue I have is that Following the following ...
0
votes
0answers
21 views

1146 Error when creating custom table

I have created a secondary user table to store other information in the Joomla database. However, when I try to insert information into that table, I get this error. 1146 Table 'database.#__vvuser' ...
2
votes
2answers
49 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 ...
1
vote
1answer
294 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::...
3
votes
3answers
140 views

Multilingual site where several countries share the same language

I'm making a multilingual site where I'm using Spanish, English, German, and others. I have already made several multi-language sites and I am familiar with the process but in this case, my client ...
0
votes
1answer
34 views

How to write Joomla functionality that writes image data directly to the browser?

I am in the process of writing Joomla functionality that will produce JPEG-images on the fly using Imagick and GD. It is supposed to be used in Joomla articles like this: <IMG src="/index.php?...
21
votes
4answers
14k views

Joomla 3.x extension development tutorial for a beginner developer

I worked extensively in Joomla 1.0.15 version and developed multiple extensions. Also, I continued my developed in Joomla 1.5.x But, my developed discontinued after this release. Now, I want to start ...
0
votes
0answers
26 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
19 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/...
0
votes
1answer
17 views

Reason for parameter for using custom fields in configuration

In the Joomla Core Extensions we have a parameter for selecting if custom fields are used in an extension or not. For example here: https://github.com/joomla/joomla-cms/blob/staging/administrator/...
0
votes
1answer
119 views

How can I generate a stubs file for Joomla?

I'd like to develop Joomla components with VS Code. With PHP Intelephense enabled, all my file show errors because I use Joomla classes and functions. (And it would also be convenient to have auto ...
1
vote
1answer
35 views

DPDocker and Joomla

I'm new to Docker. I tested https://github.com/Digital-Peak/DPDocker. I was able to implement things quickly with the component https://github.com/Digital-Peak/DPAttachments. Now I'm in the process of ...
0
votes
1answer
55 views

Creating a Library with multiple classes within a single file

I am trying to incorporate an external application as a library within Joomla which I have done before on a couple of occasions, however in this case there is a single .php file with about 20 classes ...
2
votes
2answers
162 views

How to configure Eclipse Project for Joomla Component Development

I like to develop a fresh Joomla Component for Joomla 3.x in Eclipse and created therefore a simple PHP project. The problem I have is now how to setup the correct "include path", so that the basic ...
1
vote
1answer
580 views

Pass PHP variables to CSS?

I want to pass some variables to my css, without using inline styles. During some research I found different sources pointing to the same solution. For example here on the Joomla forum. Basicly they ...
1
vote
2answers
75 views

Use addScriptOptions for multiple modules on same page

I am passing some params to JS in my custom module using the addScriptOptions provided by Joomla: $document->addScriptOptions("mod_mymodule", $params)); This works fine, as long as there ...
3
votes
2answers
969 views

Subform multiple data not saving

I'm trying to use the Joomla subform field with multiple="true" on (instead of using the old modal repeatable method). My problem is that the data is not saving to the database. I have read multiple ...
0
votes
1answer
59 views

Joomla php function which prints the pagename

Is there a php function to insert in the template which prints the name of the menu item of the displayed page?
2
votes
3answers
2k views

How can I add custom menu options?

We want to make the views of our component as res-usable as possible, displaying the data differently, depending on how the view is being used. The components parameters are suitable for the general ...
2
votes
3answers
76 views

Change existing template in Joomla 2.5

My live website is not user-friendly, and I'm considering to use a new template. I bought a template, but how can I use the new template for the same content with some modification? If I use new ...
1
vote
1answer
42 views

Problem accessing database from front end of a component

I am currently working on a component which will display "events", stored in a database, on a map (filterable by location, category, date etc...). My first step is to display a simple report of the ...
1
vote
1answer
198 views

In front end of component use the Admin controller and model to delete records

I would like some help in using the delete() methods of the AdminController and AdminModel when in a front end list view to avoid duplicating code unnecessarily. I have a listing of records in a ...
7
votes
2answers
5k views

Is there a way to know where jdoc:include type=head lines are being loaded from?

In a previous question I already got clarified how exactly did <jdoc:include type=head> work. Now I have a new question about it. Basically, any extension can add a call to new scripts, css ...
4
votes
2answers
602 views

How to use joomla language in a script?

I'm developing a module, in my template (MyModule/tmpl/default.php) I'm able to bring my language string to my script by doing this : <script type="text/javascript"> Mymodule.options.mydz = {...
1
vote
1answer
69 views

What is the different between JPlugin and \Joomla\CMS\Plugin\CMSPlugin

I was learning plugin development when I came across this. so for some plugin, I see class pluginA extends JPlugin for some others, I see class plgGantryEasyblog extends \Joomla\CMS\Plugin\...
2
votes
1answer
66 views

How to develop a survey extension which prevents respondents from taking a survey more than once?

I'm looking for advice on how to make a survey for my Joomla production (3.6.4) site. A key requirement is to restrict respondents to only taking the survey once (i.e. preventing 'ballot-box' ...
1
vote
1answer
523 views

Joomla User Password Reset from an External (Standalone) Script

I have the requirement for a user to reset their password from a mobile application that links into a Joomla site. I have had success in logging in (authenticating and returning a sessionid) but don't ...
1
vote
0answers
42 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 ...
3
votes
1answer
1k views

How to use joomla getUserState and setUserState to keep form field values

I try to reload a form with filled data using getUserState. I have read this document many times but I haven't understand where in my view o model I should set the userStatae . I know I should ...
1
vote
2answers
75 views

How to remove excerpts in joomla articles

On my homepage, I am listing all my blog posts from a category. I don't want to show there any excerpt of articles neither full article instead of a title and featured image. How can I achieve that?
10
votes
4answers
2k views

How to develop a Joomla module?

I've looked far and wide for a tutorial on this, but can't seem to find anything satisfactory. How do you make a new module for joomla? Right now I'm using custom HTML modules all over my code, and ...
1
vote
0answers
95 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 ...
3
votes
1answer
53 views

Why is my plugin not hooking into events?

I have a plugin that looks like this: class plgExtensionLogInstall extends JPlugin { function onExtensionAfterInstall($installer, $extensionId) { JLog::add("Extension installed: ".$...
2
votes
3answers
2k views

Script using JMail not sending the email

I have a component that I built to make calculations. I would like to allow the person to email their results to themselves. I have tried to create a mail function in the controller of the default.php ...
2
votes
1answer
361 views

Component name different to the default view name, how to display default view?

My component is named "com_xsomething" (to make it distinct). My main view is called "Something". I want to name my view "Something" rather than "xSomething". How do I write the main controller's ...
1
vote
3answers
3k views

How can I select the IDs of a category and all its (n levels) subcategories?

Beside the parent category, I would like to recursively collect all of its child rows. (Pseudo code) SELECT IDs FROM #_categories WHERE parent = father As an alternative, SELECT IDs WHERE the first ...
3
votes
2answers
551 views

How to sort my query's results by publish_up value?

I have a .php script that retrieve fields from my database table and then displays them in a foreach loop (here are the relevant parts of the code): <?php $jquery1 = "SELECT `...
3
votes
1answer
3k views

Creating custom field type multiselect list - how to save the values?

I want to make a module that parses the manufacturers from virtuemart, and the user will select which manufacturers he wants to be shown in the index page. Its the first time I try to create a custom ...
0
votes
1answer
34 views

Remove tag association when deleting an item in own component

I followed the MVC Tutorial from Joomla as close as possible to create my own component. I included Joomlas Tags system within my component using the Observer technique in the JTable class class ...
2
votes
1answer
1k views

How to load and use external libraries in a component?

I am wondering how to load "external" php-libraries into my component. I would like to fetch mail via imap. To get this working, I would like to use a lib which is able to handle smime-encoded mails. ...
4
votes
1answer
120 views

Get form input in custom field

I'm currently working on a custom field, where I manually add a checkbox to a file upload field. PDF Upload field In onContentBeforeSave I want to read this checkbox to decide what to do with the ...
1
vote
1answer
152 views

Form inside a backend component redirects me to index page

I got the function addNew() that creates a form inside a backend component. function addNew() { $route= JRoute::_( 'index.php?option=com_pelatol&task=insertyo'); $html.='<form action=...
0
votes
1answer
42 views

How to write a complex installer script for a component?

I would like to ask the user some questions in a dialog way during installation of my component. As far as I know, this could be done in the preflight method. But I am not sure how to do user ...

1
2 3 4 5
8