Questions tagged [joomla-4.x]

For questions regarding version 4.x of the Joomla! Content Management System.

Filter by
Sorted by
Tagged with
0 votes
2 answers
33 views

Using namespase USE in a module

I'm writing several joomla modules and I'd like to put common functions in the libraries folder. However I want to use them from a joomla Ajax call in my module. I'm preparing to upgrade from 3.x to ...
1 vote
0 answers
17 views

Unable to display jevent modules when a site is visited but not logged on

When a user is logged into my site he can see and update all events and see then calendar module. When we have a guest user like most of the users they can't display the calendar. Joomla 4.2.9. I ...
  • 111
0 votes
0 answers
22 views

Article slideshow

I wanted to use Bootstrap 5 carousel/sildeshow on my Joomla CMS v4. I recently updated to Joomla 4 and the previous slideshow component isnt compatible so I am left with a load of articles which ...
  • 169
0 votes
1 answer
23 views

Reinstall template

I have an installed template on the site all ready, but I want to reinstall it without removing any content. From my understanding you can just remove the entry from the database? How do I do it.
  • 57
2 votes
2 answers
86 views

Register Plugin/Class Joomla

We have a custom login plugin which extends the CMSPlugin. I am trying to register the Class of the plugin inside a module but the following scenarios occur. Case 1 JLoader::register('...
  • 57
1 vote
1 answer
36 views

Change database password?

I am trying to change the Joomla database password. I cannot figure it out. If I change the password in the database first, then Joomla is unable to use it, because it no longer has access to the ...
  • 113
0 votes
2 answers
45 views

Joomla 4 Upgrade issue with custom component

I have a custom component that I've inherited. I've upgraded the site to Joomla 4 with no problems but when going to the frontend, am getting an error: Fatal error: Class CloudCardModelCard contains 1 ...
  • 2,066
1 vote
1 answer
27 views

NEWBIE - How to set a default value in the xml file for a plugin field

I am trying to update a very nice Joomla 3 plugin to Joomla 4 because the plugin creator did not update it himself. Upgrade is almost ok except that if no default value is set for one of the ...
  • 31
1 vote
0 answers
16 views

Boolean Logic not working in Joomla 4 Smart Search when wrapping two words within quotation marks

I am having a problem with my site at https://www.shalomadventure.com where the Smart Search is not respecting the Boolean login. If I wrap two words within parentheses and do a search we are getting ...
0 votes
1 answer
17 views

Joomla 4 - Category blog view - hide content of article

Am I missing something here? Using Joomla 4 and Cassiopeia template. On the category blog view, I just want to output the article image and title. But underneath that is the WHOLE article text. Is ...
  • 169
0 votes
1 answer
40 views

Custom module chrome is not working in Joomla 4

I have copied the card.php file from templates/cassiopeia/html/layouts/chromes and placed it in my templates/MYTEMPLATE/html/layouts/chromes folder, and then made some modifications to the styling. ...
  • 142
1 vote
0 answers
56 views

Adding a Tag to an Article (in PHP)

In J4, when I want to set a value to a Custom Field, I use the following code and it works fine: $model = new FieldModel(array('ignore_request' => true)); $model->setFieldValue(2, $item->id, '...
0 votes
2 answers
31 views

Setting template color scheme

I just want to create a new color scheme and replace the root primary colors with it, how do I proceed?
  • 57
0 votes
0 answers
21 views

Joomla 4 - Subcategory title in category blog

I am using a Category Blog to show items from 2 categories using the subcategory option. Cat 1 ---- article 1 ---- article 2 ---- article 3 Cat 2 ---- article 1 ---- article 2 ---- article 3 All of ...
  • 169
2 votes
1 answer
115 views

Use Ajax to refresh available options

I'm struggling with coding an ajax refresh of options in a select list based on what's already selected in the previous field. Scenario is I get a list of positions and each position one or many ...
0 votes
1 answer
28 views

Category blog - 8 column layout

I have a fresh install of Cassiopeia/Joomla 4 and I am trying to give the Category blog 8 columns. When I add that number under Blog Layout it reverts to 1 column? Values 1-4 seem to work. But ...
  • 169
3 votes
0 answers
68 views

Migrate Users from Joomla 3 to Joomla 4 with same UserIds and Passwords

So I successfully migrated users from a Joomla 3 database into a Joomla 4 database. I am hoping there is a nicer way if anyone has done it. In particular, I couldn't work out how to create a user ...
  • 3,209
2 votes
3 answers
116 views

Migrating custom module to Joomla 4

I have a Joomla 3.x module which calls the category name from the database and then shows this in the module position. It does this with: $db = &JFactory::getDBO(); $id = JRequest::...
  • 2,066
1 vote
1 answer
40 views

Cassiopeia hamburger menu doesnt collapse

Fresh install of Joomla 4 with the Cassiopeia template and I just set the menu module layout to collapsible Dropdown. Now the hamburger menu is there for mobile and it will expand but not close? It ...
  • 169
3 votes
2 answers
136 views

Invalid controller class: display

I am trying to create a simple component. After installation of the component I get the following error message in the admin view: An error has occurred. 0 Invalid controller class: display I've ...
0 votes
1 answer
74 views

Virtuemart class 'JDispatcher' not found error when upgrade Joomla 3 to Joomla 4

I'm using Virtuemart 3 and Joomla 3, after upgrarding to VM 4 and Joomla 4, it say error Class 'JDispatcher' not found from JROOT/plugins/vmshipment/rules_shipping_advanced/...
0 votes
0 answers
58 views

I am trying to use joomla.asset.json for a custom template, but I get a white page - why?

I have created a custom Joomla 4x template called 'toccata'. I have a joomla.asset.json file (shown further down below). The file is listed in my templateDetails.xml file and I thought I'd done ...
  • 313
1 vote
2 answers
40 views

How to use NOW() with DatabaseDriver->insertObject()

I'm inserting an object in a database table using joomla 4, as per joomla docs: $toInsert = new stdClass(); $toInsert->update_timestamp = 'NOW()'; $toInsert->id = null; $db = Factory::...
  • 243
0 votes
2 answers
44 views

Number of articles in multiples sub-categories

I use mod_articles_category to display a list of categories with their articles. I need to display the total of articles next to each category title. I've tried with <?php echo $item->numitems; ?...
  • 1
1 vote
2 answers
38 views

Joomla 4: get all users in a usergroup

I need an array of all usernames from a certain usergroup. How can I update my Joomla 3 component code for use in Joomla 4? jimport( 'joomla.access.access' ); $customers = JAccess::getUsersByGroup(2); ...
1 vote
1 answer
12 views

Webservices returns The requested URL was not found on this server with a 404

When using Webservices on my local development environment, but the problem is not unique to local environments, I received the following message for even the core features, The requested URL was not ...
  • 2,845
2 votes
1 answer
109 views

Joomla login module Ajax Request

Is it possible to login the user in frontend through Ajax request and without all this redirecting? I am using the joomla login module and trying to extend it but so far no results. I have this js <...
  • 57
0 votes
1 answer
56 views

Display current article's specific custom field in module

Im using Joomla 4. And for some reasons I need to publish my articles with joomla 4 custom html module that shows specific custom fields of current article. I have changed mod_custom's default.php ...
  • 55
0 votes
0 answers
17 views

Joomla 4: how to add tags in the template of mod_tags_similar?

How to add tags in the template of mod_tags_similar? I add custom fields and other data by this code $db = JFactory::getDbo(); $query = $db->getQuery(true) ->select($db->quoteName(array('...
  • 1
1 vote
1 answer
37 views

Error When Saving Modules After J3 - J4 Migration

Recently migrated a J3 site to J4.2.8 I had to uninstall a lot of plugins before the migration, and a few after, but everything appears to be working apart from one thing. In the Joomla admin area, ...
  • 3,543
1 vote
2 answers
30 views

Joomla 4 SEF URLs broken since upgrade

We upgraded from Joomla 3 to Joomla 4 and since upgrading have found that many (almost all) links on the site are broken. Here is an example of a broken link: https://guildofenamellers.org/index.php/...
  • 11
0 votes
0 answers
29 views

Joomla 4 com_users edit.php password validation

In com_users edit.php - the html helper password validation is not taking into account the password complexity that I have setup in the User backend. I have 12 chars minimum, upper, lower and special ...
1 vote
0 answers
19 views

Joomla 4 - 'Edit My Profile' Form - create custom generic form

I have created a custom (com_users/profile/edit.php). I have created a custom form that I would like to use - however, when I save the form - the value do not store in the db and the page does not ...
2 votes
1 answer
21 views

Why can't Discover find my extension or What is Discover looking for?

As a result of a mistake I made in the way I set up an extensions symlinks my extension was not being found when using the Discover feature of Joomla, this lead me to stepping through the installer ...
  • 2,845
0 votes
1 answer
24 views

Store Joomla content into javascript variable

let's say my Joomla is deployed in the Root subfolder , *root **Joomla soo the index.php for Joomla resides in root/Joomla. now I want to render Joomla content through Javascript from the root but ...
0 votes
0 answers
9 views

Limiting date range with DP-Calender's export to ics file?

I'm using DP-Calendar (free) on a Joomla 4 website. In the calendar view, there is a link to export a calendar in iCal format (*.ics file). Unfortunately, all entries are exported with this link. Does ...
  • 210
1 vote
1 answer
18 views

Joomla Manifest XML works in XAMPP but doesn't work in Hosting

I created a template for Joomla 4x, it works well in XAMPP, but doesn't work well in my Hosting, it is Installed successfully in my hosting but I got an Error when I try to access the template ...
1 vote
2 answers
63 views

Joomla plugin ajax request / class extend

I have created a "custom" authentication plugin and inside of it there is a function (onAjaxMyfunction) that is called from a module through com_ajax. The call "url" looks like ...
  • 57
2 votes
1 answer
84 views

How to initialize joomla modal through js

I'm customizing a view in my component, I have tabs, each tab contains a modal, but when adding a new tab using js, I don't know how to initialize the new tab's modal via js?
1 vote
1 answer
142 views

500 Layout default not found. (Joomla 4)

I am trying to make a music component for Joomla 4 On the backend, my other forms work fine and the data is stored correctly in the database ( celebrity , album , etc...) In the music form, when I ...
0 votes
1 answer
99 views

Joomla4 pagination issue in component on prev, next

Facing problem in joomla pagination when component upgraded from joomla 3 to 4 with same css, although buttons are working in joomla 4 with click taking to prev, first on left side and on right side ...
  • 395
0 votes
1 answer
30 views

Component Dashboard - config not showing

I have a dashboard setup for my component which works fine but I wanted to allow a user in the administrator usergroup to have access to the components parameters. So set the permissions in the ...
0 votes
2 answers
62 views

PHP if statement to display divs only on first page of pagination Joomla 4

I've spent the past few days trying different variations of if statements to get this working but it's now driving me nuts. What I'd like to do is show a series of divs on the first page of a custom ...
0 votes
0 answers
82 views

Connecting to an external database in Joomla 4 - further problem

I have seen the earlier question on this subject and tried the suggested code: $db = (new Joomla\Database\DatabaseFactory)->getDriver('mysqli', $options); but get an error: An error has occurred ...
0 votes
1 answer
61 views

Call to undefined method Joomla\CMS\Application\ConsoleApplication::getTemplate()

I am converting some Joomla 3 CLI applications to use the Joomla Console and this message is causing my new CLI's to fail. There are various entries in Joomla tracker relating to similar issues where ...
  • 2,845
3 votes
1 answer
52 views

Joomla 4 API for lightbox

I'm trying to upgrade my site to Joomla 4. In Joomla 3 I used "JHTML::_('behavior.modal');" to display a link to an image inside a lightbox. As also explained in this question: Joomla API ...
  • 31
0 votes
1 answer
39 views

Tutorial for creating joomla template

I read the tutorial about how to create a Joomla template from https://docs.joomla.org/Creating_a_basic_Joomla!_template , but when I scrutiny the Standard template bundled within Joomla 4.x (...
0 votes
2 answers
44 views

Activate jquery with javascript

I'd like to create a Joomla module, but it requires jquery to operate, the problem is whether Jquery is activated (imported) before is still unknown, import jquery through <script src> may cause ...
1 vote
0 answers
59 views

Tables and needed columns in Joomla 4

On the Page https://www.dionysopoulos.me/book/com-tables.html#com-tables-get-object I read: The table MUST have the following columns: parent_id. The primary key of the parent node. Provides ...
  • 171
0 votes
1 answer
36 views

Custom component categories missing after upgrade from 3.10 to 4.x

I have a custom component that integrates com_categories in it, after upgrading from joomla 3.10 to 4.x, and fixing all the errors of my component on joomla 4.x, when accessing the categories menu, ...

1
2 3 4 5
7