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
20
votes
4answers
13k views

Joomla 3.x extension development tutorial for a beginner developer

I worked extensively in Joomla 1.0.15 version and developed multiple extensions. Also, I continued my developed in Joomla 1.5.x But, my developed discontinued after this release. Now, I want to start ...
9
votes
4answers
2k views

How to develop a Joomla module?

I've looked far and wide for a tutorial on this, but can't seem to find anything satisfactory. How do you make a new module for joomla? Right now I'm using custom HTML modules all over my code, and ...
2
votes
3answers
2k views

Sending POST data within module - AJAX

Requirements for this task is - I can NOT use any type of components (com_ajax is out of the options list) GOAL: send post data if checkboxes are 'checked' using ajax within custom module. Is my ...
10
votes
2answers
2k views

What's the difference between JHtml:script() and $doc->addScript?

I developed a module recently that required certain JS and CSS files to be injected into the <head> of each page. Initially, I used: $doc =& JFactory::getDocument(); $doc->addScript(JURI:...
11
votes
8answers
13k views

How to display module in component area

I often need to create a menu item that displays a module in the component area, without any other content. The way I solve this is to create a new article, and add only {loadposition mymodule} in ...
5
votes
3answers
4k views

How to add article image to module mod_article_categories?

I am using Articles - Categories module in my Joomla website (my custom template) and it works great, meaning that it lists all articles with intro text from the categories I want. But it does not ...
3
votes
1answer
741 views

How to conditionally show fields in module xml?

I created a simple module to enter values in textfields which I show in module positions on the frontend (banner images...). Now I need a solution like if dropdown value in fieldname "xy" is "xyz" ...
10
votes
6answers
9k views

Show/hide module title not working

I'm trying to hide the title of a module. I have changed the admin setting but the title is still displayed in the front end. In the database, the showtitle field is set to 0.
3
votes
3answers
3k views

How to assign a module to different pages

I have menus in home page. Now i want to display different modules in different page and also I want to add SEF custom name to pages. Since I am new to Joomla, Any help greatly appreciated. Thanks in ...
3
votes
1answer
138 views

Is there any equivalent event to onContentAfterSave for Modules?

Is there a way we can 'listen' to the module save event so that we can use a plugin to do some additional work. I found this question on stack overflow but I am confused as to where dispatcher will be ...
5
votes
2answers
6k views

Available fields in Joomla XML manifest

When developing an extension, what are the form field types I can use in Joomla?
4
votes
2answers
2k views

Get value from a repeatable field and use it in a module

I use the field type "repeatable" in a Joomla module I've created but I don't know how to get the values out of it and use it in the module's default.php to create the output. My repeatable field: ...
4
votes
3answers
593 views

How to modify article structure?

Sometimes, we need to customize the structure of Joomla! articles with custom fields in order to propose to users different textarea / input where he can enter datas such as date, location, text 1, ...
7
votes
2answers
1k views

Get Value of Repeatable Field from Joomla XML manifest

repeatable - How to get values from this field type ? I am coding a Free module with a repeatable field. <field name="star_slides" type="Repeatable" icon="list" description="" label="Edit Your ...
7
votes
2answers
4k views

Get full link from menu item field type

I am developing my own slideshow component and module for Joomla. The component is used to select the slides along with captions and links etc. The module shows the slides. In the component, for each ...
6
votes
2answers
4k views

Module to show all articles with Tag and in a Category

I am trying to make a module to bring back all articles in a category "holidays" that have a tag of "cuba" All the examples I can find are tag clouds or getting tags for the current article. Does ...
4
votes
3answers
4k views

override modules

Joomla 3.3 - beginner I am creating my first template, and after installing it to be ready for testing. I accidentally clicked on "mod_login" in the "create override" under my template settings. and ...
4
votes
1answer
140 views

How to remove the default editor inserted in a custom module

I have created a custom module in Joomla 3.5; I have a set of fields, but surprisingly, a default editor is inserted into the module basic tab, while I have not such fields in my fields XML: <...
4
votes
1answer
527 views

Article Table of Content as a sticky navigation

I'm looking for a way (plugin, module?) to achieve the following: auto-generate a Table of Content for certain long Joomla articles based on HTML tags (H1,H2 etc.) or CSS classes of headings show ...
4
votes
1answer
449 views

What does “Prepare Content” do and when should it be used?

For some (all?) custom modules, under the options tab, there is a Prepare Content option. What does it do? When should it be used? (Conversely, when should it not be used?) What's its impact on ...
4
votes
2answers
5k views

Hide Edit Module option in front-end for admin users

When an admin user is logged in, to the front-end of a Joomla 3 site, when he moves the mouse over modules or menus, an Edit Module icon / message appears inside a box. Clicking on it, will take the ...
3
votes
2answers
956 views

Access custom module file directly using AJAX

I want to directly pass POST data to my .php file which is located in my module folder. I know this is security risk, but I'll try to fix that later. I'm doing research on this subject - how to do it ...
3
votes
1answer
134 views

Joomla removes img tags from HTML of modules loaded in article content

Somehow, Joomla removes img tags from the HTML code of modules loaded in article content by {loadmodule} or Modules Anywhere and I can't find a way to stop it. I have a Joomla 3.8.2 site where there ...
3
votes
1answer
2k views

How to get the form of component from module?

I tried to get a component form from my module. I got the model and then tried to get the form, but the result was empty. I tried to define 'JPATH_COMPONENT' and it was useless. define('...
5
votes
2answers
2k views

Using caching for module or component independently

Is it true that even if i enable module caching from module setting, module caching not works unless system cache plugin turned on? I want to use cache per module/component from their settings not ...
4
votes
1answer
2k views

Get all installed Joomla extensions and their version

I'm not really familiar with Joomla, but I need to write a script that is supposed to list all the installed extensions and their version number, if possible. I've already done this for WordPress, ...
2
votes
1answer
648 views

Jquery marquee script not working in joomla?

I want to marquee some content divs with continues scrolling. I create a module then added the jQuery from this url: https://github.com/aamirafridi/jQuery. This code is working successfully in our ...
2
votes
1answer
95 views

How to add CSS/JS/an Image to a module backend

I have long wondered how to change my admin particularly for my custom modules. For many cases using an XML file is fine and I can use the built-in Joomla! form fields. In some cases, I'd like to ...
2
votes
3answers
83 views

Is it possible to add a new module position within a module?

I know in a template you can add <jdoc:include type="modules" name="newposition" /> and then within the positions tags you add your new position. <positions> <position>...
2
votes
1answer
50 views

Separate Link and Title from function

I have another question which was kindly answered by @Lodder here: Echo Category form field type title in Module In the link which is produced, I want to separate the link and title from the ...
2
votes
1answer
433 views

Joomla 3 Module Save Event

I am searching for an event that is triggered after saved a specific Module, for a Plugin. Like the onContentAfterSave Event for the Content Group. Is there such an Event, or how can I trigger such ...
2
votes
2answers
939 views

Call php function in backend of module

I am trying to call a php function from the backend of a module (I'm using a custom form field). com_ajax does not work because it pulls the current menu item, which doesn't exist since it is not ...
2
votes
1answer
137 views

Mixing PHP variables and JS variables in output

I am trying to develop a module to use JWPlayer's URL Toekn Signing (docs can be found here http://developer.jwplayer.com/jw-platform/reference/v1/content_signing.html) but I'm having an issue with ...
2
votes
1answer
270 views

Component in module. addModelPath doesn't seem to work

I am trying to display a component in a module which seems to work using this example http://www.escope.cz/en/blog/94-how-to-load-component-in-a-module I am now facing a problem where my model isn't ...
1
vote
3answers
2k views

Placing two modules side by side

I'm trying to place these two modules side by side. They are in the same position and the proper ordering. I've also created a new module suffix for the width of the modules. Here's the code: .box....
1
vote
1answer
48 views

Fatal Error: Class 'ArticlesLatestHelper' not found in Joomla 4 module while trying to add new function

I'm testing and playing with Joomla 4 alpha. What I tried to do is to quick-edit / modify the module Latest Article (mod_articles_latest), adding a new function. In joomla 3.x I usually adding a new ...
1
vote
1answer
47 views

Class not found in Joomla 4 when using JDate inside a function

In my last question I tried to modify mod_latest_articles module, and added myCustomFunction to ArticlesLatestHelper.php like this : /** * @package Joomla.Site * @subpackage ...
1
vote
1answer
193 views

Echo Category form field type title in Module

I'm building a module and using the Category Form Field Type, as outlined in the Joomla docs here https://docs.joomla.org/Category_form_field_type In the module XML I've used the following: <...