Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [module]

A Joomla module is an extension that offers certain functionality to a site, usually to present small pieces of information, in specified locations of the site (e.g. latest or popular articles), that is not supposed to serve as the main content, and is placed in the available module positions, around the component content output (e.g. sidebar, footer etc).

Filter by
Sorted by
Tagged with
0 votes
1 answer
30 views

What should I use to escape a module parameter in Joomla 5?

I have a custom module I have created. When writing the code Chat GPT suggested that I use this code. use Joomla\CMS\Utilities\Utility; ~ echo "<p><strong>" . Utility::escape($...
Eoin's user avatar
  • 1,954
0 votes
1 answer
31 views

Joomla page or article title in module

I am trying to use a module in a template to reflect the current menu or article title and need help with the PHP code to insert it in the module. It basically should be the article title on all ...
Witchypaws's user avatar
0 votes
1 answer
22 views

Generated <a> links to wrong URL

I generate a link in a module as follows: $user->contactAddress = str_replace("//", "/", trim(JUri::base() . $params->get('defaultContactAddress') . '?' . $params->get('...
alve89's user avatar
  • 113
0 votes
0 answers
41 views

Prevent multiple times loading stylesheet module

I have made a couple of modules that loads their own stylesheet. Why I do that is because then I can optimize my website furhter and only load the stylesheet data when the module is actually on the ...
Kuubs's user avatar
  • 345
1 vote
1 answer
35 views

New Module title language constant

Where does this title text comes from? I checked all .ini and .sys.ini files, but when editing the title to see if i got it, nothing changes I can edit the description seen there, but title always ...
maidan's user avatar
  • 433
0 votes
1 answer
294 views

ModuleHelper::renderModule with custom parameters

I am loading a module from an article overide. The module needs different parameters depending on places I load it from. In Joomla 3, I could do use (in an article overide) : // Load module jimport('...
web-tiki's user avatar
  • 1,373
0 votes
0 answers
127 views

Call to undefined method

I've have a big problem with my dashbord SP Page Builder, when i tried to go on https://www.sologne-nature.org/administrator/index.php?option=com_sppagebuilder , i've got this message 0 Call to ...
Clotilde Robert's user avatar
2 votes
3 answers
97 views

Find row with lowest column value per group, then join distinct group data to another table

I need a hint for this problem, trying for days already to solve it: THE PROBLEM I am working with an Joomla extension which has this 2 tables of interest: COMPANIES PRODUCTS A module lists all ...
Steven's user avatar
  • 35
0 votes
1 answer
202 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
  • 156
1 vote
1 answer
123 views

Joomla Menu Module with a Menu Heading as the base item

I want to add a list of menu items, and I want it to dynamically populate. I thought I could just use the menu module. I want only the sub/child items from "preparations and repairs". ...
Eoin's user avatar
  • 1,954
1 vote
1 answer
217 views

Manipulate Meta Description Content using Joomla Module

I want to create a Joomla Module that has the capability to write its own text based on the GET data within the submitted URL, it sounds feasible, let's say the submitted URL is yourdomain.com/index....
dhany saguntoro's user avatar
1 vote
0 answers
86 views

getModuleById parameter parsing

So when getting a module for rendering inside a component this is not working: $mod = ModuleHelper::getModuleById(123); but this: $mod = ModuleHelper::getModuleById("123"); That's because ...
maidan's user avatar
  • 433
0 votes
0 answers
56 views

Plugin That Copies Menu Item With Its Module Assignments Does Not Work on Joomla 4

I am trying to create a Joomla 4 Plugin that copies a menu item with its module assignments. My code works well on J3, but not J4. What am I missing? Here is my plugin's code: <?php /** * @package ...
wisdom's user avatar
  • 21
1 vote
1 answer
122 views

Giving parameters to my module on the administrator side

a few years ago, I implemented a Joomla 3 instance for a website of a biking club. It was nearly not used since then, because there was no necessity. But now we have the necessity. Back then, I ...
xola's user avatar
  • 163
0 votes
2 answers
70 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 ...
dhany saguntoro's user avatar
1 vote
0 answers
64 views

IDEA - display a module in another website

I have an HTML website placed in a sub folder of my Joomla website. Is there any way to display a Joomla module in that HTML website?
ca hoang's user avatar
2 votes
1 answer
319 views

Show button for each iteration of foreach loop

I have built a module using Joomla's subform XML. The XML in the subform is <fieldset name="topics" label="Topic"> <field name="title" type="text&...
RustyJoomla's user avatar
  • 2,078
1 vote
2 answers
138 views

Use different module settings/parameters on different posts in Joomla!

TLDR: Is there an easy way to include the same instance of a module in different posts with different settings in Joomla!? What works: URL parameters. I can call the post with a URL to which I append ...
herrpfarrer's user avatar
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 ...
Jim Beal's user avatar
0 votes
0 answers
179 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 {' . '...
Jonathan Schmidt's user avatar
0 votes
1 answer
37 views

I am new to Joomla and I'm trying to figure out if I need to install the software or if I can just log in online to make changes

I recently started a summer job and it requires some website management. The company that hired me already has their website through Joomla! and I am just trying to figure out if I need to download ...
Hailey Labelle's user avatar
2 votes
1 answer
531 views

Module class suffix not allowed in Joomla 4

I'm using some UIkit classes in module suffixes when working with modules. My template added those classes via chrome in Joomla 3. In Joomla 4 I cannot longer add a Module suffix class like "uk-...
maidan's user avatar
  • 433
0 votes
1 answer
28 views

Copying module, using the translation strings from the copied module

I regularly copy a existing module like mod_articles_news and I'd like to do some custom fields and things on it. But when I do this the translation strings don't get translated anymore. I keep using ...
Kuubs's user avatar
  • 345
0 votes
1 answer
21 views

Login works sometimes

Here is a video of what I see: https://youtu.be/Qbljr2CZu9k When I visit my login page here: https://www.dev.plantbasedplanet.co.uk/sign-up I cannot login using my credentials. However, when I fail to ...
Eoin's user avatar
  • 1,954
0 votes
1 answer
118 views

How to return data from 2 tables to one table using a select field

My tables: dzialki +--------------+-------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +--------------+-------------+------+---...
Dariusz Tokarz's user avatar
0 votes
2 answers
78 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 ...
testo's user avatar
  • 101
1 vote
0 answers
72 views

Delete Thumbnails Button Created as Joomla Custom Form Field Throws Me Out

I am developing a Joomla 4 Content Slider Module and it creates thumbnails in the mysite.com/cache/mymodule/ folder. I am trying to add a delete-thumbnails button. I am using a custom form field for ...
wisdom's user avatar
  • 21
0 votes
0 answers
36 views

Joomla Module Development: Check during runtime for a change module setting

I'm developing a joomla module, where I want to do some recalculation of the output, if the admin changes a specific module setting. One way to implement this, would be to use an additional table, ...
BertBaker's user avatar
1 vote
0 answers
71 views

Troubles with Implementation of self written Module for Joomla and Auto Suggest function which should be in Javascript

I am trying to find a way to implement either a self written module in Joomla with PHP code of an dictionary or try to use the dictionary by putting the PHP code in a joomla article with sourcerer ...
Parviz's user avatar
  • 11
1 vote
0 answers
31 views

Getting allready created component model instance in a module (singleton)

I have a module, that does some stuff and needs the data from the list model of my component. Everything is coded in MVC pattern using the Joomla framework. When clicking on a menu item the list model ...
maidan's user avatar
  • 433
1 vote
2 answers
228 views

Hide modules from a specific blog page

I made a new page https://www.anavasis.gr/blog/peer-to-peer-lending but on the position sidebar - c, I have some modules that are important for the rest articles in the blog but not for that one. How ...
sakis's user avatar
  • 11
2 votes
2 answers
423 views

How to include an external helper php file in module

I've created a custom component that (in addition to all the other component files) has a helper file located in: /administrator/components/com_kr_books/helpers/kr_books.php It has an abstract class ...
Chris Paschen's user avatar
4 votes
2 answers
2k views

Adding ajax call in a module for Joomla 4

I'm trying to add an ajax call to Article Latest module. I added the code below to /modules/mod_articles_latest/src/Helper/ArticlesLatestHelper.php public static function getAjax() { $data ...
webchun's user avatar
  • 2,418
0 votes
1 answer
185 views

Multiple components on a single page

Is it possible to show multiple components on a single page in joomla? I have 2 menu items, each one shows a different component, i want to show them both on the same page, is it possible?
Frenk's user avatar
  • 3
2 votes
1 answer
99 views

Display instructions or other text in Plugin

I would like to display some basic text, instructions and maybe a change log in HTML would be nice, under the first tab of my Plugin, what methods or techniques are available? In my sample screen shot ...
Irata's user avatar
  • 3,947
2 votes
1 answer
102 views

subform inside subform in module

I have the following XML in my module: <fieldset name="activities" label="Activity Details"> <field name="image" type="media" directory="...
RustyJoomla's user avatar
  • 2,078
0 votes
1 answer
71 views

Link to article in module

Good day. There is a custom field in my module mod_expandAjaxReq.xml <fieldset name="basic" addfieldpath="/modules/mod_expandajaxreq/models/fields"> <field name="...
antarey's user avatar
  • 35
0 votes
1 answer
189 views

Get html code from an internal link in a module

I need to get the html code from the joomla internal link, and transfer the code to the module My code default.php <?php defined( '_JEXEC' ) or die; ?> <div class="container" id=...
antarey's user avatar
  • 35
1 vote
1 answer
337 views

Joomla Custom module With Owl carousel

I need some advice on how to implement an OWL carousel with Joomla! native custom module. I have done some research already and I have tried several options including the add of the owl files to the ...
webdjam's user avatar
  • 11
0 votes
0 answers
192 views

Adding Azuracast JSON file to my AM HTML5 AUDIO PRO PLAYER in joomla

I need help for a problem that i didn't found solution. we have a web radio created with joomla and we start to put our programs 24h/24. I bought an AM HTML5 AUDIO PRO PLAYER and everything work fine ...
Ahmed Boudraa's user avatar
0 votes
0 answers
26 views

Sort Categories for sj_k2_categories_ii Module in Page

i use this sj_k2_categories_ii module in my site i make some menu with this module how i can sort Categories by alphabet in my page Categories sorted by module with k2 item ID thanks
Ali Zangeneh's user avatar
0 votes
0 answers
25 views

What's the easiest way to avoid the double class issue on modules?

The module class suffix is added to a module and then to the div with the module content within it. On the second occasion it adds the word/class "custom". I've always found this a bit of ...
Eoin's user avatar
  • 1,954
0 votes
1 answer
162 views

Add module to Component area

My main menu is linking category blog which is automatically displayed in component area, and I want to put a slider module in component area too, but only in home page, so modules on "Right"...
Mateo Ratkajec's user avatar
1 vote
1 answer
173 views

Display an editor in the front end using a module

I'm trying to display an editor using a module in the front end. I want visitors to be able to edit and create articles but from a module not a component. I've tried: jimport( 'joomla.html.editor' ); $...
user1616338's user avatar
2 votes
3 answers
188 views

Joomla Ajax in Module from Administrator not work

I have a module that creates thumbnails from the main image and over time the hosting fills with images, for that reason I want to add a maintenance button that deletes the previous images. It is from ...
Leoalv's user avatar
  • 167
1 vote
2 answers
2k views

Insert multiple rows into a database table using a loop

I am trying to insert post data inside a Joomla table. So within a loop I populate the query with the values of a decoded json but all the time I get this error: Column count doesn't match value ...
leno1232's user avatar
0 votes
1 answer
51 views

Where are joomla repeatable field values stored in database?

In which table are stored the data of a simple repeatable field of a module. I mean when you hit save somewhow the field values are saved somewhere right? So the question is where they are saved? In ...
leno1232's user avatar
0 votes
2 answers
49 views

Which content is generated first? component or module?

I have a page with modules and components from the same extension. I made some customizations to the component's template file so when the page loads it gets the current user's avatar from some ...
shenkwen's user avatar
  • 1,389
1 vote
1 answer
90 views

Add customfields in the administration section of a module

Is there a way, to load with an XML element, the custom fields, from the Joomla component, com_fields in the backend of a module? I know how to take them from the default.php and display them, but I ...
leno1232's user avatar
0 votes
2 answers
154 views

How do I carry a Joomla article title and its link across from an article layout into a module's helper?

I have a module that appears on an article page. The module has a form and I would like to send the article's title and page URL as part of the information sent through the form. Using $this->item-&...
ziyalogy's user avatar

1
2 3 4 5
9