Questions tagged [joomla-4]

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

Filter by
Sorted by
Tagged with
1
vote
2answers
40 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?
0
votes
1answer
16 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 ...
0
votes
0answers
19 views

Workflow implemented in 3rd party component

I have a simple component that enables me to record time against an activity for a specific user record (client) and during my upgrading this component to J4 I thought I would learn how to implement ...
2
votes
1answer
22 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 ...
0
votes
0answers
27 views

Dynamic page filled with content depending on the previous page

I am kinda new as a developer and I want to achieve the following in Joomla. The idea is that I have a category->sub category->products. The category and subcategory will be added in joomla and ...
1
vote
1answer
25 views

Render Custom Fields in Admin edit view

I want to add custom fields to my component. My admin edit view uses bootstrap tabs: <?php echo HTMLHelper::_('uitab.startTabSet', 'myTab', array('active' => 'general')); ?> <?php echo ...
0
votes
1answer
21 views

2014 Commands out of sync - MySql query J4

I've come across this error when performing some database queries in my J4 site model: $db->setQuery((string)$query); try { $rows = $db->loadObjectList(); } catch (...
1
vote
1answer
53 views

Joomla 4. Call to a member function getTable() on bool

I am adapting the component to the new structure and classes of joomla 4. I started with the admin panel of my component. The list and the edit page are displayed without errors, but when I try to use ...
0
votes
1answer
36 views

Joomla 4, Error: Class '...\Component\...\Administrator\Model\SimpleXMLElement' not found

Please tell me what the problem may be. I adapt the component for Joomla 4. I get this error, although everything should work. Class '....\Component\....\Administrator\Model\SimpleXMLElement' not ...
0
votes
1answer
51 views

What is the correct PHP to render Subform repeatable custom fields on the front end?

When creating custom layout overrides the PHP code <?php echo $this->item->jcfields[X]->value; ?> Works successfully, but does not function at all when it comes to repeatable subform ...
4
votes
1answer
89 views

What is the best way for raising an error message in Joomla 4

I'm working on updating a component for Joomla 4. In the code, there are various bits where we raise an error code when for example the user is not authorised to access a certain part. For example in ...
1
vote
1answer
60 views

Joomla 4 - get module params in external php

In Joomla 3, I get module params with this code: // Create the Application $app = JFactory::getApplication('site'); $module = JModuleHelper::getModule('mod_dev'); $presetParams = new JRegistry($...
0
votes
1answer
24 views

What would keep custom fields from rendering in the frontend on Joomla 4

When using the shortcode (example {field34}) for a field in the Article editor text area the field content is not showing on the front end. I entered the fields manually and also used the dropdown and ...
2
votes
1answer
47 views

Are custom fields updatable using joomla 4 api?

Simply put when using the API to update a custom field of an article, the new information is not successfully passed through. Furthermore, the original contents are deleted from the field. The ...
1
vote
1answer
53 views

J4 API - There are two variables for Article Text, why do neither work on PATCH?

While working with the new Joomla 4 web services API. The Article text does not update. Additionally, as per the documentation, when creating an article via API the article text variable is ...
0
votes
0answers
42 views

Component menu not created correctly on clean install on Joomla! 4.0

On Joomla! 3.10.x when doing a clean install of my component, i have this field created : But on Joomla! 4.0.x this field isn't here, the code for the component for Joomla! 4.0 is here https://github....
1
vote
0answers
26 views

How to get true full width modules in Cassiopeia?

In the Joomla 4! default template Cassiopeia, I can choose between Static and Fluid layouts. Static Layouts give me nice margins around the content, and makes the website have a more 'boxed' layout, ...
1
vote
0answers
42 views

J4.x - How to echo content from a specific article into error.php

In Joomla 3 I had a really simple error.php file which pulled in the content from an article with the title '404'. I created an article named 404 and assigned it to a menu item of type 'single article'...
0
votes
1answer
26 views

Upgrade Joomla 3.3.6 to Version 4

We are planning to upgrade Joomla 3.3.6 to Version 4. Currently, we are at Postgres version 9.6. Since the final release for PostgreSQL 9.6 is slated for November 11th, 2021, we are planning to ...
2
votes
1answer
30 views

Joomla don't see subgroups in the Articles tab (Joomla 4)

I set up three users. To make things easier, let's take the following names: X, Y, Z. Additionally, there are subgroups in the Registered group, let's call them X_group, Y_group and Z_group. User X ...
3
votes
2answers
61 views

Joomla 4 no longer inserting the Itemid, the current or active menu , in the URL. Is this correct behavior?

I am not seeing the &Itemid=, the active menu, being added to the URL in Joomla4 like it is with Joomla3. Is this normal behaviour now with Joomla4 and what is the alternative or is it an issue? ...
1
vote
1answer
42 views

Joomla 4 Controller naming convention and toolbar button tasks

I started a component com_xxx_yyy in Joomla 4 from scratch to learn the new API the hard way. Parts of the structure - Controller --- DisplayController.php --- YyyController.php - View --- Yyy ------ ...
0
votes
0answers
24 views

Display liste of items grouped by catégorie

I create a blog liste modèle category in joomla 4, need some help to customise it In ordre to display item grouped by catégorie Like Cat 0 parent |_Cat1 |_Item 1 |_Item 2 |_Cat2 |...
1
vote
0answers
116 views

React.Js with joomla 4

I searched almost all possible joomla forums to integrate a SPA with joomla 4. I have a SPA with react ready and I want to display it on the administrator side as a component. The only problem is the ...
0
votes
1answer
34 views

Load Plugin Form into Component Form

I'm trying to load a plugin's form into my component form in Joomla4. So my components getForm method is: $form = $this->loadForm( 'com_mycomponent.member', 'memberform', array( '...
2
votes
1answer
213 views

How to override a form field in Joomla 4

I have the following field in my module's XML: <field addfieldpath="/modules/mod_xxxxxx/fields" name="icon" type="filelist" label="Icon" />...
1
vote
0answers
84 views

Joomla 4 - router.php SEF-URLs broken since update

This current router.php creates in Joomla 4 this URL: localhost/component/ohanah/?id=688&Itemid=101 But it should create this: localhost/kurse/688-event-name where "event-name" is the ...
2
votes
1answer
165 views

Non deprecated method in Joomla! 4 to load user by userid

I'm looking for an extension for Joomla! 4.0 to replace a deprecated method which was used to load an user by userid. The method used actually is: $user = Factory::getUser($userid); The issue is that ...
1
vote
1answer
53 views

Is the word Proxy a reserved word (J4)

This may be a silly question but I couldn't find anything stating that "proxy" was a reserved word. I am working on my component for elections and wanted to register a user nominating ...
1
vote
2answers
252 views

How to get/call Joomla 4 custom fields into module

I tried below code <?php $article_id = 2; $model = JModelLegacy::getInstance('Article', 'ContentModel'); $article = $model->getItem($article_id); JLoader::register('FieldsHelper', ...
1
vote
1answer
40 views

Add Custom Admin Button in component - Joomla4

I've created many custom buttons in my components for Joomla! 3 but I hit a stubbling block creating one in J4. In my View file I have $toolbar = Toolbar::getInstance('toolbar'); and then I've tried $...
0
votes
1answer
60 views

joomla 3 extensions migration to joomla 4

I developed several extensions on Joomla 3 and I want to migrate my extensions (components, modules, plugins) to Joomla 4. I searched on the net and I didn't find any information about upgrading J3 ...
1
vote
0answers
28 views

How to preserve hyperlinks in Joomla4 when using enqueueMessage()?

How can I add a hyperlink in an error message in Joomla4? I used hyperlinks in enqueueMessage text in joomla 3.x without any problems. Now I'm using Joomla 4.x and it removes the hyperlink -- it ...
1
vote
1answer
41 views

Retrieve Active Menu link in Controller (frontend - Joomla4)

I'm trying to do a "quick" fix to J3 components so they work in J4 until I can re-code in the new structure ready for J5. Now that I've set the scene, I'm stumbling on getting the Menu URL ...
0
votes
0answers
32 views

Error not clear in query in component, how to track the query which fails

In my component i have an error showed in top of the page coming from a query which has failed : Syntax error near to '' at line 3 Is-there a way to track the place and the query which fails in this ...
2
votes
1answer
58 views

In controller in admin of my component, i want to load a model from com_plugins

In my controller of my component, i want to load the model : PluginModel from Joomla\Component\Plugins\Administrator\Model\PluginModel; In my controller the getModel method return just false, this is ...
2
votes
1answer
77 views

Install Script - J3 to J4

This question was raised on the Joomla General Development Google group list but I was unable to respond successfully (6 replies deleted - I obviously did something wrong) - so I thought I'd raise the ...
2
votes
3answers
236 views

Where to read about Joomla 4 convention for class names

In a few answers on JSE and looking at the Joomla 4 tutorial on building a new component, I have noticed that the convention for class names appears to have changed, dropping the <component_name>...
2
votes
3answers
186 views

Model not found when from a controller

In a controller, I am trying to load the model, but I have the following error: Call to a member function getSearchURL() on bool So the getModel() is returning false. This is the code of my ...
1
vote
1answer
57 views

Joomla 4 - Module Backend Subform subform-row-add "row" not available

while updating one of my modules for J4 i recently noticed that the repeatable subform field no longer provides the added "row" in JS. Working JS for J!3.x: $(document).on('subform-row-add', ...
1
vote
0answers
16 views

How can I update a Joomla form editor box contents from Javascript?

I have a form with lots of fields including editor fields that display using jce/codemirror. I have buttons that call the submitbutton.js which builds a string from other elements in the form. I can ...
0
votes
1answer
44 views

Is there a resource showing all the J3 classes mapped to the J4 equivalents?

I know we are using Factory instead of JFactory I would like to know if there is an easy way to know the mapping. I'd also like to understand if any have been deprecated or replaced. Is there a good ...
3
votes
1answer
586 views

How to use joomla.asset.json correctly?

I figured I need to reinstall a template/extension in order to take into account my changes to the joomla.asset.json file. Here is the file I'm currently using: { "$schema": "https://...
2
votes
1answer
234 views

Joomla 4 website's backend not working after renaming htaccess.txt to .htaccess

I got a issue after renaming htaccess.txt to .htaccess in the public_html folder of my Joomla 4 website (https://www.freepetsitters.com). I renamed it in order to get rid of "index.php" in ...
0
votes
0answers
143 views

Helix Ultimate Template: Error "500 icon::print_popup not found." when clicking on a blog article

I am currently using Joomla 4 Beta 7 with Helix Ultimate 2 Alpha 5 and PHP 7.2. When I go to my website's homepage > Blog and then click on any article, I get the following error: 500 icon::...
1
vote
1answer
192 views

Error “500 behavior::tabstate not found.” when trying to access SP Page Builder

I am currently using Joomla 4.0.0 Beta 6 with Helix Ultimate 2.0.0 Alpha 3 and PHP 7.2. My website runs on LiteSpeed Web Server, NOT Apache. When I go to The Joomla administrator panel > SP Page ...
1
vote
1answer
29 views

Doesn't find the component id when creating menu items during postflight step when installing a component

I'am working with the last git changes of Joomla 4.0. In my component, i create the menu items for frontend part during postflight step when installing a component. The issue is that isn't able to ...
1
vote
1answer
69 views

Workflows in Joomla 4

As we all know Joomla 4 is on the horizon and the improvement to workflows are definitely an interesting addition. From what I've seen, the workflow works great for new content, but what about content ...
3
votes
0answers
129 views

Joomla 4 template namespace

I'm working with latest Joomla 4 beta, and wondering how can I use namespaces with templates so I can start using and developing custom fields for my templates. I need to know what should I set in the ...
1
vote
0answers
130 views

Namespace class of component not found in script.php during clean install of component

in file script.php of component made for Joomla! 4.0-beta2-dev the namespace isn't found : Class 'Kunena\Forum\Libraries\Install\KunenaModelInstall' not foundClass The changes in script.php : https://...