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
23 votes
4 answers
14k 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 ...
ursitesion's user avatar
13 votes
8 answers
17k 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 ...
johanpw's user avatar
  • 13.3k
11 votes
9 answers
6k views

How to create page only with modules and no component?

In joomla, I need to link every page to a component view. How can I create a page with no component output on it? Example : On my home page I only want a module output. For this, I can link the home ...
web-tiki's user avatar
  • 1,373
11 votes
6 answers
10k 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.
toomanyairmiles's user avatar
10 votes
4 answers
3k 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 ...
serakfalcon's user avatar
10 votes
2 answers
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:...
codinghands's user avatar
  • 2,295
8 votes
6 answers
6k views

How can I control the module display on pages with no menu item?

I have asigned a module to pages according to their menu items in the module parameters but I would like to hide/show it on specific pages that don't have a menu item linking to them. How do I ...
web-tiki's user avatar
  • 1,373
8 votes
2 answers
386 views

Where to place code in Joomla modules

When developing a Joomla extension, are there any best practices, guidelines or recommendations regarding where to place the different parts of my code (PHP and HTML)? I'm mostly thinking about the ...
johanpw's user avatar
  • 13.3k
8 votes
2 answers
5k views

How do I allow direct access to my custom .php file in a Joomla Module to be consumed from AJAX?

This is my first time ever in PHP and my first time ever with Joomla. I come from a heavy non-Web C# / .Net background. I have written a custom Joomla module that interacts with a third party ...
Fede's user avatar
  • 183
8 votes
1 answer
240 views

Can anyone explain the tp=1 process?

Can someone please explain the process behind tp=1 for the mod positions preview , I found the module output which is called from templates/system/html/module.php function modChrome_outline(...) ...
Dan's user avatar
  • 889
8 votes
3 answers
1k views

Display module in multiple positions

Is it possible to display a module in multiple positions, preferably natively, or through a third party extension? I know there are workarounds... clone the module and change the position, however ...
codinghands's user avatar
  • 2,295
7 votes
3 answers
8k views

How do I generate a SEF URL in a custom module instead of the real URL?

In my module, this code is being used to generate the URL of the page: JURI::base() . ContentHelperRoute::getArticleRoute( $article->id, $article->catid ) This works exaclty as it should and ...
rleathers's user avatar
  • 168
7 votes
3 answers
4k views

Custom menu get title of the active menu's parent item

I can get the title of the active menu using $menu = &Jsite::getMenu(); $menuname = $menu->getActive()->title; But how can I access it's parent title?
web-tiki's user avatar
  • 1,373
7 votes
4 answers
2k views

Check if module is enabled

I'm currently trying to check if a specific module is enabled by using Joomla's JModuleHelper::isEnabled(), however the problem being is that it is always returning false, despite whether it is ...
Lodder's user avatar
  • 26.9k
7 votes
2 answers
2k views

How to insert "php code" inside the .xml manifest file of a Joomla module?

I want at the fieldset of a joomla module to echo an option with some fetched results from my db: <config> <fields name="params"> <fieldset name="basic"> <field> <?php $db ...
IseNgaRt's user avatar
  • 689
7 votes
2 answers
5k 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 ...
tristanbailey's user avatar
7 votes
2 answers
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 ...
DesignSubway's user avatar
7 votes
2 answers
2k 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 ...
Star's user avatar
  • 296
6 votes
3 answers
14k views

How to get module parameters inside helper function and how to get params inside a custom form field type?

Part 1: How to get module parameters inside helper function? I am trying to get the same module parameters inside the helper file. class ModTestHelper { public function getFoo () { return $...
Bhojendra Rauniyar's user avatar
6 votes
3 answers
3k views

What are the module styles?

When I add a module statement in a joomla template, I always use this code : <jdoc:include type="modules" name="left" style="xhtml" /> What does the style attribute stand for and what other ...
web-tiki's user avatar
  • 1,373
6 votes
2 answers
1k views

Copying Joomla Menu Items and keeping Module assignements

Currently in Joomla 3.2, selecting "Save as copy" on a menu item copies the details but not the module assignments into a new menu item. (I believe module assignments were copied in Joomla 2.5) Is ...
ContextSwitch's user avatar
6 votes
1 answer
2k 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 ...
NivF007's user avatar
  • 2,097
6 votes
2 answers
299 views

<customContent /> or <field type="editor">

I was interested to see the answer to this question which mentions the <customContent /> tag. I'd never come across this before, and I'm struggling to find much information on it. It does not ...
RichardB's user avatar
  • 3,082
6 votes
1 answer
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, ...
R.G.'s user avatar
  • 163
5 votes
2 answers
7k views

Available fields in Joomla XML manifest

When developing an extension, what are the form field types I can use in Joomla?
johanpw's user avatar
  • 13.3k
5 votes
3 answers
1k views

Folder create when user register joomla website?

In my Joomla site my users can upload and download files (docs and pdfs). So I want to create a separate folder for each and every user in my server. When a user register on my website a folder is ...
reegan29's user avatar
  • 187
5 votes
4 answers
4k views

Make module titles linkable

I was searching the internet but without much luck. I need some way to make module titles linkable, and the only thing I found was on Gavick forum archive posted couple of years ago and file doesn't ...
Jinx's user avatar
  • 301
5 votes
4 answers
4k views

How to disable frontend editing on a specific module?

The frontend icon on the language switch module is really annoying. How could I disable the frontend editing for a specific module? EDIT: I do need this icon for all the other modules, it just that ...
JinSnow's user avatar
  • 478
5 votes
2 answers
2k views

How to add a WYSIWYG editor to my module

I'm developing a small Joomla plugin, but I can't figure out how to add a field that uses the normal Joomla article editor, and not only a text field. I have a field like this: <field name="...
johanpw's user avatar
  • 13.3k
5 votes
1 answer
186 views

Can Smart Search index menu items or custom modules?

I am using Joomla v3.8.13 and have enabled Smart Search v3.0.0 which is indexing articles correctly. I've also installed ChronoForms by ChronoEngine to create a Contact Us form and some other forms. ...
johnsgp's user avatar
  • 53
5 votes
1 answer
695 views

How custom module chrome works?

I have some trouble with my module chrome. If I rename the PHP modules.php in template/protostar/html to XXXmodules.php (or anything else, just to break the link), then all the pages on my website ...
MagTun's user avatar
  • 976
5 votes
3 answers
4k views

How to add category image to module mod_article_categories

How can I add the category image to the categories listed using the J3.3.1 core module mod_articles_categories? I think I have to create a module override in template/my-template//html/...
Gerlof Koopmans's user avatar
5 votes
2 answers
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 ...
dev-m's user avatar
  • 1,341
5 votes
1 answer
1k views

Show module only on the start page

I've made a finder plugin which creates router links to my component. If there is no menu link available (especially when the found item is in a subcategory) the route of the item in the finder plugin ...
Laoneo's user avatar
  • 503
5 votes
2 answers
384 views

Is there a method to get a module by name and position?

JModuleHelper has 2 methods available with which you can load modules: JModuleHelper::getModule(); which takes either a module name / title (e.g. 'Main Menu') or a module 'type' (e.g. mod_menu), and:...
codinghands's user avatar
  • 2,295
5 votes
1 answer
110 views

Default module layout not honoured in the admin (when adding a module)

I have noticed that with Joomla 3, any module that has more than one layout (in the tmpl folder), and in the .xml has a default layout chosen example: <field name="layout" type="modulelayout" ...
jackJoe's user avatar
  • 865
5 votes
1 answer
4k views

Best way to call helper class function through ajax in module

I need to access helper class function through ajax request. In JS file :- var sbfootscores = {}; (function($){ sbfootscores.getTeams = function(competition_id){ $.ajax({ ...
subashbasnet8's user avatar
5 votes
1 answer
418 views

How to pass, with a custom button, the selected items to a controller?

As seen in this question (Add a custom button to a core backend component), I've created a simple plugin that adds a custom button on the com_content component. When I click on this button, the site ...
mHouses's user avatar
  • 429
4 votes
3 answers
609 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, ...
Sébastien Gicquel's user avatar
4 votes
1 answer
624 views

Module parameters in main tab

When creating Joomla modules, I use something like this in my XML manifest file to add parameters: <config> <fields name="params"> <fieldset name="options" label="...
johanpw's user avatar
  • 13.3k
4 votes
3 answers
3k views

Chrome problem: How to remove the div class=”custom” from a Joomla module

You might also find this question relevant if you are trying to solve "How to stop Joomla modules being wrapped in divs." What's the PROBLEM? When Including a module into Joomla, it gets wrapped in ...
TryHarder's user avatar
  • 2,340
4 votes
2 answers
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: ...
public9nf's user avatar
  • 265
4 votes
3 answers
1k views

How to put divider images between menu items

I'm trying to modify the Joomla menu module, so that I can put divider images between every list item. The thing is, that I don't want these to appear in the sub-menu's. How can I filter out what is ...
Hocho's user avatar
  • 335
4 votes
3 answers
5k 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 ...
Allam's user avatar
  • 349
4 votes
1 answer
204 views

Create a table observer

I am trying to create a table observer in a module. I am using the Table Advanced API guide in the Joomla documentation https://docs.joomla.org/Table_Advanced_API_Guide. When I use the code provided, ...
rancper's user avatar
  • 63
4 votes
1 answer
836 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 ...
Eoin's user avatar
  • 1,909
4 votes
1 answer
251 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 ...
sifu's user avatar
  • 1,105
4 votes
3 answers
5k 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 ...
Miha's user avatar
  • 71
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
4 votes
2 answers
6k 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 ...
FFrewin's user avatar
  • 19.7k

1
2 3 4 5
9