We’re rewarding the question askers & reputations are being recalculated! Read more.

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
10
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 ...
5
votes
2answers
211 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:...
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
1answer
128 views

Which class method should I use for deprecated JDocumentRenderer->render();

I need to display a module in administrator side by getting the module using it's module position (see the code below). I am having error & doubt is using the code: $renderer = $document->...
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:...
4
votes
1answer
349 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. ...
5
votes
1answer
96 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" ...
10
votes
9answers
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 ...
6
votes
3answers
2k 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 ...
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 ...
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 ...
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?