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 ...
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 ...
10
votes
8answers
5k 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 ...
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.
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:...
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 ...
8
votes
2answers
352 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 ...
8
votes
2answers
4k 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 ...
8
votes
1answer
163 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(...) ...
8
votes
3answers
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 ...
7
votes
6answers
5k 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 ...
7
votes
3answers
7k 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 ...
7
votes
3answers
3k 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?
7
votes
2answers
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 ...
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 ...
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 ...
6
votes
3answers
1k 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 ...
6
votes
4answers
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 ...
6
votes
2answers
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 ...
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 ...
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?
5
votes
3answers
872 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 ...
5
votes
4answers
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 ...
5
votes
4answers
3k 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 ...
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 ...
5
votes
1answer
520 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 ...
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 ...
5
votes
3answers
3k 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/...
5
votes
1answer
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 ...
5
votes
2answers
197 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:...
5
votes
1answer
94 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" ...
5
votes
1answer
3k 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({ ...
5
votes
1answer
327 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 ...
4
votes
3answers
9k 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 () { ...
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, ...
4
votes
1answer
533 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="...
4
votes
3answers
2k 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 ...
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
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 ...
4
votes
2answers
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="...
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
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 ...
4
votes
1answer
55 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. ...
4
votes
1answer
52 views

How do I get a watermark on a sigplus gallery?

I have install SigPlus 1.5.0.262 on Joomla! 3.7.5. I am just trying to get the watermark to work. I cannot seem to get it to appear. I think my issue is just where I am placing my image. According to ...
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
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, ...
4
votes
2answers
386 views

Get Timestamp from Database

I have data stored in a db table, with an auto timestamp. In a module I want to then display a result based on the latest timestamp. It's not working and I'm getting an error Warning: strtotime() ...
4
votes
2answers
244 views

Is it possible to call a postflight on a module install?

I am creating a module that I hope will do a little more complex functions than many. However, I will need to do certain things like DB modification and moving files when the module installs. I am ...
4
votes
1answer
343 views

Module Params Custom Validation is possible?

Now I have situations to validate Module params in admin side of a module. I know there is option with Filter in module params but its limited , I can't validate some patterns or custom conditions. ...