Questions tagged [joomla-4]
For questions regarding version 4 of the Joomla Content Management System.
113
questions
0
votes
1
answer
25
views
Article fields layout
I am using Joomla 4 with casseiopa template.
I have created a load of custom fields where the layout ends up like this:
<ul class="fields-container">
<li class="field-entry ...
1
vote
0
answers
19
views
Updating user via J4 REST API resets password
In our organization we use Salesforce as the authoritative source of info about our users, so it makes sense for us to use that info when creating the associated users in our new Joomla site.
I have ...
0
votes
1
answer
61
views
Joomla 4 plugin to set template style for article
I would like to create a plugin to load a specified template style for each article on Joomla 4. The basic idea is as follows:
Use a custom field in the article to specify the desired template style ...
0
votes
1
answer
40
views
Joomla Calendar field does not work when given format as D dS M Y
In my XML form, I have given a calendar field in the format='D dS M Y' which is as follows
<field name="certificationdate"
class="inputbox"
format="D dS M Y"
...
0
votes
1
answer
26
views
Adding an extra category field to Joomla articles
I need to add an extra category field to my articles. I tried to add a SQL custom field by this SQL code:
SELECT title AS text FROM jos_categories WHERE extension = "com_content" and ...
1
vote
1
answer
61
views
Reoder featured articles after migration to joomla 4
I have upgrade my site from Joomla 3.10.x to Joomla 4.3.2.
My homepage shows a list of featured articles. I have create new featured articles and if i change the order in the backend with drag & ...
1
vote
3
answers
114
views
Joomla 4 component and custom field
Good day.
I created a component using
https://blog.astrid-guenther.de/en/joomla-custom-fields-im-frontend-integrieren/
https://blog.astrid-guenther.de/en/joomla-frontend-editing/
When editing an entry ...
1
vote
1
answer
43
views
How implement the PHP strip_tags in the Joomla 4-file com_content/archive/default_items.php
In Joomla 4.3.1, I've made an override of the com_content/archive/default_items.php
Now I want to strip tags and display the string (text from article) as one line <p> only. Without any ...
1
vote
1
answer
83
views
How to combine or merge SQL results into one row
I have a Joomla list page that I am trying to build each row from multiple tables that I haven't been able to figure out how to do efficiently with MySQL and would like some assistance. I suspect the ...
1
vote
0
answers
155
views
Problem possibly related to lazy loading of images in Joomla 4
A strange problem has appeared in the tagged items view of articles on my website https://eume.upf.org. See for example https://eume.upf.org/where-we-are/western-europe/germany, where the intro images ...
2
votes
1
answer
226
views
Joomla 4 Reinstall Core FIles
Joomla 4.2.8 (current stable at time of writing)
What does the button Reinstall Joomla! Core Files actually do? What are the 'core files'?
I am experiencing some issues on my site and I've seen this ...
1
vote
1
answer
264
views
Running a python script within a Joomla 4 component gets return value of 2. How do I get Joomla to run the script successfully?
I'm writing a custom Joomla 4 component, and when I try to run python code within the Model php file to pass to the View, the exec command returns an resultValue of 2.
The python code is valid
The ...
1
vote
1
answer
66
views
Where is Joomla's ServiceProviderInterface
I am working my way through a Joomla 4 component tutorial. I have setup Visual Studio Code's Intelephense to be able to find Joomla classes using includepath. That seems to be working fine for the ...
1
vote
1
answer
89
views
Entry values are changed in configuration.php
In the configuration.php of Joomla 4.2, entries are changed when saving.
Entries with = '1'; are changed to = true; and entries with = '0'; or = ''; are changed to = false;.
I think this has to do ...
0
votes
1
answer
923
views
Joomla 4 Helper class not found
I'm sure I've missed something obvious, but I'm stumped.
I have a helper class located at:administrator/components/com_supersite/src/Helper/supersite.php
<?php
\defined('_JEXEC') or die();
class ...
0
votes
1
answer
355
views
Joomla 4 Component json output
I'm building a simple Joomla 4 component, and I need to use a json view for some ajax requests. Just starting the testing process, and ran into an odd seemingly unrelated error message. I don't get ...
3
votes
1
answer
128
views
Joomla 4 - Check if Alias is Unique
I'm trying to develop a Joomla 4 component and I almost completed it, but I have issues to save an item when the Alias is not Unique.
In the database, I've set up this:
CREATE UNIQUE INDEX aliasindex ...
3
votes
1
answer
273
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 ...
1
vote
2
answers
122
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
1k
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
421
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 : ...
1
vote
1
answer
164
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
385
views
Joomla correct way of routing
This is in my Controller. Currently, I am redirecting using the inherited function setRedirect(URL_TO_REDIRECT_TO).
public function redirectTo($layout){
$this->setRedirect('index.php?option=...
2
votes
1
answer
178
views
Plugin to manipulate form data onContentBeforeSave
For a Joomla 4 project I wrote a Content Plugin to grab video thumbs from Video-URLs (Vimeo) the user adds into Custom form field of a frontend form. The following code successfully gets the video ...
4
votes
3
answers
388
views
Joomla 4 Smart Search: Extra database for indexing data
I'm just about to migrate my site from Joomla 3 to Joomla 4. It's a pretty big website with thousands of articles that leads to problems using the new Joomla smart search.
The indexing of the articles ...
1
vote
1
answer
359
views
Tooltip On Top of Module
I updated joomla to J4.1.4 and now i am getting module information top right of all the modules.
1
vote
2
answers
70
views
Undefined property: PlgAuthenticationmyauthplugin::$name in /somepath/www/libraries/src/Authentication/Authentication.php on line 184
I have made a custom login plugin for Joomla 3 and now for Joomla 4.
However, in Joomla 4, the login works as it should, but it generates a stack dump in the error log:
[Mon Jun 06 10:13:58.034860 ...
1
vote
2
answers
3k
views
JRequest Method in Joomla 4
JRequest Remove from Joomla 4 then how i must use this method
for example
$controller->execute( JRequest::getCmd('task', $view)
not work
i must change it to what ?
0
votes
1
answer
710
views
Joomla 4: Error when I use getArticleRoute
In Joomla 4, when I use "RouteHelper::getArticleRoute", I get the next error: "Attempted to load class RouteHelper from namespace Joomla\Component\Content\Site\Helper.
I want to use ...
0
votes
1
answer
35
views
URL doesn't recognize view after slash in custom component
The view in my custom component is no longer recognized in Joomla4 when passed as, for example, mycomponent/view/anotherinfo.
In Joomla3, this worked normally. What happened? What do I need to change ...
3
votes
2
answers
1k
views
Joomla 4 URL processing/routing
I have a Joomla extension running on 3.10 which fails on Joomla 4. The issue is that it generates URLs of the form /index.php?option=COMPONENT&view=VIEW&task=TASK¶meter=PARAM which ...
0
votes
1
answer
189
views
Implement SELECT query with a LEFT JOIN in J4
I want to get data from two tables using a LEFT JOIN. My query works in my current PHP code, I just don't know how to implement it with query building methods in J4. Can anyone help?
SQL:
SELECT `...
4
votes
3
answers
681
views
New files in Joomla 4 components
In Joomla 4 there are new files in the components, like:
services/provider.php
Extension/XxxComponent.php
Service/HTML/AdministratorService
Are there available documentation about how to implement ...
1
vote
1
answer
355
views
How to use Joomla for insert, delete, display and update data from mysql?
I'm just started to learn using Joomla and one of the things that I need to do is to build a form that can insert data and that data can be displayed to another Joomla page.
I got a few comments from ...
1
vote
0
answers
152
views
409 Conflict on Joomla 4 administrator backend
I am building a site using Joomal 4. I developed it on my local and uploaded that to the server. All the public pages of the site are rendering properly, but when I try to open the /administrator page,...
0
votes
1
answer
217
views
Custom plugin doesn't even seem to load on Joomla 4
As a sort of newbie developer with php/Joomla, I created a content plugin for Joomla 3 which pretty much did what I wanted and expected...
I then decided to migrate it to Joomla 4 following the very ...
1
vote
1
answer
2k
views
Trouble linking external css file with Dompdf library
I'm trying to create a Joomla system plugin enabling a user to generate a pdf based on a template. I'm using the Dompdf library. I managed to create a PDF, but linking to an external css file isn't ...
0
votes
2
answers
75
views
How to show 'Register New User' for all guests and something else for registered users?
I want to build a simple site with Joomla 4. The webpage should only handle these few things:
For guests (not logged in users):
Display an article with some text and the 'login mask' inside the ...
0
votes
1
answer
157
views
Decode json strings from a database table column
I have a column in my database that essentially creates an array and I am essentially trying to explode it but I cannot figure out how to get it to work. Its also going into SQL with { characters ...
2
votes
1
answer
306
views
language file naming conventions
Under Joomla 4 the language files for the core extension are no longer prefixed with the language code, e.g. en-GB.com_banners, however when I look in the manifest folders the files are defined with a ...
2
votes
2
answers
460
views
SQL syntax error in query with subquery using JDatabase
I'm coding my first Joomla! 4 component. There are two tables for the component: pfx_list, and pfx_member_to_list. Table pfx_list hash primary key id, and table pfx_member_to_list has foreign key ...
1
vote
0
answers
40
views
media:content tag missing from Joomla RSS Feed
I am using mailchimp to send newsletters. Everything works fine apart from the fact that my RSS feed generated by Joomla does not contain the media:content tag, hence mailchimp doesn't show the images ...
2
votes
2
answers
277
views
Add a field (Sql or List) in article options with a search bar inside in Joomla 4
I added a field type "sql" to show a list of options in the Article Options in Joomla 4. But I need to add a field like this with a search box inside to looking for one of the voices typing ...
3
votes
1
answer
144
views
Deleting user account when user has published articles
We've got a few dozens registered users on our website. They all have the right to publish, and edit articles in selected categories. Some of those users no longer need their access. So I can either ...
2
votes
1
answer
180
views
Conditional client side validation
I have a field on my form that is required if another field contains a certain value but otherwise is optional.
I have set up a custom validator as follows:
document.formvalidator.setHandler('...
1
vote
1
answer
52
views
J4 - Custom Profile Plugin - Hiding Groups
I have a custom profile plugin to extend user profile data. I want to add a switch to hide all BUT the core group of fields when the user checks and edits their profile.
In my plugin (profileabc.php) ...
2
votes
2
answers
1k
views
Loading a helper file in Joomla 4
I'm having trouble with using a helper file in Joomla 4, I'm not really sure where I'm going wrong.
I have a helper file in my template, like templates/mytemplate/html/helper.php and this works well ...
2
votes
2
answers
3k
views
Loading the built-in jQuery in Joomla 4 if it does not exist
Tell me please. How to load jQuery in Joomla 4 if it has not been loaded yet?
1
vote
2
answers
301
views
Joomla 4: Problem with the contact form, the text sent is missing
I'm creating a contact form with Privacy Check box (Joomla 4, template Cassiopeia).
I have done all the steps as in joomla 3.x (custom fields) and everything works. But...
When the e-mail arrives, all ...
2
votes
1
answer
40
views
J4 - Return to Component Dashboard from Options
I've implemented a dashboard into a component with an option to update the components configuration parameters. What I want to do is return to the dashboard on Save of the options.
I notice that ...