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

How to render a component view in a module?

This is code I write time ago for Joomla 1.5, you will need adapt it for jooma 3.x (JRequest -> JInput, ...), and surely there is more elegant way to do this. This is the basic part of module.php My ...
José Sánchez Martín's user avatar
4 votes

Getting CSS style to vary with different module instances

I figured out my problems, so I thought I would answer my own question. 1) Different styling for different instances of the same module Don't forget Joomla has unique module ids! And there's an ...
William's user avatar
  • 299
3 votes
Accepted

Advanced Module Manager Assignments

In URL assignments section: Set the option to Include In URL matches enter /news/?$ Enable Use Regular Expressions *The /? part is used for the case your /news page is also loading via /news/ and ...
FFrewin's user avatar
  • 19.7k
3 votes
Accepted

PHP: Check if a module is displayed on the current page

After spending some time on checking this within the article component, I just gave up and took another approach. Now I'm actually checking if the module is loaded, within the index.php file. Here ...
demi's user avatar
  • 151
3 votes
Accepted

How to show a module on every page?

If you assigned the module to all pages yet it still displays only on one page, then this might be caused by one of the following: You have not cleared your Joomla cache. The module is set to display ...
itoctopus's user avatar
  • 3,226
3 votes

module to appear below category blog

The category blog is part of the component area in your template, but the module position is different than the component area, by default you can't load a module inside component area (blog layout) ...
AlejandroVega's user avatar
2 votes

How to prevent empty modules from being rendered?

I check if the content from any module from the given module position is empty or not. Combined it with $this->countModules(): the module position is just displayed when there are modules and the ...
RedNails's user avatar
2 votes

Is it possible to override js scripts?

Sometimes the author of your component will provide a way to do such an override, so check the documentation first. If that is not possible, brute force works: I recently solved this problem for ...
Confidant's user avatar
  • 131
2 votes
Accepted

Is it possible to override js scripts?

Yes, and no... Let's start with the "no" - The Joomla core devs have created a way to inject scripts, but no (API) way to remove them. And, "Yes" , but it's complicated.... You'll need to create a ...
Michael's user avatar
  • 593
2 votes

Is it possible to load the same module into two different positions and have it use two different IDs?

This id attribute is an attribute attached to a certain element of the output of your menu module - it is an internal handling of your menu. The module position in your template cannot define an id ...
FFrewin's user avatar
  • 19.7k
2 votes
Accepted

Move the Joomla! module layout override to a different tab

I am losing you a little bit in your question. Saying move the Joomla module layout override option, do you mean to display that field within another tab? If so, what's the problem you are facing ...
FFrewin's user avatar
  • 19.7k
2 votes

Has there been a better solution for showing modules only on article list page(but not article page)?

You can do this using Regular Lab's Advanced Module Manager. Install it and activate it, and select the following for the the module settings: For Assigments use Joomla! Content, include ...
Paul Kleingeld's user avatar
2 votes
Accepted

Joomla incorrectly displays the modules of the homepage on blog articles page

It appears that specific version of Joomla had trouble getting the lang param. Changing the URL to http://example.com/index.php?option=com_content&view=article&id=166&Itemid=140&lang=...
Suthan Bala's user avatar
2 votes

How to move Joomla quick icons to the right side?

Go to Extensions > Modules, here select Administrator in the filter, see the screenshot: Just select your module and change inside the position like the front-end modules. If you go to administrator/...
AlejandroVega's user avatar
2 votes
Accepted

Floating module on scrolling?

You can achieve this by using the following (fetch first the 30% sidebar and define on page surround the visibility): .g-block.size-30 #g-aside { position: sticky; top: 50px; } #g-page-...
Lodder's user avatar
  • 26.9k
2 votes
Accepted

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

Although using content plugin works, there is no need for it in PHP code. Instead you can use the document renderer directly: use Joomla\CMS\Factory; echo Factory::getApplication()->getDocument()-...
Sharky's user avatar
  • 11.4k
2 votes
Accepted

DPCalendar custom field inside module

As mentioned in the other answer, https://docs.joomla.org/J3.x:Adding_custom_fields/Overrides is the key description to understand. To quote: Basically you have all the custom fields corresponding ...
Robbie Jackson's user avatar
2 votes
Accepted

Is there a Performance Impact of displaying modules on every page if not used?

There is no simple answer to this as exact performance would depend on a number of factors, including number of modules, menu items and installed plugins. The important thing to understand is that ...
Sharky's user avatar
  • 11.4k
1 vote

DPCalendar custom field inside module

I have never used DPCalendar, so your mileage may vary, but I've had some luck tinkering with getting custom fields in overrides like this: $item->jcfields[n]->rawvalue; n in this example is ...
mrentropy's user avatar
1 vote

Advanced Module Manager Assignments

This seems to work, add URL include regex news($)
jonboy's user avatar
  • 3,603
1 vote

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

It probably depends on specific circumstances. I have custom modules that contain several 'secondary' modules. I accomplish this using the Modules Anywhere extension and add {example module} to the ...
Mythic's user avatar
  • 165
1 vote

How to render a component view in a module?

When I want to use a component in a module I use Regular Labs's Component Anywhere extension. https://www.regularlabs.com/extensions/componentsanywhere Perhaps that could be an example for you to ...
NJA's user avatar
  • 71
1 vote

how to run php code in joomla content and custom module without third party plugin

CSS and JavaScript are both client-side technologies, so it's enough to put them into your articles or Custom Module and just put appropriate HTML tags around them. With PHP it is impossible because ...
Insider Pro's user avatar
1 vote

Has there been a better solution for showing modules only on article list page(but not article page)?

This can be resolved at the template level (which is the cleanest way of doing this) as described here. Essentially, you will need to modify your template's index.php file to include a condition to ...
itoctopus's user avatar
  • 3,226
1 vote

Has there been a better solution for showing modules only on article list page(but not article page)?

Joomla 3.8.2 does not add any solution to your issue. One solution you didn't mention would be to use CSS to hide the unwanted modules on article layout pages. Pros: It's easy to implement and, ...
Drew G's user avatar
  • 890
1 vote

Is it possible to load one module only after the whole page has loaded?

my module is custom image slider. in those having 4-5 image with title and description tag and it's come full width on side. due to we need to upload 1200x650 resolution big image so it's look pretty. ...
Dennis Heiden's user avatar
1 vote

Is it possible to load one module only after the whole page has loaded?

If the module is putting pressure on the database server, then it would be a good idea to address that. In any case, one way of doing this is to assign the module to a single menu item with an almost ...
itoctopus's user avatar
  • 3,226
1 vote

Articles list from a category displayed in 2 columns

It's not clear what kind of answer you are seeking here and your question is getting a bit broad - I assume you are asking about directions and will try to provide some. You have a few options to ...
FFrewin's user avatar
  • 19.7k
1 vote
Accepted

adding bills after payment to user profile - hikashop

What you need to do is setup a "Customer Orders" page in your menu. Navigate to one of your menus and add a new item called "Customer orders" as shown below: If you want a list of different pages the ...
Michael Yaeger's user avatar
1 vote

How to move Joomla quick icons to the right side?

You can do it through CSS as well. However, your changes may be overwritten in future Joomla releases. In administrator/templates/isis/css/template.css add to bottom: /* Move control panel ...
YellowWebMonkey's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible