All Questions

Filter by
Sorted by
Tagged with
1
vote
1answer
63 views

How to programmatically set the value of a custom field of type checkbox?

In articles, I have created a series of custom fields, including two date fields and a checkboxes field. Now, through a plugin in the onContentBeforeSave event I need to verify that if date 1 is less ...
0
votes
0answers
46 views

Error: “Invalid controller class: display”

I've installed Joomla 4 to test with, and I'm getting this error on every attempt to login to the admin: Invalid controller class: display I've re-installed and am using the latest alpha release. ...
1
vote
1answer
31 views

Transfer Custom Code to Module / Plugin / Component

Joomla 3.9.12 I've been using Sourcerer in order to place custom code throughout my site, it's working well so far. I've created a custom html module, within this I have added PHP, JS, HTML and CSS. ...
1
vote
1answer
20 views

how to route url - JRoute get wrong itemid and wrong sef url

Joomla 3.9.12, JoomGallery 3.4 I have a site with joomShopping for e-shop and JoomGallery for portfolio. The site has 2 menus where some menu items of the first are menu item aliases of the second. ...
2
votes
1answer
30 views

Tips On How To Optimise A Joomla Site

Joomla 3.9.12 What's the most effective way of optimising a Joomla website? I'm not sure if my site is particularly large, details below; Files / folders 28GB Database 314MiB When I take a backup ...
0
votes
1answer
17 views

Prefill new user registration fields in the backend by URL

Hey I want to prefill in new user details by setting the parameters in a link. I am talking about the default Joomla User Manager in the BACKEND and then clicked on new user. So this link, ...
2
votes
1answer
27 views

Joomla4 plugin getBody

In Joomla 3.x versions I use JResponse to get and set the body. function onAfterRender() { $content = JResponse::getBody(); ... } But in Joomla4 it returns Class 'JResponse' ...
0
votes
0answers
22 views

Add rewrite rule for site login to .htaccess

I have been trying to add rewrite rule to .htaccess file but it does not seem to work. I have Joomla latest version and I am trying to do it by: # Return 403 Forbidden header and show the content of ...
0
votes
0answers
19 views

Install from web tab fails installation

Install from Web tab initially returned a blank page in both Firefox and Chrome. I disabled then uninstalled plugin. When I click on "Add Install from Web" button, I get the following: Error ...
0
votes
0answers
25 views

Change default backend language programmatically

I have a component installed which doesn't provide multilingual support. If I import data via the API, I can't import in a different language, only in the default backend language. Unfortunately, ...
0
votes
2answers
38 views

How do create an update for your existing Joomla plugin I've written?

I've written a simple Joomla plugin that I've been using for a year. I want to write an update for it. It would change what is in the .xml file and some code in the .php file. How do I go about ...
1
vote
1answer
15 views

Joomla Contact Component - can I change “Miscellaneous Information” to “Bio”?

I don't want my board members bio's to be called miscellaneous information. To avoid that I'm putting bio's in the address field! This is not a good permanent solution. I would like to know if there ...
0
votes
1answer
32 views

How to fix problem with relative path Joomla for a module using editor form field?

I have created one module in Joomla and added one form field of the type editor inside the manifest-XML. <field type="editor" name="myeditor" default="" buttons="true" hide="...
0
votes
1answer
33 views

how to get value for search in joomla module

how to get value for search in joomla module. Does anyone know how to get the value for the search field? my problem is that after i search for specific data it still shows everything In my helper....
1
vote
1answer
33 views

Extend an administrator class in the front end code

I have just upgraded my site from Joomla 3.7 to 3.9 and I am getting errors related to my code for a component model class that extends an administrator component model class. The require_once line ...
1
vote
0answers
14 views

Multiple Subform field in module - add multiple items at once

I have a mutliple subform field with radio buttons. All other fields load by showon of the related parent radio select. If there was added more than one item without saving successively, the radio ...
0
votes
1answer
31 views

htaccess to hide Joomla in public_html -> subfolder

I installed Joomla using a quickstart package and store the files in a subfolder (named: jml) in public_html/jml. I normally use the following commands to rewrite the url from https://www.test.com/jml ...
0
votes
0answers
19 views

Magically sections and positions getting lost or deleted

I have an issue on multiple pages, which I cannot explain myself. All pages have in common that they use gantry 5 based themes nearly the same plugins the magically disappearing section is <...
1
vote
0answers
18 views

How to avoid showing to users errors of type SQLSTATE?

I try to avoid showing this type of messages to the user I have tried to do it by modifying the global configuration but without success, I specifically modified the options Global configuration> ...
0
votes
1answer
16 views

Listening for a “image upload” event

I want to be able to programatically keep track of new images that have been added, so that I can periodically run a script that does something with the new images. My idea is to have a plugin that ...
1
vote
1answer
39 views

How to collect multi-row data from #__fields_values and assign specific aliases for each value in the result set?

I have the following (working) query to get name, username and the value of a custom field: // Get a db connection. $db = JFactory::getDbo(); // Create a new query object. $query = $db->getQuery(...
0
votes
2answers
40 views

How to tell if the file can be overridden?

How do we alter the output of a Plugin that is installed in a Component (Example: "ABC" plugin installed in a Component "ABCD")? I understand that the core files can't be overridden. But how do we ...
1
vote
1answer
31 views

As JSubmenuHelper is deprecated, how to migrate to JHtmlSidebar?

The only source I found about this is from this post: Replacing JSubmenuHelper with JHtmlSidebar / Administrative menu in Joomla 4 The issue here is that I tried it, and it doesn't show the Sidebar ...
0
votes
1answer
23 views

Remove default settings from fieldset basic in module

Is it possible to remove the default settings (sidebar) in fieldset name="basic" (Display title, module position, state etc...) and put them in a separate custom tab?
0
votes
1answer
9 views

How to override a link's href attribute in mod_menu?

Better title might be 'How to set the menuItem object 'link' property?' I've used menu overrides for a variety of purposes such as changing layout and styling etc but would now like to change the ...
0
votes
1answer
20 views

Is it possible to edit the SQL custom field to be multi-select?

I want to be able to select multiple values with the SQL custom field. Is this possible? When I use a query which as multiple results, I can only pick one. I found this post: Creating custom field ...
1
vote
1answer
25 views

Create a link from Backend to SEF Path in Frontend

I would like to create a link in Administrator Panel that redirect a user to an SEF url in Frontend. Code in Backend <?php $link = JUri::root() . 'index.php?option=com_content&view=article&...
1
vote
0answers
22 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
1answer
32 views

Get value for joomla calendar input box to use in ajax call

I have a joomla calendar set up: <?php defined('_JEXEC') or die; JHTML::_('behavior.calendar'); echo '<div id="calendarBoxes" >'; echo '<div id="...
1
vote
0answers
14 views

How to set default permissions of files uploaded through Joomla Media Manager?

I'm running Joomla(3.9.8) on an Apache/PHP server on Linux. If you touch a file as the server user (and from PHP running on the server), the permissions of that file are: -rw-rw-r--. However, if a ...
3
votes
3answers
276 views

How to prevent password reset from disclosing private email addresses?

The "Forgot your password?" password reset form in Joomla 3.x can disclose that an email address is registered with the site. This is a personal privacy violation which is illegal under some privacy ...
2
votes
1answer
24 views

What is the reason pagination of records its not working?

Following the Developing an MVC Component / Basic backend guide, I can't make the pagination to work, following the instructions this is the code I have, the records are listed properly and the ...
0
votes
2answers
16 views

Change the 'New Article' message sent to admins

I have a site where registered users can add content in the frontend and when added administrators are sent an email, notifying them of a new article. This is driven by languages constants: ...
2
votes
1answer
41 views

Get module params in custom form field

I need to get all other module field-params of the current module inside of a custom form field in backend. In tmpl/default.php it works with: $bgcolor = $params->get('bgcolor'); But in custom ...
0
votes
1answer
23 views

emails not sent from controller

I'm using a custom function in my controller to send emails, but the emails are not being sent. My code: function sendestimation() { $jinput = JFactory::getApplication()->input; $email = $...
0
votes
0answers
18 views

Add link to another form's submission view

I have two separate forms - a user form and an incident form. In the user submission view, I need to generate a link to all incidents that the user may have. These users may have more than one ...
2
votes
0answers
13 views

Deleting obsolete menu types

While programming a Joomla extension, I experimented with Menu Types, however while editing/deleting/adding types in the default.xml it doesn't delete the previous ones. So while I only have 1 menu ...
1
vote
0answers
22 views

Error coming from T3-framework while updating Joomla

I am trying to update the Joomla version and T3-Framework version of our website and there seems to be a bug somewhere. Current JOOMLA version: 3.7.4 Current T3-FRAMEWORK version: 2.4.1 I first ...
1
vote
1answer
30 views

Add custom code to the controller from com_weblinks

I want to add analytics tracking code before the component com_weblinks jumps to an external site with task=weblink.go. The problem is the jump is in the controller.php file. An override for this ...
1
vote
1answer
28 views

How to change custom field order in field group?

For articles, I have created two custom fields and I have registered both in a field group -- this much is fine. Now I would like to change the order in which the fields are displayed on the page. I ...
1
vote
0answers
23 views

Joomla frontend user removed from groups automatically on log in / log out

I have this weird bug everytime I log into Joomla with a non-administrative user. Every time the user logs into the site, he is removed out of all Joomla user groups, except the Registered group. I ...
1
vote
0answers
17 views

One joomla to serve as multi-domain/multi-site with subdomains (vhost)?

I am trying to solve the requirement to move some parts of the website to subdomains. But I do not want to split the website into multiple joomla instances My first idea was to use 301 redirects for ...
0
votes
0answers
17 views

How to tell ReDJ to redirect all except given paths (negate /path1 and /path2)?

I am struggeling with ReDJ to configure redirection. I want to redirect all URLs except given once. e.g. https://www.example.com/something https://www.example.com/something/abc https://www.example....
0
votes
0answers
13 views

Contacts - Error Occurred When Editing

Joomla 3.9.11 Whenever I am editing a contact I can see the following error on the page; Error An error has occurred. No other information. I am able to edit and save the contacts, so ...
3
votes
1answer
41 views

Creating a multidimensional JForm field dynamicaly

Item Model protected function preprocessForm(JForm $form, $data, $group = 'examplegroup') { foreach ($data as $i => $item) { $field = new \SimpleXMLElement('<field />'); $...
1
vote
0answers
17 views

ob_flush pushes output before Joomla header

I have a module that I've created to test ob_flush buffering off. I need to understand it so I can have some longer modules buffer output to the page as the script goes through long processes. The ...
3
votes
1answer
31 views

JHTML::_('behavior.tooltip') — Set tooltip position

I'm trying to set the position of the tooltip in Joomla 3.9.8. I've used: JHTML::_('behavior.tooltip'); At the top of the document. I then have field set as: <?php echo JHTML::tooltip($...
0
votes
0answers
15 views

Override XML File [duplicate]

Using Joomla 3.9.11 and SP Simple Portfolio When adding a portfolio item via the back end there is a description textarea field, this is required. I'd like to remove this required attribute. Looking ...
0
votes
0answers
16 views

Tagged blog layout with readmore

I implemented the solution that enables a blog layout for tagged items, as described here: How to show tagged items in category blog layout What I miss is the Read More button. How do I implement ...
0
votes
1answer
33 views

Users ID numbers messed up - how to change them manually? (urgent)

Background: I develop my website on my dev. subdomain and when ready and test and clone dev to the live domain. However at the same time my users may change their password or any other profile data, ...

15 30 50 per page