Read the statement by Michael Teeuw here.
Dynamically Moving Modules
-
I’m trying to dynamically move the modules on the screen, but I’m don’t know where to start. I’m able to identify all the modules loaded and hide and show them, but I’m not sure how to move them. I tried updating the module.config.position and the module.data.position but it did nothing. Can anyone shed some light on this for me.
-
@reporter500 this isn’t a supported feature
-
I knew it wasn’t supported, but I wanted to see if anyone was doing any custom development that might have solve this.
-
It needs some trick.
- Get node of region container.
- Draw your dom and insert into region container node in
getDom()
. Your dom’s root node should have classname ‘module’. - Set region container display style to
block
.
Good luck!
Ps. I use this trick in currently developing module. It works well.
-
@Sean said in Dynamically Moving Modules:
Ps. I use this trick in currently developing module. It works well.
OH do tell LOL
-
@Sean Perfect! Thank you.
-
This version of MMM-Carousel will allow you to set different locations for a module for different slides:
[card:shbatm/MMM-Carousel]
See the very bottom of the README for more information
If you’re interested in incorporating this into your own module, the relevant parts of the code are here and here