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

Template module names based on position

If you mean programatically, JModuleHelper should return the info you need. $modules = JModuleHelper::getModules('position-1'); print_r($modules);
RichardB's user avatar
  • 3,082
4 votes

Randomly render one of the modules in a given position

Have a look at the Module Helper documentation. getModules(): Get modules by position getModules(string $position) : array static since 1.5 Arguments $position string The position of the module ...
mickmackusa's user avatar
  • 4,801
3 votes

Randomly render one of the modules in a given position

If you're after a less code heavy way of doing it, you could use a mix of Regular Labs Modules anywhere and Regular Labs Articles Anywhere. Create your modules, and assign them all to a new position ...
Patrick Jackson's user avatar
3 votes
Accepted

Loop Joomla Modules

Well from your description I can't figure out for 100% what you trying to accomplish. But my thoughts is you need to simplify code in index.php (remove "block-cobtent") and move it to html/modules....
Alexandr's user avatar
  • 1,130
3 votes
Accepted

Show preview of positions

You can see them from adminitration doing this steps: In the top menu, click Extensions and then click Template Manager In the tabs at the top of the page, click the Options tab Under the Templates ...
Piero Marsilio's user avatar
2 votes

Show preview of positions

I've found a solution by myself. Go to Extension->Templates Click on Options button (top-right page corner) Enable the option Enable Module Positions Save changes Go again to Extension->Templates and ...
Jepessen's user avatar
  • 273
2 votes

Remove module from template position (change to 'none')

This is a known bug and should be fixed in version 3.7 please see the bug info here As a work around you can remove the position in the database - look in the xxx_modules table for your module, there ...
Dtorr1981's user avatar
  • 532
2 votes
Accepted

Remove module from template position (change to 'none')

Another solution is: While you are editing the module, open the browser's console (Usually F12 and click on Console tab), then type: document.getElementById('jform_position').value = ''; in the ...
Farahmand's user avatar
  • 2,295
2 votes

Remove module from template position (change to 'none')

There is no direct way (from what i know) to reset the module position to None but as you said you can create a new custom position named None or Empty and save the module on that position that way it ...
John's user avatar
  • 308
2 votes

{loadposition} Only in the first blog contribution

You might need to give a more specific example of what the module area is doing for the ideal suggestion. However, a few ideas that might point you in the right direction: Plugin Create a plugin ...
RichardB's user avatar
  • 3,082
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
1 vote

Removing space purity 3

I can see you've got the Chrome devtools displayed in the image you uploaded. Using them, if you go to the right hand side and click on the Computed tab then you will see the box model for the html ...
Robbie Jackson's user avatar
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

Template module names based on position

If you wish to know which modules are assigned to a specific template position, simple go to Extensions->Modules, then click Search Tools and then specifie the disired position in the Select Position ...
n.h.'s user avatar
  • 871
1 vote

Can I add page content to a position from within a module that sits in another position?

Having a go...assuming this to be done without code. Using two of Regular Labs tools. Tabs: This allows you to activate tabs on the page in modules from elsewhere on the page. Your buttons should ...
BodgeIT's user avatar
  • 677
1 vote

Module positioning layout

You can add new module positions directly from the Template administrator panel: Our main aim was to move possibly a large number of parameters to administrative panel which normally were changed ...
Bogowoe's user avatar
  • 1,178

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