Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [development]

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

3
votes
1answer
40 views

How to write a query with GROUP BY and ORDER BY using Joomla's query methods?

I have the following query that I need to convert to Joomla using JDatabase. This query executes as intended in the phpMyAdmin. SELECT `id`, DATE_FORMAT(`estEventDate`, '%b %Y') AS estDate, COUNT(`id`...
2
votes
1answer
26 views

MVC what stage sets a task if none provided

I am trying to understand Joomla's MVC logic. please help me figure out the processing of the task Unedited code from a Joomla package has the front end article edit form with the task field, but its ...
1
vote
1answer
34 views

How can I add custom user field values to an article?

I have created a custom user field named "Gender". How can I show this field in an article? I can only manage to show: username, name, email and User Id Here is my current Sourcerer code to access ...
1
vote
1answer
70 views

in Joomla 3.8 default search tools do not respond in my own component and cannot set and get state of the filters

I try to get some help from you to spot what I am doing wrong (what I am missing) on applying search tools and filters in the admin of Joomla 3.8 in my own component. I am pulling my hairs out since ...
0
votes
1answer
39 views

How do you start new project design implementation? [closed]

You choose the framework and extension for your new website project and actually all is set. The designer sends you some Photohop files with new design. I tried to find online some instruction what ...
1
vote
1answer
23 views

Get whole POST with JREQUEST_ALLOWHTML

In order to get the whole POST I do $app = JFactory::getApplication(); $jinput = $app->input; $data = $jinput->getArray($_POST); that works ok. But I want to apply the filter ...
1
vote
2answers
50 views

Change user default language programmatically

In a custom component I'm making, I need the user, in his private area, to choose the default language for the web. It is a custom form, and I already render the language selector, but I don´t know ...
2
votes
1answer
70 views

Reload admin form after save field in database

In a custom component I need the user in the edit view of an item to be able to load a field in the editor field through modal and ajax. The case is the user can fill an editor field from a text ...
1
vote
1answer
36 views

file upload in admin backend - custom component

In my custom component/admin, in the item edit template I am trying to let the user upload a file. The problem is that the file is not being passed in my save function. There is not even in the array ...
1
vote
1answer
83 views

Get com_contacts item by id?

I need to get a com_contacts item the same way Joomla does (so I can re-use a template for example). I know I can get the item by querying the database directly, but that won't prepare things the same ...
1
vote
1answer
53 views

Why does the truncateTable() method create an empty string for a query and fail to delete rows?

I have the following code attempting to truncate a table. The Joomla documentation makes me believe this will work, but it does not. What am I missing? $db = JFactory::getDbo(); truncate_query = $db-&...
0
votes
0answers
16 views

Create user / category on new item in custom component

I need some help and ideas to achieve the following scenario. In the administration when adding new item in my custom Joomla 3 component I need to link the item to a specific user. The user will not ...
0
votes
0answers
16 views

Best way to handle a possible duplicate data

I am developing a component where it has multiple users: - Parents - Coaches - Players Parents can login to the site and 'create' a player (which is their child) and check their stats throughout the ...
3
votes
1answer
27 views

How is the relationship between template styles and menus stored in Joomla 3.x?

I'm working on a tool that imports content for a new language. As part of that process, I'm creating a copy of a template style specific to the new language. After making a copy of the template style ...
0
votes
0answers
32 views

Component SQL install script works in phpMyAdmin not in script

I have an install sql script for my component which works fine standalone but not when it is run during the component installation process. (in file sql/install.mysql.utf8.sql) I am adding a column (...
5
votes
2answers
73 views

Errors de-crypting libsodium encrypted values from database

I've been implementing some encryption at rest in one of our Joomla components, but keep getting a couple of errors when de-crypting the values when they're written and read from a database. So I ...
3
votes
1answer
39 views

Component Development PHP Version Check

I've been developing a component, and have been trying to find some information, to no avail, of having my component perform a check of the PHP version before install. If PHP is greater than 7, then ...
0
votes
0answers
28 views

How to run joomla component functions from console

I am developing a component and want to create a test file that will load necessary Joomla libraries and then run a function from my class in console. Component directory looks like this: /...
4
votes
1answer
264 views

Using external library with a component

My component is using phpExcel library; I put it into /libraries/phpexcel/Classes. This is an independent (and quite big) library, so I thought, that it would be wise to tell the admin where to put it ...
1
vote
1answer
25 views

Using a non-numeric ID in a backend component

In a backend component, I have one table that does not have numeric ID numbers. It is instead indexed on a unique alphanumeric value (think like a list of U.S. territories indexed on abbreviation, e.g....
5
votes
2answers
121 views

How to reverse-engineer a 3rd party Joomla extension to clone it and to be able to make modifications to it?

I have a template from a provider in which they've included a new content type and a com_content override. The template is a quick install. I'd like to find out - what files have been added by ...
1
vote
1answer
33 views

What is the difference between onAfterGetMenuTypeOptions and onBeforeRenderMenuItems plugin triggers

Both of these plugin triggers have been mentioned by @Craig in his reply to another question, but what they actually do is not so clear. In /administrator/components/com_menus/models/menutypes.php ...
0
votes
1answer
42 views

Advice on a manager/employee area

Hi this is most a request for help and advice than a question. I hope this is fine with the policies of this site as I think the answers can be useful for more users. I developed a custom component ...
1
vote
0answers
13 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 ...
0
votes
0answers
90 views

addScript breaking frontend editing

I have a piece of code in a component that I am building that loads maps in a tab in the admin view. The code works perfectly on the admin side, but when I attempt to add frontend editing, it's ...
1
vote
0answers
438 views

Subform inside modal [closed]

I am using subform form field type inside my plugin parameters (I am reusing a form in several places of my plugin parameters, with success). What I really need to manage is to use each subform ...
0
votes
2answers
31 views

Joomla learning extension

I am looking for an independent platform, or an "extension" for joomla, that has or allows to develop the following characteristics: Role 'Student' - This has a personal page where you will be ...
1
vote
1answer
53 views

Why getProfile is auto decrypting value

I am building a custom profile for a component I am writing. I added a password field that I encrypted with php code. That all worked. I will show my steps below. The weirdness start when in the ...
1
vote
1answer
21 views

JRegister::merge does not give correct results

I am developing a component. At the site part model, inside getItem($pk) I am using: $params = new JRegistry; $params->loadString($this->item->params, 'JSON')...
1
vote
0answers
219 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
1answer
55 views

pdf protecting with joomla extension

I'm developing a Joomla site. There are 3 features needed: - file management, to grant access to an user to certain PDF files - PDF edit to insert the user's name - PDF edit to protect the pdf with ...
1
vote
2answers
386 views

Joomla 3.7 change value in database after form button press

I want to do something really simple, but have to use Joomla what makes it probably complicated because I have less experience in Joomla development. I have field with a value (a number) which is ...
1
vote
2answers
133 views

Plugin to change incoming url

I am creating a component but need to redirect all incoming requests to the new component. The URL looks like this currently: index.php?option=com_component&view=xxx and when this comes in I want ...
0
votes
2answers
267 views

How do i edit only the homepage from the joomla template?

I have used clever template and edited index.php file by adding some lines of code: <div class="col span_8"> <div id="message"> <h2> Message From ...
0
votes
1answer
86 views

How to remove rel=“nofollow” with Joomla Buffer?

I am developing a plugin to get rid of any rel="nofollow" on HTML links using a buffer, but its not working. I am testing it with a nofollow link on a Custom HTML Module. I thought that "JFactory::...
1
vote
3answers
736 views

Create SEF URLs from a Custom Component that does not search on database

I am creating a custom component that will get data by json from another url. So far it works good but I am having some difficult trying to apply a SEF URL with a router.php file. Example, current ...
3
votes
2answers
501 views

What is wrong with this XML Package Installation file? Joomla cant find XML on Package

I am following everything on: https://docs.joomla.org/Package And still got the error: JInstaller: :Install: Can't find Joomla XML setup file. The XML file has the correct name. The package zip ...
3
votes
1answer
351 views

Where query in Joomla component - what file do I edit?

Okay, so I am completely new to Joomla and I am trying to edit the source files of a component I built using component-creator.com. I have a database which stores different data for multiple ...
1
vote
2answers
178 views

Set Prefered Template with parent:display()?

I have a site that uses 2 template styles for 2 different domain names running on the same Joomla installation. (Both have the same root template.) I'm creating a custom component and a specific task ...
0
votes
3answers
131 views

How to remove specific articles from blog view using a plugin custom code. Its possible? How?

I would like to prevent some specific articles from being shown on com_content blog view and featured articles view. For example, if the article has a specific ID that I seted on code like "27" he ...
1
vote
0answers
235 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">...
7
votes
1answer
58 views

Package installation with conditions

I have a package (Joomla! 3x) that contains 2 plugins and it install/update and uninstall correctly. But now, I need to refine the installation/update process. Scenario on fresh installation: If ...
4
votes
1answer
92 views

Change 'Help' button url inside plugin

Is it possible to change the 'help' button url inside a plugin (that I am developing) to get the documentation from my site? I managed to add not replace, with JToolbarHelper::help()
3
votes
1answer
489 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
2answers
167 views

Store data from URL in Joomla website database

I just came through a scenario regarding joomla website. The scenario is: Data in URL is passed to Joomla website and from the URL Joomla must store the data into the database. Is this possible in ...
0
votes
1answer
169 views

Pass xml field inside module's helper class

I have a custom Joomla module. In the helper.php class, I need to pass XML field data. Here is what I have so far. class modcatbanerHelper { // I need to pass here public $selected_cat = $...
1
vote
1answer
35 views

Custom message by menu item

One of my clients wants to display a message for SEO purposes on each page (menu item) and I know this can be easily solved with several modules of the type "custom html" each one assigned to its ...
2
votes
1answer
343 views

How to use Github as an auto-update deployment server for Joomla 3.x extension

I have gone through the two closest topics I could find here, but the auto-update extension still does not work. I have created a 3rd party extension called paystack, that works with the Jeema SMS ...
0
votes
1answer
95 views

joomla url changed after come back from server

With help of this document I am developing a component.I have below code in my edit layout: <form action="<?php echo JRoute::_('index.php?option=com_resdesk&layout=edit&id=' . (int) $...
4
votes
1answer
539 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 ...