All Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
18 views

problems with updating database

I have some code to update a table: $updateLastAttempt = new stdClass(); $tempDate = new DateTime('now'); $formattedDate = $tempDate->format('Y-m-d H:i:s'); $updateLastAttempt->id = $pxobjUpdate-...
user1616338's user avatar
0 votes
0 answers
11 views

Joomla 4 Smart Search is not displaying results from articles created using MySQL

I just recreated an old Joomla 3 website using Joomla 4. After the new site was ready, I took all the articles that were in the old site and imported them in the new one using phpMyAdmin. Once the ...
Ben1265's user avatar
0 votes
1 answer
26 views

What should I use to escape a module parameter in Joomla 5?

I have a custom module I have created. When writing the code Chat GPT suggested that I use this code. use Joomla\CMS\Utilities\Utility; ~ echo "<p><strong>" . Utility::escape($...
Eoin's user avatar
  • 1,944
0 votes
1 answer
8 views

Why won't my CSS variables change value?

I'm making changes to Atum. I'm changing the colours and I'm using user.css. I've placed it in: /media/templates/administrator/atum/css/user.css I initially tried using :root and giving each ...
Eoin's user avatar
  • 1,944
0 votes
0 answers
13 views

Can I change the layout of Joomla subform fields without an override?

The fields in my subform allow a field class. I thought I could add something like col-md-12 to get a field to take up the full width. It didn't work. So then I added row to the subform, but I can ...
Eoin's user avatar
  • 1,944
0 votes
1 answer
17 views

2 menu items to the same article and 2 different layouts; which url in blog content category?

I have a Joomla 4 site; using Helix Ultimate Framework template. I have an article and I need to link the same article from two different menu items and each menu item must use a different layout. I ...
agodoo's user avatar
  • 101
0 votes
0 answers
19 views

Replace if with two conditions by a try catch

I'am looking for a way to get rid of a getError() usage by replacing it by a try catch(), the part of code has an if with two conditions. I don't know how to do it in this case : $topic = TopicHelper::...
user3533235's user avatar
0 votes
1 answer
48 views

Get Joomla Articles via Model inside static (Module) Method

When calling an AJAX Method in a Module Helper file the method has to be static. I have no app context there, when doing the following: public static function getDataAjax() { $data = ...
Marco's user avatar
  • 683
0 votes
1 answer
25 views

How to remove shortcodes from Smart Search article text results?

For example Phoca Gallery one: This is a workaround I could try to go instead: How to show full article in Smart Search results or perhaps showing only sentences with relevant words. But I'm curious ...
Destroy666's user avatar
0 votes
2 answers
43 views

Implementation of a tag <link rel="preload" as="image" href="image.png"> in header of JoomGallery

I would like to implement preload link into the head of the JoomGallery like <link rel="preload" as="image" href="image_name.png"> Unfortunatelly the following ...
Clipart - Designer's user avatar
0 votes
2 answers
18 views

How to set root (/ and /de) as homepage in 2 menus?

While configuring other things I noticed that homepage is set to a "Featured articles" page in an invisible menu. Now I'm considering adding it to 2 visible menus in 2 languages. I'm not too ...
Destroy666's user avatar
1 vote
1 answer
17 views

Upgrade to 4.4 - Ajax error / 90.2% completed

I am having a terrible time upgrading from 3.10.12 to 4.4 as well and received the same Ajax error / 90.2% completed, and then a bricked site that displays no content and has no admin login. I suspect ...
kyle's user avatar
  • 11
0 votes
1 answer
15 views

Change Smart Search results template layout

I have 2 layouts in my template: default (which is indeed set as default) home For some reason Smart Search results use the home layout. How can I switch it to use default layout?
Destroy666's user avatar
0 votes
0 answers
8 views

RSForm Modal form set value of dropdown on modal

I have an RSForm with a button to open a modal form using RSForm Plugin Modal. I wish to set the value of a dropdown on the modal form using jQuery. I do not know the id of the modal form that is ...
Ian's user avatar
  • 1
0 votes
0 answers
11 views

CSS changes with language - what could be possible causes?

I'm editing a website on Joomla 4.4.3 with someone's custom template, based on T4. I noticed that some of CSS is missing when I switch to German language. For example: @media (min-width: 992px) { ....
Destroy666's user avatar
0 votes
0 answers
17 views

Form Field Type to browse and select a file

I'm struggling with finding a good way to have a control (or controls) on a form which allow the user to browse and select a file in a folder tree. There may be several thousand files in several ...
RogerCO's user avatar
  • 61
0 votes
0 answers
15 views

Joomla API returns 500 error, but works when debug is enabled

I'm using a very vanilla install of Joomla 5.1, and trying to use the content API. So a simple API call like... curl -X GET "https://example.com/api/index.php/v1/content/articles" \ -H &...
AndyGaskell's user avatar
0 votes
1 answer
20 views

DB Query with JOIN in Task Plugin

I'm calling the following query to retrieve records and the primary table data elements are all included, but the JOIN elements of data are not included. Any suggestions what I'm missing? private ...
Glenn Arkell's user avatar
0 votes
1 answer
42 views

Joomla 4 / 5 - Custom Field Plugin

I'm trying to update my Ajax based FolderList Fields Plugin (to select a Folder) for Joomla 4/5. All looks fine but the field does not get rendered correctly in the Article Fields Section - it looks ...
Marco's user avatar
  • 683
0 votes
1 answer
23 views

How to set and use a global variable within a content plugin?

It's probably a duplicate. Anyhow, I am writing a J5 content plugin using onContentPrepare event. It turns out, that this plugin is called several times before the page is sent to the browser. I want ...
Plamen's user avatar
  • 747
0 votes
1 answer
26 views

Joomla page or article title in module

I am trying to use a module in a template to reflect the current menu or article title and need help with the php code to insert it in the module. It basically should be the article title on all ...
Witchypaws's user avatar
0 votes
2 answers
37 views

Scheduled Task - Plugin to use Rules

I'm trying to set up a custom scheduled task and I want to utilise the Rules parameters as part of my logic to get other records from the database. So my question is how do I get the json rules? I've ...
Glenn Arkell's user avatar
0 votes
2 answers
31 views

Cannot login to Joomla website's backend

I cannot login to my website's administrator panel even after following all the methods mentioned in https://docs.joomla.org/How_do_you_recover_or_reset_your_admin_password%3F. Please help me solve ...
Mohamed1308's user avatar
0 votes
1 answer
50 views

implode(): Argument #1 ($array) must be of type array, string given

On a site for certain articles (and not others!!) I have the following error message * This worked in j3/php7.4. Perhaps a problem comes from switching to j5 / php8.1 What's strange is that it works ...
Hdcms's user avatar
  • 51
0 votes
1 answer
36 views

Joomla Custom Field Type Plugin No Translateable Label

In my Project I create a Custom Field Type Plugin (my own Customfield Type) - I'm using the new Structure with namespaces but on the "Field Selection" There is no translateable label. Its ...
Marco's user avatar
  • 683
0 votes
1 answer
36 views

Component with a module included - JED Checker

I recently ran all my components through the JED checker to bring them up to speed with J6 in mind. Some of my components have a module and/or plugin included in the main component manifest which has ...
Glenn Arkell's user avatar
0 votes
1 answer
14 views

No extensions or any other important things in Joomla 4.4.3 System Dashboard

I really need to get extensions, so maybe I could use code & add google maps to my Joomla website. Also if I add google maps "iframe" link, it just disappears when I save my project. I ...
Mikk2006's user avatar
0 votes
1 answer
22 views

Saving template file in administrator results in page can't be reached message

I am experiencing a new issue that I have never seen before. I have a fresh Joomla 5.0.3 install. I can create a css file in the CSS folder of the default Cass template and edit that file. It saves ...
Terry Carter's user avatar
  • 1,812
1 vote
1 answer
33 views

Query with multiple joins and a variable

I have a query: $query->select( $db->quoteName( array_keys($fields), array_values($fields) )); $query->from($db->quoteName('#__receipts_patient_charge',...
user1616338's user avatar
0 votes
0 answers
26 views

plgVmOnDisplayProductFEVM3 not triggering

I am trying to port some of my old plugins to latest VM, Joomla 4 and I have difficulties with couple of vmcustom plugins. The short version is, that the code I used to insert my needed code, namely ...
Székely Dénes's user avatar
1 vote
0 answers
26 views

Registered HTMLHelper class not working in specific area

When trying to use a function from a custom service registered within my component, I have an issue. So inside the backend boot function of my component I'm doing this: public function boot(...
maidan's user avatar
  • 433
0 votes
1 answer
22 views

J5 - Utilising com_fields in component

I'm lost with utilising com_fields in my component so that my users can create a custom field for a specific purpose and have it rendered in a modal popup. So I have my component setup with a ...
Glenn Arkell's user avatar
1 vote
2 answers
41 views

Getting a model in the controller

Is there any difference in these two inside a frontend controller? Performance or memory wise? In the end both are doing createModel, right? Thanks! $model = $this->getModel('Object', 'Site'); vs $...
maidan's user avatar
  • 433
0 votes
0 answers
27 views

Modal Popup to use Menu template

I have a modal button on my component list page which displays details of the record in a popup modal window. My problem is I want the modal popup to use the same template set in the menu item for ...
Glenn Arkell's user avatar
2 votes
1 answer
39 views

How to replace deprecated get() Function on CMSObject?

In PHP Storm I am always tells me that the CMSObject->get() function is deprecated and that I should implement my own getter. I would, if I could... This message comes with standard things like: ......
Marco's user avatar
  • 683
0 votes
3 answers
31 views

How to version assets/images on the entire CMS?

Is there any way to force versioning of specific assets or media types (like .webp images) on all pages of the CMS? I'd imagine it'd be an extension or something that adds ?ver=xyz type of postfix to ...
Destroy666's user avatar
0 votes
0 answers
116 views

Cannot set up Cron Task for Smart Search in Joomla 4 - Alternative

I am trying to create a cron task for the search index in Joomla 4. The PHP file is also called, but an error occurs. I created the cron tasks according to these instructions: https://docs.joomla.org/...
Gratia-Mira's user avatar
0 votes
1 answer
22 views

How to integrate Nicepage site on Joomla

I am kinda new to this whole website thing. Definatly dont have much experiance in coding ect, but I have created a whole website with a nicepage paid subscription. I downloaded Joomla and XAMPP. I ...
Shelby's user avatar
  • 1
0 votes
1 answer
22 views

Generated <a> links to wrong URL

I generate a link in a module as follows: $user->contactAddress = str_replace("//", "/", trim(JUri::base() . $params->get('defaultContactAddress') . '?' . $params->get('...
alve89's user avatar
  • 113
0 votes
1 answer
47 views

DB error using updateObject or Store after upgrading to Joomla 4

I am a component developer and now I am migrating my component to Joomla 4.x. In Joomla 3.x I could do code like: $row= new stdClass(); $row->id = "2"; $row->user_id = ""; $...
Piero Marsilio's user avatar
1 vote
1 answer
50 views

How can I unload scripts in Joomla 5

I need to unload /media/vendor/jquery/js/jquery.min.js from Joomla 5 in my custom template. Anyone can help me?
Uziel Almeida Oliveira's user avatar
0 votes
0 answers
74 views

Joomla 3.10.11 on server with MySql 8.0

On my online server which has MySql 5.7 and PHP 7.4 I have three sites in joomla which have the following: Mywebsite1 with joomla 3.10.11 and JD Boston template with Helix framework 3.0.3 Mywebsite2 ...
Jackom's user avatar
  • 101
0 votes
0 answers
17 views

Joomla component detail view error: 404 Could not load the item

I have a table named edu2f_jobs_jobs. This table is received here: public function getTable($type = 'Job', $prefix = 'Administrator', $config = array()) { return parent::getTable($type, $prefix, $...
Jelle's user avatar
  • 1
0 votes
1 answer
26 views

Where to place component code that executes after controller invocation?

For a custom component in Joomla 4 (and 5), is there a way to have some component code that gets executed after the controller execution step, regardless of which controller is triggered? Why? In ...
John Rix's user avatar
  • 551
0 votes
1 answer
58 views

How to add a helper class to a component in Joomla 4?

I'm quite new to Joomla. I have a component with multiple different models and views, but a few of them use the same functions. Right now I have those functions copied in every model file, but I'd ...
very_curious's user avatar
1 vote
0 answers
22 views

Smart Search translation

In Joomla 4.4.2 the Smart Search component translation doesn't work for any other language then english but it happens only for 6 translations: COM_FINDER_ADVANCED_TIPS_AND; ...
Mario Carta Serra's user avatar
1 vote
1 answer
21 views

Frontend New Button and Router.php

in my component I made a List view of items and add with ToolbarHelper a New Button to add new items. Further I add a link to the item name to edit this item. As for SEF user friendly URLs I add a ...
Gerald's user avatar
  • 13
0 votes
1 answer
33 views

Using a table from a library when namespaced

I'm using a library where i have some things like tables i use in different components i made. Until now i could do this in a component model to use a table from my library: class ItemModel extends ...
maidan's user avatar
  • 433
0 votes
1 answer
12 views

BUG com_installer not always displaying update script output

[original post - I have now established it is a bug] A strange quirk. Using Joomla 5 my install script for a component is designed to show some information to the user after update. It renders the ...
RogerCO's user avatar
  • 61
0 votes
4 answers
72 views

How do I copy a template

In Joomla 3 there was a handy button to create a copy of template so that you had a basis on which to customise and create your own template. This seems to have been removed in J5 and instead there is ...
RogerCO's user avatar
  • 61

15 30 50 per page
1
2 3 4 5
156