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);
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
...
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 ...
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....
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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-...
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()-...
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 ...
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 ...
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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
positions × 24module × 8
templates × 8
joomla-3.x × 7
module-display × 5
custom-module × 2
layout × 2
php × 1
component × 1
joomla-2.5 × 1
plugin × 1
extensions × 1
css × 1
joomla-3.3.x × 1
menu × 1
k2 × 1
tags × 1
cms × 1
acl × 1
front-end × 1
cache × 1
content × 1
administration × 1
category-blog × 1
error-handling × 1