Questions tagged [development]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
31 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\...
1
vote
0answers
25 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
53 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
30 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: ".$...
1
vote
2answers
32 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?
0
votes
1answer
25 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 ...
4
votes
1answer
90 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 ...
0
votes
1answer
63 views

Accessing path to tmp directory in my component

How can I access in a custom component the full path to tmp directory configured in the Joomla configuration? I have changed the tmp directory to be outside of the Joomla! installation.
0
votes
1answer
38 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 ...
2
votes
1answer
67 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 ...
0
votes
2answers
71 views

Getting post installation script to run for a module

I've a module that I want to run a script post installation, post update etc. I think this can be done by adding a script.php into the module zip file and then calling it in the installation file. &...
1
vote
1answer
150 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::...
2
votes
2answers
238 views

Using external PHP library and defined('_JEXEC') or die;

I want to use hatemile-for-php library (https://github.com/hatemile/hatemile-for-php) in my plugin. As I am only ever using this library within this one plugin, I included it in the plugin folder ...
1
vote
3answers
43 views

Develop a System Plugin with Sample Data for Options

I'm in the process of developing a system plugin. In the options is a subform-field (repetable), which contains several fields. In the "default" of the subform I can specify a record. a) How can I ...
3
votes
1answer
512 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
50 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
192 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
239 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
44 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
48 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
255 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
292 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
127 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
392 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
102 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-&...
3
votes
1answer
32 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 ...
5
votes
2answers
121 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
74 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 ...
4
votes
1answer
711 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
27 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
161 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
62 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
45 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
15 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
1answer
492 views

Subform inside modal

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
35 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
65 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
36 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
301 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
69 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
522 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
213 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
616 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
131 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
921 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 ...
1
vote
2answers
667 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 ...
2
votes
1answer
421 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
322 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
223 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
337 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">...