All Questions

Filter by
Sorted by
Tagged with
1 vote
0 answers
13 views

Ignore active filter states when getting items from ListModel

When trying to get all items from my list model inside a plugin, I use this: $objects = $app->bootComponent('com_foo')->getMVCFactory()->createModel('Objects', 'MyModel', ['ignore_request' =&...
  • 153
1 vote
1 answer
18 views

Backend modal toolbar button that gets activated when list item selected

Creating a Toolbarbutton which needs a selected list item for dropdown: $childBar->standardButton('delete')->icon('icon-arrow-right')->text('delete')->task('delete')->listCheck(true); ...
  • 153
2 votes
0 answers
8 views

J4 component URL not SEF

Context: I have a component that works fine in J3 and I want to migrate it to J4. Problem: When I create a menu (Joomla main menu) on the frontend view of the component, in J4 only, the URL is not SEF ...
  • 21
0 votes
0 answers
14 views

403 error front end editing when HTML comments are in the content

I have a site I'm troubleshooting at the moment where articles won't save via the front end and return a 403 error when you either Save or Cancel editing. After whittling down potential causes, this ...
0 votes
1 answer
16 views

How can I use two models in my custom component view in Joomla4?

I need to use two models in a view for my custom component in Joomla 4. I saw this post for Joomla 3, but it seems that there isn't getInstance() in the base Models anymore. How I could do it ?
  • 227
0 votes
1 answer
5 views

Automate IIT Newsletter Creation

I am looking for assistance in creating a newsletter. Tool that will create a newsletter 5-10 articles will generate in diff categories and sorts out based on category Eventually we need a user ...
0 votes
1 answer
14 views

JFactory::getApplication('administrator'); is not woking

I moved from joomla 3.10.11 to joomla 4.2.2. I have some code on custom file which contain code to delete data from database. It was working well on joomla 3 but, on joomla 4 it gives me error. $app ...
0 votes
0 answers
6 views

Joomla 4: Is it possible to add data from a category blog override into a contact form override?

Summary: I want to pull in Joomla field and input values from a category blog and insert them into a contact form. Background: I have created an alternative menu item based on the category blog for ...
  • 161
2 votes
1 answer
29 views

Joomla 4 Views will not load on some Hosts

Repo of component: https://github.com/Joomla-Bible-Study/Proclaim We have been converting our component to Joomla 4 standards and have run into a problem with it installed on some hosts, and non of ...
0 votes
1 answer
38 views

Override login module to initiate SSO redirect

I have SSO working with an external IdP on my Joomla4 site. However, to initiate a login by a user, they have to click a button/link to be directed to the IdP login form. When I set the permissions ...
  • 533
1 vote
1 answer
20 views

Joomla 3->4 upgrade, page works OK but not as a cron job

I've got a few php pages which after upgrading to Joomla 4 didn't work, I have managed to get them working properly if I manually open them in the browser but they fail when run as a cron job. I am ...
1 vote
2 answers
34 views

Can Joomla 4 run in a subdirectory

So far, I am finding it difficult to run Joomla 4 in a subdirectory. With $live_site empty or set to https://example.com or https://example.com/ the site shows an error message "The requested ...
  • 282
1 vote
2 answers
24 views

Identify Joomla 4 API access

If I do an API call like this: curl --location --request GET "http://127.0.0.1:8000/api/index.php/v1/users" --header "X-Joomla-Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" I get ...
  • 153
0 votes
1 answer
20 views

J4, Custom Input Field SQL "WHERE" based on another input field

Having the SQL in the XML file to build custom inputs is great, I just can't figure it out how to link the value based on another imput... Say you have the Language Selection, then you want that value ...
  • 133
1 vote
2 answers
35 views

Custom Fields Implementation

I have a custom component I am creating. I am trying to implement custom fields for several of my views. I have custom fields added currently and I can create a custom field and custom field groups ...
  • 1,757
0 votes
1 answer
44 views

Session variable from a module is only accessible from the template after refresh

To add some common ground. I need to transfer 3 variables from a module to my template when the sites loading. In my module I get 3 links to specific images and they need to be included in the ...
0 votes
1 answer
22 views

How can I display edit icon for articles?

I have created a Joomla 4.1.5 template based on Cassiopeia but heavily customised. Everything works fine but instead of a front-end Edit icon on the right above articles (for a user with edit ...
0 votes
1 answer
22 views

Discover uitlity not finding component

I'm developing a component and Joomla can't find it using Discover utility. This is my component xml file. <?xml version="1.0" encoding="utf-8"?> <extension type="...
  • 157
0 votes
1 answer
33 views

Connecting to an external database in Joomla 4

Connecting to an external database in Joomla 3 is easy following this documentation and works like a charm. But JDatabaseDriver->getInstance method is deprecated in Joomla 4. What is the ...
  • 1
2 votes
1 answer
79 views

How can I remove front-end Edit button from side menus?

Since upgrading to Joomla 4 (currently 4.1.5, but also occurs in a test site with 4.2.2) an Edit button has appeared above each menu in the front-end sidebar. Previously in 3.10.10 the Edit option ...
0 votes
1 answer
11 views

SMTP Server settings error

I have tested with the Exact same settings on both my local joomla website and the live one. rex-topia.com [Live] SMTP Error: Could not connect to SMTP host. Locally [localhost] Message The email was ...
  • 43
0 votes
0 answers
20 views

Smart search filter doesn't work for different category levels

Joomla! 4.2.2 Stable, PHP 7.4.3, Apache/2.4.41 I have indexed my content and without the filter enabled the search works as it should. When I create a filter and select one or more categories of the ...
  • 1
1 vote
0 answers
21 views

PHP Server: The MySQLi extension is not available

One Joomla instance is running in MAMP PHP 8.0 and MySql 5.7 succesfully. When starting the same instance with a PHP Server from the /joomla directory like this: php -S 127.0.0.1:8000 -t . I get the ...
  • 153
1 vote
0 answers
42 views

Joomla 4 ajax php file in component, $application missing LanguageFactoryInterface::class

In Joomla4 i am creating a ajax.php file for getting json results // Boot the DI container $container = \Joomla\CMS\Factory::getContainer(); $container->alias('session.web', 'session.web.site') ...
  • 21
1 vote
0 answers
33 views

Pass PHP Variable To JavaScript In RS Forms

how can I pass this php variable to my JavaScript in RS Forms code behind? $doc = JFactory::getDocument(); $doc->addStyleSheet("https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap....
0 votes
1 answer
15 views

Capturing Value From RS Forms Drop Down

Using RSForms and Joomla - how can I capture the selected value of a drop down in the php code behind?
0 votes
1 answer
19 views

Free Joomla extension that can read and write in a MySQLi database, with sanitization

I am working on a website I volounteered to do for free (because it's for an organization I'm part of, and because it will make our lives easy). Our budget is "as low as possible", ideally 0,...
  • 131
1 vote
1 answer
21 views

Fields & Field Groups in Dashboard

In my component I have the fields and field groups showing in my dashboard (admin side) and working no problems at all but I wanted to have a config param to switch it on/off like the content ...
0 votes
0 answers
18 views

I have a problem with setup Joomla Trademark

Joomla sent me two link below, and i need update my site. https://tm.joomla.org/disclaimers.html For Extension Developer (JED) and Service Provider (JRD) websites: [Business name] and this site is ...
1 vote
2 answers
109 views

Login module crashes after 4.2.2 update

All my sites are crashing when the login module is brought up from a link. If the module is left on the site (without a link) the site crashes. I still have admin access and I have disabled the login ...
1 vote
1 answer
45 views

Remove component's view name from url joomla 4

I am using Joomla 4.2.1. I installed custom component which is previously used into Joomla 3.10.11. I create a menu item with view from this component. On Joomla 3.10.11 it works fine for example : ...
2 votes
0 answers
42 views

Why is my class not found in Joomla 4?

I have two two Classes in separate files in the same directory both with the same namespace and yet when one Class requests the other Class it is not found. The only way I have been able to get this ...
  • 2,350
1 vote
1 answer
25 views

Joomla 4 how to hide admin frontend edits

After the recent update I have a bug where frontend settings are displayed on the homepage even tho I disabled "configuration -> frontend editing". I attached a picture of the settings. ...
2 votes
1 answer
19 views

Joomla 4 Plugin to overwrite value of a custom field

I need a Joomla 4 Plugin to overwrite a marker in Custom Fields of type text or textarea with the article's title. I added a onPrepareContent() method where I have access to the articles title as well ...
  • 73
0 votes
1 answer
16 views

Joomla 4.2 admin "Test mail could not be sent." message though mail works

I get the messages "Test mail could not be sent." when I use the 'Send Test Email' button in Joomla 4.2.1 - on two sites. I have checked the SMTP settings and all OK. I know that the server ...
  • 1
2 votes
2 answers
70 views

How to create a (better) development environment for Joomla 4

I have been writing a custom joomla 4.x component. It's not working. But rather than getting people here to debug my code I want to know how to set up a proper development environment that will give ...
  • 351
0 votes
2 answers
45 views

What is the best way to retrieve the email address of a super admin

Where a component wants to notify a super admin of some event, what is the best way to obtain a super admin email address? (For background, I originally coded this as a database query, looking for ...
  • 282
1 vote
1 answer
41 views

Load CSS so as to be able to be overriden Joomla 4

Some years ago, the question of how to load CSS in a way that permits a template override was answered here with: JHtml::_('stylesheet', 'mod_module/style.css', ['relative' => true]); Recently, I ...
  • 282
2 votes
1 answer
21 views

What are the hardware requirements for Joomla 4.x

My development site went down because the server was taking 7 seconds to respond. The load balancer thought it was dead. So gave 503 errors. It makes me wonder if I need a bigger server. What are the ...
  • 351
0 votes
0 answers
15 views

modal popup just after login

I am new to the Joomla world and I have to face a difficult problem. I have to make sure that immediately after logging in to the user, a modal popup with a select box is proposed. The content of the ...
  • 1
1 vote
1 answer
26 views

Joomla 4 Security: Is it worth tracking attacks for the Joomla team?

Shortly after I (finally) managed to upgrade to Joomla 4 my development site was taken down by an attack. (I dont' know how exactly yet). Is it worth my time to work out how this happened? How would ...
  • 351
2 votes
1 answer
27 views

Custom admin menu creation - parent_id and level values are resetting to zero

I want to programmatically create some admin menu items for my component and I'm most of the way there, but I can't seem to set the hierarchy for them. I am wanting three menu items - one as the ...
2 votes
1 answer
45 views

Joomla upgrade: 3.10.11 to 4.x

I am trying to upgrade my development server from 3.10.11 (which works fine) to 4.x in preparation for Joomla 3.x going out of support in August 23. When I do run the live update, I get an alert box ...
  • 351
3 votes
0 answers
19 views

How to make "Two Factor Authentication" mandatory for all admin users

I had enabled "two factor authentication" on a site with the Google Authentication Plugin, but discovered that an old administrator was still logging in to the admin. It turns out that if ...
1 vote
1 answer
42 views

Smart Search results missing a category and settings for paginated results

Joomla 3.10.11 I cannot find the settings for this. I have been experimenting with the native search, smart search and an extension for advanced search. We are most happy with the results from smart ...
1 vote
1 answer
39 views

How to get an article id in blog category view inside fields plugin

I created a custom field plugin. I need to get an article id in blog category view in plugin layout file: /plugins/fields/my_plugin/tmpl/default.php. In my article view, I can get it from $app->...
1 vote
1 answer
38 views

Mysqli query with regex to Joomla php syntax

// CODE1 (Mysql (MariaDB 10.8.3) query): SELECT s.`p_p`, COUNT(REGEXP_SUBSTR(r.`xml`, '[0-9]+')) FROM `#__s` AS s, `#__p` AS x, `#__v` AS r WHERE REGEXP_SUBSTR(r.`xml`, '[0-9]+') = [user_id] AND s.`...
2 votes
2 answers
123 views

Joomla 4 create article programmatically

I have tried a few ways to create articles programmatically in Joomla 4, but none of my attempts are working. First is to insert data by mysql using $db->getQuery(true) -- the article shows in the ...
1 vote
1 answer
21 views

Unable to install theme with live-preview features

I recently bought this template ("Beat" from WiselyThemes) and followed the instructions to make it look like the live preview the seller posted on Themeforest (http://preview.themeforest....
0 votes
0 answers
20 views

OnContentPrepareForm load xml based on article data

I'm trying to figure out how to conditionally load extra form fields into articles. I have made succesfully a plugin that add fields: function onContentPrepareForm($form, $data) { $app =...
  • 325

15 30 50 per page
1
2 3 4 5
145