All Questions
7,189
questions
1
vote
1
answer
20
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
16
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 ...
0
votes
0
answers
16
views
How to use emoji picker plugin from editor in Joomla in a textarea field?
I need to use the emoji picker plugin from editor to add emojis in a textarea field. Is it possible?
It's for my chat component: https://extensions.joomla.org/extension/communication/chat/tabapapo/
1
vote
1
answer
27
views
Webservices Route
If I create Route for the API via
$router->createCRUDRoutes( 'v1/foos', 'foos', ['component' => 'com_foos'], true );
Like explainded in https://joomla.stackexchange.com/a/32322/7387 the Route ...
4
votes
2
answers
46
views
Joomla API and Credentials
I am taking my first steps in integrating the Joomla API. I used this tutorial: https://blog.astrid-guenther.de/en/joomla-webservices/
Now I am wondering if it is really necessary to include the ...
2
votes
1
answer
16
views
Can the package XML be accessed from the preflight method?
In the package installation script, preflight method, is there a way to access the package's XML? If so, how?
0
votes
0
answers
24
views
I want to display a form with the data added already
public function getLaymanLayout($id){
$form = $this->getForm();
$form->bind(0);
}
I still have a lot to implement and make it correct to the MVC rules.
I want to call a table from the ...
2
votes
1
answer
62
views
Joomla 3.x routing and slug problem
I have 1 component with 2 views - default is view1 - secondary is view2.
When I associate it with the menu from the backend, Joomla creates the correct url with alias for SEO.
Example: www.sitename....
0
votes
0
answers
18
views
Declare Ecommerce Data
We sell our products through a marketplace "Skroutz".
We use j2store cart solution.
Skroutz asks us to add to "thank you" page some scripts:
https://developer.skroutz.gr/analytics/ ...
1
vote
1
answer
16
views
Trying to find the right syntax for prefilling a subform in J3.10
I'm trying to figure out how to prefill subform repeatable fields - the situation is:
/com_manufacturing/admin/views/document/tmpl/edit.php
//some code
<?php
// $subform = JForm::...
1
vote
1
answer
36
views
Clean HTML tags from Tags results truncated text
When you click a Tag you are directed to Tags results that are rendered by ../components/com_tags/tag/default_items.php.
By overriding this file you can have your specific look.
A serious issue with ...
1
vote
1
answer
57
views
Joomla layout CSS classes in a view into iFrame
In the chat component I developed there is a View inside an Iframe in the Main View. The component's CSS works normally, but I can't use the standard Joomla layout classes. The HTML is sent by the ...
1
vote
0
answers
10
views
Simple Image Gallery Cropped Images
I have a new website using the Simple Image Gallery extension. I have it working pretty well it seems. However when I crop an image in my image directory, the original is still displayed in the image ...
1
vote
1
answer
44
views
404 View not found [name, type, prefix]
I'm currently building a new Joomla! 4 component from scratch by following along a series of blog posts since I am new to Joomla! and its development.
I am using Joomla! 4.1.5
Unfortunately I am not ...
2
votes
0
answers
32
views
The quickest way to get the POST object in Joomla 3 & 4
I've been creating a lot of webservices API endpoints in Joomla 4 lately and wanted to ask:
"What's the simplest, fastest, most practical way to get the entire POST object when a controller ...
1
vote
1
answer
12
views
How to add Table of Content using HTML or other options?
I'm looking for an answer to how to create a Table of content while publishing the article in Joomla. I know "page break" option but the default option design does not look on the blog page. ...
1
vote
0
answers
19
views
Joomla 4 - 503 service unavailable
I've set
public $error_reporting = 'maximum';
public $debug = '1';
If I go into cPanel and turn off mysqlnd nd_mysqli and nd_pdo_mysql and then turn on mysqli I get an error
MySQL server has gone ...
1
vote
0
answers
14
views
Does showon work with form fields that are checkboxes?
I have a List form field type in my form, that selects (by showon) the values visible at a second (multiple) List form field type. That works fine.
Something like that:
<field name="animal&...
1
vote
0
answers
47
views
Tabs in the elements of Zoo Joomla Component
We want to use Tabs in the elements of Joomla Zoo Component.
We want to evaluate tabs in the Edit and Submission and Full and Teaser Views of the Zoo Component.
We are using JU Tabs Tabs Extension for ...
1
vote
1
answer
79
views
"0 Class 'JFormFieldList' not found" error
I tried to update to Joomla 4, but failed. So I restored to the previous version on server. But after the restoration, although the website (www.mslmaster.com) looks fine, but the Joomla itself does ...
1
vote
1
answer
31
views
Library manifest delete folder
I use a library in my component with these folders:
/library/wbs/classes
/library/wbs/helpers
/library/wbs/js
/library/wbs/css
/library/wbs/libraries
And I want to use this manifest:
<?xml version=...
0
votes
0
answers
15
views
Show configuration forms of different plugins into a single tab
I wrote several plugins and for each one exists a relative configuration form loaded by the onContentPrepareForm event using the $form->loadFile() method
Now each time I use this technique, Joomla ...
0
votes
0
answers
10
views
Sketch / Drawing extension for Joomla!
I'm looking for a plugin for Joomla! where guests can leave paintings.
Just something simple like Microsoft Paint.
2
votes
1
answer
22
views
override for /layouts/joomla/content/full_image.php // alt attributes for images in Joomla 4
I need to make some adjustments to
/layouts/joomla/content/full_image.php
in Joomla 4.1.5.
For all (full) article images without an alt attribute the alt attribute should be the title of the article.
...
2
votes
1
answer
56
views
How to show list of articles filtered by category and custom field
I am looking for a way to show Joomla 4 articles in a category blog filtered by one (or more) of my custom fields. - The category blog settings in the backend seems only allow to filter by category, ...
1
vote
1
answer
31
views
How do I insert multiple records?
First, I took user_id, name, and email for the #__users table and joined with custom #__field_values lot, address, and phone.
$db = JFactory::getDbo();
$query = $db->getQuery(true);
$query->...
1
vote
1
answer
31
views
Joomla dispatcher detach and register functions disappeared
I use this code in Joomla 3 component:
$dispatcher = \JEventDispatcher::getInstance();
if (class_exists('PlgSystemFields'))
{
//detach plugin
$dispatcher->detach('PlgSystemFields');
}
$...
0
votes
1
answer
27
views
Article Show and Link to Article
I use the extension "Article Show" in Joomla 3
https://www.olwebdesign.com/joomla-extensions/article-show-joomla-module.html
I create a module "Last news" with the position "...
0
votes
0
answers
10
views
Missing Extension Update module in backend of fresh new Joomla 4 install
Facing an interesting issue here: I created lately a fresh new Joomla 4 install from a quite "classical" quickstart package and figured that I am missing the Extensions Update admin module ...
0
votes
2
answers
43
views
Alias and title in article url
At the moment my joomla articles are using the alias in the urls, like that:
site.com/menu/article-alias
Now I need to add the title of the specific joomla article in my url, too. So I will have a ...
0
votes
0
answers
35
views
How to remove CSS and JS from Joomla 4 header?
I want to properly remove CSS and JS links from Joomla 4 header
For example I did not want:
<link href="/newer/media/vendor/fontawesome-free/css/fontawesome.min.css?5.15.4" rel="...
1
vote
2
answers
72
views
multilingual website & Association: error 404 when clicking on Edit btn for associated Articles or Menu Items (same issue with Edit btn in Menu Item)
I have a multilingual website where everything was running fine under J3.
I migrated to J4 (and also switched to YOOtheme Pro. I mention it just in case).
And now the Edit button on the Association ...
3
votes
1
answer
31
views
Adding a new view to built in component (com_tags)
What is the best way of adding a new view to an existing (built-in or 3rd party) component?
In the particular case I want to add a better tag view to com_tags. The view in com_tags just lists the ...
2
votes
0
answers
19
views
What to use: Table store vs. prepareTable
What is the reason a Joomla integrated component like contacts sets modified and modified_by while saving once in the prepareTable() method of the Model and also in the storeTable() method?
Is this ...
1
vote
1
answer
16
views
Load table session return null in controller
In a controller of my component in Joomla! 4.1 i want to load the table session but it return null :
$table = Table::getInstance('session', 'JTable');
$table->load($session->getId());
$table->...
2
votes
1
answer
17
views
Google search results for my site include some strange urls - how to deal with them?
For some reason Google has indexed some pages on my Joomla website using strange urls starting https://www.pgweb.uk/?id=
https://www.pgweb.uk/?id=1605:new-dance-studio-launches-next-week
When clicked ...
2
votes
1
answer
26
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
0
answers
21
views
Error 0 after moving Joomla site to subfolder
As told in the title, I just moved my 3.9 Joomla site to a subfolder on my apache server.
Unfortunately when I'm trying to access it, I get this error
"syntax error, unexpected '}', expecting end ...
1
vote
1
answer
28
views
A better way to stop fake registrations on Joomla forums?
I've been running a Joomla-based website for over 15 years. It's focus is ocean paddling (on things called surfskis) and the busiest part of the site (and in fact the only reason I've kept it going) ...
0
votes
1
answer
42
views
Is there a way to calculate "return" for every increased value by 1?
In the following example, is there a way to calculate "return" for every increased value by 1, rather than typing endless lines?
$field1 = (int) '[userfield1]';
if ( $field1 === 2 ) {
...
0
votes
0
answers
47
views
Use Text Box Value In Query Of Separate Text Box
I have a field called Manager_ID and I want a drop down list of employees to be populated with the results of the query:
SELECT * FROM employees WHERE managerID = Manager_ID
How do I capture the ...
3
votes
2
answers
58
views
Custom Fields inside Articles News Module in Joomla 4
I want to show some specific Custom Fields inside the Joomla 4 Articles News (mod_articles_news) module.
I used to use this code in Joomla 3 :
<?php $customFields = FieldsHelper::getFields('...
1
vote
0
answers
32
views
Joomla! 4.1.5 category ACL logic
I am struggling with the logic of an ACL setting in Joomla! 4.1.5. It concerns front-end editing, but I suspect it also applies to the back-end. It concerns the permissions of a category.
When I leave ...
0
votes
1
answer
27
views
Joomla field logic control plug-in
Is there a plugin in joomla that controls the display or hiding of another field based on the specified field similar to the XML showon attribute, or similar to the conditional logic in the WordPress ...
2
votes
1
answer
47
views
Disable the save warning on TinyMCE editors
I've programmed a modal with a TinyMCE editor inside, where it's value is saved via ajax, but when leaving the page there's still the warning Changes you made may not be saved.
Is there a function or ...
1
vote
0
answers
17
views
A solution for multilingual websites having a different domain name for each language
I was looking for an easy to implement solution for multilingual websites having a different domain name for each language... for Joomla 4.
In Joomla 3 there were a couple of plugins, but there is ...
0
votes
2
answers
47
views
How to set error in component code for FormController
I'm creating a custom J3.x component.
I'm manually adding my own error notices where needed via
JFactory::getApplication()->enqueueMessage()
However, when a record is not saved by my component, ...
1
vote
0
answers
33
views
I can't get $params->set() to work to transfer variable from module to template
I'm trying to get a variable from my module to my template but its not working.
In my modules xml I defined:
<fields name="params">
<fieldset name="basic">
&...
0
votes
0
answers
35
views
addStyleDeclaration is not working in my 4.0 module
I'm trying to insert inline css in a module and it's not working.
In one of my modules php files i have the following:
$document = Factory::getDocument();
// Add styles
$style = 'body {'
. '...
0
votes
0
answers
18
views
Change the form field name from one view to a related one
I have two related views (item and booking) in my custom component. A view for the items, and another view for booking them. So, if you browse to an item view, you will see there a "booking ...