Questions tagged [joomla-4.x]

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

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

Using Workflow on just one category?

I'd like to allow users to submit content to a specific category, and notify administrators when this happens. It seems that J4 Workflows is designed to help this, but turn it then adds workflows to ...
Nic's user avatar
  • 111
1 vote
1 answer
57 views

First showon works as expected, all others don't

I have various such pairs in a form: <field name="hasEndDate" type="list" label="Hat Enddatum?" default="1" > <...
SteAp's user avatar
  • 163
0 votes
0 answers
27 views

Changing core parts of Joomla the structured way

I did change various internal parts of Joomla 4.x to provide newbie developers more details what happened during the processing of a request. For Example: Added details of argument into the debug ...
SteAp's user avatar
  • 163
0 votes
1 answer
43 views

Nested / child articles

I'm very new to Joomla, and I suspect that what I'm trying to do is very straightforward but I haven't been able to figure out how to do it, which probably means I'm looking in the wrong place. Let's ...
paulipopsis's user avatar
1 vote
1 answer
47 views

Error: The form "adminForm" is required to perform the task, but the form was not found on the page

I'm developing a component. At admin at the list of item, I get this error when I click on the + New button: [Error] Error: The form "adminForm" is required to perform the task, but the form ...
SteAp's user avatar
  • 163
1 vote
1 answer
136 views

J4. Get children categories

In a custom template helper of com_content I need to get all children categories from specific category. $categories = Joomla\CMS\Categories\Categories::getInstance('content'); $cat = $...
Peli's user avatar
  • 91
0 votes
2 answers
188 views

How to display order data with simple SQL query?

I am trying to run a simple query in Joomla 4 to retrieve order data to display in a module. Testing the query with phpMyAdmin works fine, but despite generating no errors (set to Maximum) the below ...
Phil91's user avatar
  • 31
0 votes
1 answer
40 views

"0 - syntax error, unexpected end of file" after transfering my site to another hoster

I recently transfered my domain from strato to netcup. I installed a fresh joomla 4 and installed my template (custom written). The Issue is I get the error: "0 - syntax error, unexpected end of ...
Jonathan Schmidt's user avatar
0 votes
0 answers
44 views

Joomla Mastodon Extension

I would like to try the extension https://github.com/nikosdion/fediverse/. I have followed the instructions https://github.com/nikosdion/fediverse/blob/main/docs/usecase_single_author_blog.md for ...
agi's user avatar
  • 171
1 vote
2 answers
52 views

Link to component appears empty

I created a simple component, which appears as expected at the admin side. If I link the component using a menu item, everything seems to be finde. Component appears in selector, component's views ...
SteAp's user avatar
  • 163
2 votes
1 answer
153 views

How can I add a timestamp to my CSS file and preload the file?

I have this code at the top of my index.php file to add a timestamp to my CSS file so that latest version is always rendered. $version = filemtime(JPATH_THEMES . '/' . $this->template . '/css/...
Gillian's user avatar
  • 411
1 vote
0 answers
37 views

Joomla 4 not unzipping custom component update package

I have developed a custom Joomla 4 component called "com_news" and successfully implemented the update functionality before. However, now I am encountering an issue where Joomla can't unzip ...
DeesreX's user avatar
  • 87
0 votes
0 answers
27 views

Drag-and-drop - what is the value of "data-draggable-group" for?

I've been building a Joomla 4 component, and have been looking to add the drag-and-drop re-ordering functionality. I have been doing this by looking at how the core components achieve it. I managed to ...
RichardB's user avatar
  • 3,072
0 votes
0 answers
59 views

Joomla 3 Custom PHP Script needs to be updated for Joomla 4

I have a custom php script that was written for a Joomla 3 site. Of course on Joomla 4 it doesn't work. I've been working on re writing the query statements to use prepared statements but even with ...
hpgodwin's user avatar
1 vote
1 answer
31 views

Dynamic Title Module Control

I'm using PHP to creata dynamic page title based on the menu item using Sourcer and the following PHP: <?php $active = JFactory::getApplication()->getMenu()->getActive(); echo $active->...
John S's user avatar
  • 11
1 vote
1 answer
73 views

Difference between usePreset and useStyle in Joomla v4

I am trying to create my own theme and I see from cassiopeia theme $wa->usePreset('template.cassiopeia.' . ($this->direction === 'rtl' ? 'rtl' : 'ltr')) When I tried to use the same as in my ...
Alaksandar Jesus Gene's user avatar
2 votes
2 answers
90 views

Change title for Categories page on custom component

I'm writing a component that will rely on Joomla's Categories to manage its own categories. Everything's working OK, I just cannot figure out how to change my component's Categories list title. I'd ...
Alexandre Paulo's user avatar
2 votes
1 answer
80 views

Content triggers on batch actions

I need to trigger code when an article is moved from one category to another. onContentAfterSave works fine for a single article, but what if I move articles via Actions -> Batch? Is there a ...
Alexandre Paulo's user avatar
2 votes
1 answer
39 views

How to 3rd party routing to my component?

I need to add EasySocial routing to my own component, so that JRoute([some EasySocial link]) outputs a proper EasySocial URL. How can I do that? If I understand correctly, EasySocial routing is active ...
Alexandre Paulo's user avatar
0 votes
2 answers
87 views

Understanding namespaces and object instantiation in Joomla

PHP starts with the index.php, then index.php includes app.php, and then includes framework.php. This is where my confusion starts, maybe because of my lack of knowledge about namespaces. In framework....
dhany saguntoro's user avatar
0 votes
1 answer
162 views

Setting HTTP header in Joomla 4 component

In Joomla 3.10 a component could set the HTTP response status code using something like: header($_SERVER['SERVER_PROTOCOL'] . ' 403 Not Permitted'); In Joomla 4.x the header is set by the component, ...
mbrampton's user avatar
  • 314
0 votes
2 answers
41 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 ...
user1616338's user avatar
1 vote
0 answers
36 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 ...
user469's user avatar
  • 111
0 votes
0 answers
31 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 ...
j00m's user avatar
  • 171
0 votes
1 answer
41 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.
DeesreX's user avatar
  • 87
2 votes
2 answers
146 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('...
anthi_p's user avatar
  • 57
1 vote
1 answer
78 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 ...
jo-erlend's user avatar
  • 113
0 votes
2 answers
248 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 ...
RustyJoomla's user avatar
  • 2,066
1 vote
1 answer
46 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 ...
Phil91's user avatar
  • 31
1 vote
0 answers
24 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 ...
Sean Carney's user avatar
0 votes
1 answer
236 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 ...
j00m's user avatar
  • 171
0 votes
1 answer
118 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. ...
Kris Hunt's user avatar
  • 144
1 vote
0 answers
101 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, '...
Marc Dechèvre's user avatar
0 votes
2 answers
166 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?
DeesreX's user avatar
  • 87
0 votes
0 answers
51 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 ...
j00m's user avatar
  • 171
2 votes
1 answer
358 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 ...
Glenn Arkell's user avatar
0 votes
1 answer
110 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 ...
j00m's user avatar
  • 171
3 votes
1 answer
190 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 ...
jamesgarrett's user avatar
  • 3,279
2 votes
3 answers
254 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::...
RustyJoomla's user avatar
  • 2,066
1 vote
1 answer
165 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 ...
j00m's user avatar
  • 171
3 votes
2 answers
341 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 ...
firecase's user avatar
0 votes
1 answer
363 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/...
ca hoang's user avatar
0 votes
0 answers
107 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 ...
Gillian's user avatar
  • 411
1 vote
2 answers
84 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::...
Jimmy's user avatar
  • 307
0 votes
2 answers
64 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; ?...
Mint's user avatar
  • 1
1 vote
2 answers
251 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); ...
jfischer's user avatar
1 vote
1 answer
101 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 ...
Irata's user avatar
  • 3,467
2 votes
1 answer
222 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 <...
anthi_p's user avatar
  • 57
0 votes
1 answer
171 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 ...
okisan's user avatar
  • 55
0 votes
0 answers
24 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('...
Alines's user avatar
  • 1

1 2
3
4 5
9